Warning

This documentation is for an old version of IPython. You can find docs for newer versions here.

Module: nbconvert.exporters.pdf

Export to PDF via latex

1 Class

class IPython.nbconvert.exporters.pdf.PDFExporter(config=None, extra_loaders=None, **kw)

Bases: IPython.nbconvert.exporters.latex.LatexExporter

Writer designed to write to PDF files

clean_temp_files(filename)

Remove temporary files created by pdflatex/bibtex.

run_bib(filename)

Run bibtex self.latex_count times.

run_command(command_list, filename, count, log_function)

Run command_list count times.

Parameters:

command_list : list

A list of args to provide to Popen. Each element of this list will be interpolated with the filename to convert.

filename : unicode

The name of the file to convert.

count : int

How many times to run the command.

Returns:

success : bool

A boolean indicating if the command was successful (True) or failed (False).

run_latex(filename)

Run pdflatex self.latex_count times.