@@ -3195,18 +3195,22 @@ LaTeX macros
31953195
31963196#### Extension: `latex_macros` ####
31973197
3198−For output formats other than LaTeX, pandoc will parse LaTeX `\newcommand` and
3199−`\renewcommand` definitions and apply the resulting macros to all LaTeX
3200−math. So, for example, the following will work in all output formats,
3201−not just LaTeX:
3198+For output formats other than LaTeX, pandoc will parse LaTeX
3199+macro definitions and apply the resulting macros to all LaTeX
3200+math and raw LaTeX. So, for example, the following will work in
3201+all output formats, not just LaTeX:
32023202
32033203 \newcommand{\tuple}[1]{\langle #1 \rangle}
32043204
32053205 $\tuple{a, b, c}$
32063206
3207−In LaTeX output, the `\newcommand` definition will simply be passed
3208−unchanged to the output.
3207+In LaTeX output, the macro definitions will not be passed
3208+through as raw LaTeX.
32093209
3210+When `latex_macros` is disabled, the macro definitions will
3211+be passed through as raw LaTeX, and the raw LaTeX and math will
3212+not have macros applied. This is usually a better approach when
3213+you are targeting LaTeX or PDF.
32103214
32113215Links
32123216-----