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

pdflatex error with double carets in listings code block #6460

Closed
Wandmalfarbe opened this issue Jun 14, 2020 · 2 comments
Closed

pdflatex error with double carets in listings code block #6460

Wandmalfarbe opened this issue Jun 14, 2020 · 2 comments

Comments

@Wandmalfarbe
Copy link
Contributor

A document containing two carets inside an inline codeblock (--) generates an error when compiled with pdflatex and the option --listings.

input file document.md

Hello `^^` World

command line

pandoc document.md --from markdown --template default.latex --listings -o document.pdf

complete Terminal output

Error producing PDF.
! File ended while scanning use of \lst@temp.
<inserted text> 
                \par 
<*> ...000gn/T/tex2pdf.-ea3e0ee41cbcc291/input.tex
                                                   
Here is how much of TeX's memory you used:
 13838 strings out of 492163
 198329 string characters out of 6125305
 298517 words of memory out of 5000000
 18053 multiletter control sequences out of 15000+600000
 7559 words of font info for 18 fonts, out of 8000000 for 9000
 1141 hyphenation exceptions out of 8191
 47i,4n,42p,887b,956s stack positions out of 5000i,500n,10000p,200000b,80000s

!  ==> Fatal error occurred, no output PDF file produced!

The document is typeset correctly when manually removing the \passthrough{} command around the \lstinline command like this Hello \lstinline!^^! World.


Please see the original issue here Wandmalfarbe/pandoc-latex-template#157.

@Wandmalfarbe
Copy link
Contributor Author

Wandmalfarbe commented Jun 14, 2020

pandoc 2.8.1
Compiled with pandoc-types 1.20, texmath 0.12, skylighting 0.8.3
TeX 3.14159265 (TeX Live 2019)
kpathsea version 6.3.1
latex --version
pdfTeX 3.14159265-2.6-1.40.20 (TeX Live 2019)

OS: macOS Mojave 10.14.3

@mb21
Copy link
Collaborator

mb21 commented Jun 14, 2020

thx! yes, can reproduce with the --listings option...

@jgm jgm closed this as completed in 9d0506e Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants