Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LaTeX Writer: Conversion of pipes into \vert in LaTeX blocks breaks LaTeX syntax. #891

Closed
garrettf-alt opened this issue Jun 26, 2013 · 0 comments

Comments

@garrettf-alt
Copy link

Description:
I have just started using pandoc and found that when producing tables, the vertical bars required in table syntax (among other things) are replaced with \vert during TeX output, resulting in broken .tex files and the inability to render.
This appears to be caused by a previous bugfix mentioned in the 1.10 release notes:

Escape | as \vert in LaTeX math. This avoids a clash with highlighting-kate’s macros, which redefine | as a short verbatim delimiter. Thanks to Björn Peemöller for raising this issue.

Version: pandoc 1.11.1
Installed from cabal on OS X Mountain Lion.

Command line used:

pandoc -s input.txt -o output.pdf

Contents of input.txt:

This is *markdown*-formatted text.
$$
\begin{array}{c|c}
P & \neg P \\
T & F \\
F & T \\
\end{array}
$$

pandoc output:

pandoc: Error producing PDF from TeX source.
! LaTeX Error: Illegal character in array arg.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.48 \begin{array}{c\vert c}

Expected output:
Properly formatted LaTeX array with vertical lines in between columns.

@jgm jgm closed this as completed in 79a4ea0 Jun 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant