I have different ANCIENT templates to convert a Jupyter notebook to a PDF, but starting from version 5.0 jupyter-nbconvert
(at least, this is the name of the binary on Debian) uses XeLaTeX by default and, as it happens, some of those templates are fine when used with XeLaTeX, others still require pdfLaTeX.
I can use jupyter-nbconvert --to latex --template old_template MyNotebook
and later run pdflatex
from the CLI, and this is what I've done until now, but I wonder if there is a way to tell Jupyter that I want to use pdflatex
.
I know that NBConvert has a configuration option,
PDFExporter.latex_command : List
Default: ['xelatex', '{filename}', '-quiet']
Shell command used to compile latex.
but I'd prefer something on the command line, so that I can define aliases to use a different TeX engine for different use cases.