pandoc-latex-template icon indicating copy to clipboard operation
pandoc-latex-template copied to clipboard

Codeblock formatting inside the environments is NOT supported.

Open daamien opened this issue 2 years ago • 2 comments

This is a minor problem. We are not directly concerned about it. I am simply reporting it in case it may help other people...

In the example file here :

https://github.com/Wandmalfarbe/pandoc-latex-template/blame/master/examples/boxes-with-pandoc-latex-environment-and-awesomebox/document.md

The line 114 says

Markdown formatting inside the environments is supported.

This is partially true because the codeblock are breaking the latex output

$ pandoc document.md --listings --filter pandoc-latex-environment --from markdown --template=eisvogel -o document.pdf
Error producing PDF.                                                                                                                                      
! Paragraph ended before \lst@next was complete.                                                                                                          
<to be read again>                                                                                                                                        
                   \par                                                                                                                                   
l.537 \end{importantblock}       

If I remove the backticks (line 119 and 123), the pdf is compiled with no issue.

Thanks for this great template !

daamien avatar Aug 11 '21 14:08 daamien

It seems that tables are also not supported

daamien avatar Aug 30 '21 06:08 daamien

That's interesting because I compile this file regularly with no issues. The generated example PDF looks fine https://github.com/Wandmalfarbe/pandoc-latex-template/blob/master/examples/boxes-with-pandoc-latex-environment-and-awesomebox/document.pdf. Maybe it depends on your TeX distribution and installed packages?

Wandmalfarbe avatar Oct 16 '21 17:10 Wandmalfarbe