Issues with Math Delimiters and Equation Number Alignment in Quarto Word Output #11753
-
Description1. Inability to Use Currently, Quarto does not render equations wrapped with When attempting to configure the YAML to replace 2. Equation Numbering Alignment in Word Output When rendering a Quarto document to Word format, equation numbering is not right-aligned, leading to a suboptimal appearance. This has been discussed in community forums, such as this [StackOverflow question](https://stackoverflow.com/questions/75230272/losing-equations-numbering-when-i-render-quarto-document-to-word), where others have also encountered the issue without a clear resolution. Minimal Reproducible ExampleExample 1: Math Delimiter TestThis example demonstrates the inability to use ---
title: "Math Delimiter Test"
format:
html:
math:
mathjax:
tex:
inlineMath: [["\\\\(", "\\\\)"]]
displayMath: [["\\\\[", "\\\\]"]]
---
# Math Delimiter Test
Inline math example: \( E = mc^2 \) (should work with `\(`...`\)` but doesn't).
Block math example:
\[
a^2 + b^2 = c^2
\] Expected Behavior:
Example 2: Equation Numbering in WordThis example demonstrates the misalignment of equation numbers in Word output: ---
title: "Equation Numbering Test"
author: "wananchi"
date: "`r Sys.Date()`"
format:
docx:
fontfamily: libertinus
fontsize: 11pt
toc: false
number-sections: true
---
# Equation Numbering Test
The following demonstrates an equation with numbering:
$$
ES_{w,t} = \varepsilon_wEP_{w,t}\
$${#eq-test} Expected Behavior:
Environment Details:
Additional Notes:These issues affect both usability and formatting quality for academic and technical documents, particularly when Word is the primary output format. Given the prevalence of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Where did you see that syntax? Did you use some AI instead of actually looking at the documentation of the tools?
Please avoid trusting and using blindly generated contents. This syntax This being said, Word document theming is handled by the reference document, see https://quarto.org/docs/output-formats/ms-word-templates.html. Side note, the current stable version of Quarto is 1.6.39. |
Beta Was this translation helpful? Give feedback.
Where did you see that syntax? Did you use some AI instead of actually looking at the documentation of the tools?
Please avoid trusting and using blindly generated contents.