Quoting Johannes Schauer Marin Rodrigues (2022-09-03 15:35:36) > Quoting Jonas Smedegaard (2022-09-03 11:41:22) > > It would be helpful if you could isolate the problem, so that it is > > possible to replicate with as minimal as possible code besides > > Pandoc. > > so if you run this: > > echo ".. code-block:: none" | pandoc -o out.tex -frst > > then with the old pandoc 2.9.2.1 you get: > > \begin{verbatim} > \end{verbatim} > > and with pandoc 2.17.1.1 you get: > > \begin{Shaded} > \begin{Highlighting}[] > \end{Highlighting} > \end{Shaded}
Thanks a lot - this makes it much easier to examine the issue further! > so for this to work with pandoc 2.17.1.1 we need some usepackage for > the Shaded environment. > > So lets see how to fix this from the latex side. You pointed out that > the Shaded environment comes from framed.sty, so we try: > > \documentclass{article} > \usepackage{framed} > \begin{document} > \begin{Shaded} > \begin{Highlighting}[] > foobar > \end{Highlighting} > \end{Shaded} > \end{document} > > But we still get: > > ! LaTeX Error: Environment Shaded undefined. > > So how do I prepare my latex that was generated by recent pandoc so > that it works? One extra clue I just found is that apparently the tex chunk involving "Shading" is not part of Pandoc templates but injected by Haskell library skylighting: https://github.com/Wandmalfarbe/pandoc-latex-template/issues/209#issuecomment-744068500 - Jonas -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private
signature.asc
Description: signature