aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/command/macro-defs-in-preamble.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/command/macro-defs-in-preamble.md b/test/command/macro-defs-in-preamble.md
new file mode 100644
index 000000000..dd5a503df
--- /dev/null
+++ b/test/command/macro-defs-in-preamble.md
@@ -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"]]
+```