From 28bb5d610dc8c96a014f610d53b937ea7b9d977e Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 19 Oct 2017 12:52:12 -0700 Subject: LaTeX reader: support `\expandafter`. Closes #3983. --- test/command/3983.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 test/command/3983.md (limited to 'test/command') diff --git a/test/command/3983.md b/test/command/3983.md new file mode 100644 index 000000000..7eaeb99f0 --- /dev/null +++ b/test/command/3983.md @@ -0,0 +1,29 @@ +``` +pandoc -f latex -t native +\def\filename@area{foo:bar:baz} +\makeatletter +\graphicspath\expandafter{\expandafter{\filename@area}}% +\makeatother +^D +[RawBlock (Format "latex") "\\makeatletter" +,RawBlock (Format "latex") "\\makeatother"] +``` + +``` +pandoc -f latex -t native +\makeatletter + \newcommand\urlfootnote@[1]{\footnote{\url@{#1}}} + \DeclareRobustCommand{\urlfootnote}{\hyper@normalise\urlfootnote@} +\makeatother +^D +[RawBlock (Format "latex") "\\makeatletter" +,RawBlock (Format "latex") "\\makeatother"] +``` + +``` +pandoc -f latex -t native +\def\foo{bar} +\expandafter\bam\foo +^D +[RawBlock (Format "latex") "\\bambar"] +``` -- cgit v1.2.3