Ziamath
=======
Ziamath renders MathML or LaTeX Math expressions as SVG paths using only the Python standard library. Does not require a Latex installation, nor rely on any third party or online services. It can use any math-enabled font, such as `STIXTwoMath-Regular `_ which comes included with Ziamath
for use by default. The resulting SVGs are drawn entirely with elements, so the image does not depend on
having the font available.
Example
-------
To render from MathML:
.. jupyter-execute::
import ziamath as zm
zm.Math(
'''
y
=
f
⁡
(
x
)
''')
|
To render from Latex:
.. jupyter-execute::
zm.Latex(r'\frac{1}{1-x^2}')
|
Demo
----
See Ziamath in action as it runs in your browser through PyScript `here `_!
|
Support
-------
If you appreciate Ziamath, buy me a coffee to show your support!
.. raw:: html
|
----
Source code is available on `Github `_.
Ziamath is also used by the `Ziaplot `_ and `Schemdraw `_ Python packages, and was used for rendering the SVG and PNG equations on `MathGrabber `_.
|
----
.. toctree::
:maxdepth: 2
:caption: Contents:
usage.rst
options.rst
examples.rst
test.rst
changes.rst
api.rst