Test for macro definitions in LaTeX preamble.
This commit is contained in:
parent
7fac395284
commit
6c9a20b2d3
1 changed files with 16 additions and 0 deletions
16
test/command/macro-defs-in-preamble.md
Normal file
16
test/command/macro-defs-in-preamble.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
```
|
||||
% 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"]]
|
||||
```
|
Loading…
Reference in a new issue