<jupyter_start><jupyter_text>(config_extension_pdf)= Converting Notebooks to PDF```{contents} Options---depth: 1local: ---``` jupyter_latex_templateProvide path to latex nbconvert template file`conf.py` usage:<jupyter_code>jupyter_latex_template = "theme/templates/latex.tpl"<jupyter_output><empty_output><jupyter_text>jupyter_pdf_logoAdd project logo to pdf document`conf.py` usage:<jupyter_code>jupyter_pdf_logo = "theme/img/logo.png"<jupyter_output><empty_output><jupyter_text>jupyter_bib_fileProvide path to bibtex file for reference support`conf.py` usage:<jupyter_code>jupyter_bib_file = "_static/references.bib"<jupyter_output><empty_output><jupyter_text>jupyter_pdf_authorSpecify Author Field for PDF document`conf.py` usage:<jupyter_code>jupyter_pdf_author = "QuantEcon Developers"<jupyter_output><empty_output><jupyter_text>jupyter_pdf_showcontentdepthSpecify 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 pageor document title to the top of the article format.``` jupyter_pdf_urlpathEnable local links within the project to link a hosted located via a urlprefix andlink modification.`conf.py` usage:<jupyter_code>jupyter_pdf_urlpath  = "https://lectures.quantecon.org/"<jupyter_output><empty_output><jupyter_text>jupyter_pdf_excludepatternsExclude certainly documents from getting compiled as pdf files.`conf.py` usage:<jupyter_code>jupyter_pdf_excludepatterns = ["index", "404", "search"]<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15550239234449761, 'fraction_numerical': 0.0029904306220095694, 'mean_word_length': 5.941908713692946, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '6', 'dir': 'jupyter-structured-clean-dedup', 'id': '264512', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 556, 'n_tokens_neox': 544, 'n_words': 106, 'path': 'docs/_build/jupyter_execute/config-extension-pdf.ipynb', 'repo_name': 'QuantEcon/sphinx-tojupyter', 'size': '1672'}