4 ms·
Likewise, in SageMath you can turn any expression obj (matrices, fractions, elliptic curves, etc.) into latex by typing `latex(obj)`. (Disclaimer: I started S
by williamstein 9y ago
Likewise, in SageMath you can turn any expression obj (matrices, fractions, elliptic curves, etc.) into latex by typing `latex(obj)`. (Disclaimer: I started SageMath and wrote a lot of this conversion to latex functionality early on, since it's useful for notebook interfaces.) Most objects in Sage have an _latex_ method, and the latex function works by recursively calling those methods to build a big latex expression. SageTex -- which lets you embed Python code in LaTeX documents -- also uses this latex(obj) functionality.