IPython Documentation

Table Of Contents

Previous topic

Module: nbconvert.exporters.html

Next topic

Module: nbconvert.exporters.markdown

This Page

Module: nbconvert.exporters.latex

Exporter that allows Latex Jinja templates to work. Contains logic to appropriately prepare IPYNB files for export to LaTeX. Including but not limited to escaping LaTeX, fixing math region tags, using special tags to circumvent Jinja/Latex syntax conflicts.

1 Class

class IPython.nbconvert.exporters.latex.LatexExporter(config=None, extra_loaders=None, **kw)

Bases: IPython.nbconvert.exporters.exporter.Exporter

Exports to a Latex template. Inherit from this class if your template is LaTeX based and you need custom tranformers/filters. Inherit from it if you are writing your own HTML template and need custom tranformers/filters. If you don’t need custom tranformers/filters, just change the ‘template_file’ config option. Place your template in the special “/latex” subfolder of the ”../templates” folder.