feynlag.export.latex.latex_feynman_table

feynlag.export.latex.latex_feynman_table(interactions, simplify_coeff=None, extra_column=None, extra_header='\\textbf{Simplified}')[source]

Generate a LaTeX table of interactions and their coefficients.

Parameters:
  • interactions – nested dict from extract_interaction_coefficients or a flat {field_tuple: coefficient} dict.

  • simplify_coeff – optional callable applied to each coefficient before printing (default: print raw).

  • extra_column – optional callable producing a third column from each coefficient (e.g. sympy.simplify or a series approximation). None gives a two-column table.

  • extra_header – header of the third column.

Returns:

LaTeX array environment.

Return type:

str