aboutsummaryrefslogtreecommitdiff
path: root/test/command/macro-defs-in-preamble.md
blob: 7bd72d140f79fed3bad645144684c477340b66b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
```
% pandoc -s -f latex-latex_macros -t native
\documentclass[11pt]{article}

\newcommand{\vara}{\alpha}
\newcommand{\varb}{b}

\begin{document}
$\vara \varb$
\end{document}
^D
Pandoc
  Meta { unMeta = fromList [] }
  [ RawBlock (Format "latex") "\\newcommand{\\vara}{\\alpha}"
  , RawBlock (Format "latex") "\\newcommand{\\varb}{b}"
  , Para [ Math InlineMath "\\vara \\varb" ]
  ]
```