qalgebra.printing.latexprinter module¶
Routines for rendering expressions to LaTeX
Summary¶
Classes:
Printer for a LaTeX representation. |
Functions:
Assemble a string from the primary name and the given sub- and superscripts. |
Reference¶
-
class
qalgebra.printing.latexprinter.
QalgebraLatexPrinter
(*, cache=None, settings=None)[source]¶ Bases:
qalgebra.printing.asciiprinter.QalgebraAsciiPrinter
Printer for a LaTeX representation.
See
qalgebra.printing.latex()
for documentation of settings.-
sympy_printer_cls
¶
-
-
qalgebra.printing.latexprinter.
render_latex_sub_super
(name, subs=None, supers=None, translate_symbols=True, sep=',')[source]¶ Assemble a string from the primary name and the given sub- and superscripts:
>>> render_latex_sub_super(name='alpha', subs=['mu', 'nu'], supers=[2]) '\\alpha_{\\mu,\\nu}^{2}' >>> render_latex_sub_super( ... name='alpha', subs=['1', '2'], supers=['(1)'], sep='') '\\alpha_{12}^{(1)}'