Macros
For output formats other than LaTeX, pandoc will parse LaTeX \newcommand
and \renewcommand
definitions and apply the resulting macros to all LaTeX math. So, for example, the following will work in all output formats, not just LaTeX:
\newcommand{\tuple}[1]{\langle #1 \rangle}
$\tuple{a, b, c}$
In LaTeX output, the \newcommand
definition will simply be passed unchanged to the output.