mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-11 11:57:16 +00:00
633a9ecfec
`\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.
415 B
415 B
% 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}