pyfeyn2.render.asciipdf

Module Contents

Classes

ASCIIPDFRender

Renders Feynman diagrams as ASCII art to PDF.

class pyfeyn2.render.asciipdf.ASCIIPDFRender(fd, width=40, height=30, *args, **kwargs)[source]

Bases: pyfeyn2.render.latex.LatexRender, pyfeyn2.render.ascii.ASCIIRender

Renders Feynman diagrams as ASCII art to PDF.

Parameters:
  • default_filepath (str) – The default path to save files.

  • documentclass (str or ~.Command) – The LaTeX class of the document.

  • document_options (str or list) – The options to supply to the documentclass

  • fontenc (str) – The option for the fontenc package. If it is None, the fontenc package will not be loaded at all.

  • inputenc (str) – The option for the inputenc package. If it is None, the inputenc package will not be loaded at all.

  • font_size (str) – The font size to declare as normalsize

  • lmodern (bool) – Use the Latin Modern font. This is a font that contains more glyphs than the standard LaTeX font.

  • textcomp (bool) – Adds even more glyphs, for instance the Euro (€) sign.

  • page_numbers (bool) – Adds the ability to add the last page to the document.

  • indent (bool) – Determines whether or not the document requires indentation. If it is None it will use the value from the active config. Which is True by default.

  • geometry_options (dict) – The options to supply to the geometry package

  • data (list) – Initial content of the document.