2021-08-12 01:14:34 +02:00
|
|
|
```
|
|
|
|
% pandoc -f latex -t plain
|
|
|
|
\def\foo{BAR}
|
|
|
|
{\foo
|
|
|
|
\def\foo{BAZ}
|
|
|
|
\foo
|
|
|
|
}
|
|
|
|
\foo
|
|
|
|
^D
|
|
|
|
BAR BAZ BAR
|
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc -f latex -t plain
|
|
|
|
\def\foo{BAR}
|
|
|
|
{\foo
|
|
|
|
\gdef\foo{BAZ}
|
|
|
|
\foo
|
|
|
|
}
|
|
|
|
\foo
|
|
|
|
^D
|
|
|
|
BAR BAZ BAZ
|
|
|
|
```
|
|
|
|
|
2021-08-12 01:28:53 +02:00
|
|
|
```
|
|
|
|
% pandoc -f latex -t plain
|
|
|
|
\def\foo{BAR}
|
|
|
|
{\foo
|
|
|
|
\global\def\foo{BAZ}
|
|
|
|
\foo
|
|
|
|
}
|
|
|
|
\foo
|
|
|
|
^D
|
|
|
|
BAR BAZ BAZ
|
|
|
|
```
|
|
|
|
|
2021-08-12 01:14:34 +02:00
|
|
|
```
|
|
|
|
% pandoc -f latex -t plain
|
|
|
|
\newcommand{\aaa}{BBB}
|
|
|
|
{
|
|
|
|
\renewcommand{\aaa}{AAA}
|
|
|
|
\aaa
|
|
|
|
}
|
|
|
|
\aaa
|
|
|
|
^D
|
|
|
|
AAA BBB
|
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc -f latex -t markdown
|
|
|
|
\newcommand{\aaa}{BBB}
|
|
|
|
\begin{quote}
|
|
|
|
\renewcommand{\aaa}{AAA}
|
|
|
|
\aaa
|
|
|
|
\end{quote}
|
|
|
|
\aaa
|
|
|
|
^D
|
|
|
|
> AAA
|
|
|
|
|
|
|
|
BBB
|
|
|
|
```
|
|
|
|
|