diff --git a/test/command/macros.md b/test/command/macros.md index 50393543a..0c91944a1 100644 --- a/test/command/macros.md +++ b/test/command/macros.md @@ -105,3 +105,21 @@ x &= y\\\end{aligned}\] \newcommand{\my}{\emph{a}} \emph{a} ``` + +<https://tex.stackexchange.com/questions/258/what-is-the-difference-between-let-and-def> + +``` +% pandoc -f latex -t plain +\def\bar{hello} +\let\fooi\bar +\def\fooii{\bar} +\fooi +\fooii + +\def\bar{goodbye} +\fooi +\fooii +^D +hello+hello + +hello+goodbye +``` +