Converting Notebooks to PDF

jupyter_latex_template

Provide path to latex nbconvert template file

conf.py usage:

jupyter_latex_template = "theme/templates/latex.tpl"

jupyter_bib_file

Provide path to bibtex file for reference support

conf.py usage:

jupyter_bib_file = "_static/references.bib"

jupyter_pdf_author

Specify Author Field for PDF document

conf.py usage:

jupyter_pdf_author = "QuantEcon Developers"

jupyter_pdf_showcontentdepth

Specify which depth of the local contents directives to add to generated pdf files

Values
2 (Default)

Note

this shows second level contents by default as the pdf document adds the page or document title to the top of the article format.

jupyter_pdf_urlpath

Enable local links within the project to link a hosted located via a urlprefix and link modification.

conf.py usage:

jupyter_pdf_urlpath  = "https://lectures.quantecon.org/"

jupyter_pdf_excludepatterns

Exclude certainly documents from getting compiled as pdf files.

conf.py usage:

jupyter_pdf_excludepatterns = ["index", "404", "search"]

This can be useful for make site when pdf construction is part of a broader project that supports html targets.