jupyter / nbconvert

Jupyter Notebook Conversion
https://nbconvert.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
1.74k stars 568 forks source link

Support pandoc 3.2.1 #2164

Open PaleNeutron opened 3 months ago

PaleNeutron commented 3 months ago

Related issue: https://github.com/Wandmalfarbe/pandoc-latex-template/issues/391

Nbconvert's default template file (https://github.com/jupyter/nbconvert/blob/main/share/templates/latex/index.tex.j2) will also face the same problem.

naoh16 commented 1 month ago

In my environment, the latest Pandoc 3.3, we need the following part:

https://github.com/jgm/pandoc/blob/04825ceb6bdf72fe1b93759ec14e30115366575c/data/templates/default.latex#L304-L317

to the base.tex.j2.

I think it wolud be better to append at the following area:

https://github.com/jupyter/nbconvert/blob/e1599627fd1f9e06d983e3974eadb58d2a92c44c/share/templates/latex/base.tex.j2#L149