pyfeyn2.render.latex.dot

Module Contents

Classes

DotRender

A class that contains a full LaTeX document.

Functions

stylize_connect(→ str)

Attributes

map_feyn_to_tikz

pyfeyn2.render.latex.dot.map_feyn_to_tikz[source]
pyfeyn2.render.latex.dot.stylize_connect(c: pyfeyn2.feynmandiagram.Connector) str[source]
class pyfeyn2.render.latex.dot.DotRender(fd=None, documentclass='standalone', document_options=None, *args, **kwargs)[source]

Bases: pyfeyn2.render.latex.latex.LatexRender

A class that contains a full LaTeX document.

If needed, you can append stuff to the preamble or the packages. For instance, if you need to use \maketitle you can add the title, author and date commands to the preamble to make it work.

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.

set_feynman_diagram(fd)[source]
get_src_dot()[source]
static valid_attribute(attr: str) bool[source]
static valid_type(typ)[source]