io#
import ampform.io
Input-output functions for ampform and sympy objects.
Tip
This function are registered with functools.singledispatch() and can be
extended as follows:
- aslatex(obj, **kwargs) str[source]#
- aslatex(obj: complex, **kwargs) str
- aslatex(obj: str, **kwargs) str
- aslatex(obj: Basic, **kwargs) str
- aslatex(obj: Expr, *, terms_per_line: int = 0, **kwargs) str
- aslatex(obj: Mapping, *, terms_per_line: int = 0, **kwargs) str
- aslatex(obj: Iterable, **kwargs) str
Render objects as a LaTeX
str.The resulting
strcan for instance be given toIPython.display.Math.Added in version 0.14.1.
- Parameters:
terms_per_line –
If set to a non-zero, positive number,
sp.Exprobjects on the right-hand-side with multiple terms are split over multiple lines. The terms are split at the addition.Added in version 0.15.2.