mathml¶
Rendering of formulas and Content MathML.
A common problem in rendering MathML is that the content MathML is difficult to read. The presentation MathML has a much better rendering and improves understandability. This module uses stylesheets for the conversion of content MathMl -> presentation MathML.
see also: https://docs.sympy.org/dev/modules/printing.html#module-sympy.printing.mathml
formula_to_astnode
¶
Convert formula string to ASTNode.
:param formula: SBML formula string :param model: libsbml.Model :return: libsbml.ASTNode
cmathml_to_astnode
¶
Convert Content MathML string to ASTNode.
:param cmathml: SBML Content MathML string :return: libsbml.ASTNode
cmathml_to_latex
cached
¶
Content MathML to latex conversion using XSLT transformation.
symbol_to_latex
¶
Convert symbol to latex by packing in mathit and escaping underscores.