mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-01 21:25:48 +00:00
`\ldots{}.` doesn't behave as well as `\ldots.` with the latex
ellipsis package. This patch causes pandoc to avoid emitting
the `{}` when it is not necessary. Now `\ldots` and other
control sequences used in escaping will be followed by either
a `{}`, a space, or nothing, depending on context.
Thanks to Elliott Slaughter for the suggestion.
29 lines
415 B
Markdown
29 lines
415 B
Markdown
```
|
|
% pandoc -f html -t latex
|
|
\begin{eqnarray}
|
|
A&=&B,\\
|
|
C&=&D
|
|
\end{eqnarray}
|
|
^D
|
|
\textbackslash begin\{eqnarray\} A\&=\&B,\textbackslash\textbackslash{}
|
|
C\&=\&D \textbackslash end\{eqnarray\}
|
|
```
|
|
|
|
```
|
|
% pandoc -f html+raw_tex -t latex
|
|
<p>See \eqref{myeq}.</p>
|
|
\begin{eqnarray}
|
|
A&=&B,\\
|
|
C&=&D
|
|
\\label{myeq}
|
|
\end{eqnarray}
|
|
^D
|
|
See \eqref{myeq}.
|
|
|
|
\begin{eqnarray}
|
|
A&=&B,\\
|
|
C&=&D
|
|
\\label{myeq}
|
|
\end{eqnarray}
|
|
```
|