Convert latex equations into SVG or PDF files.
-
Clone the repository.
-
Navigate to the
eqn2vec
folder and install withpip
:
pip install .
- as a library, e.g., when the library is installed, in a separate Python file:
from eqn2vec import eqn2vec
eq_list = [ r'E = mc^2', r'g(x)=\frac{\partial f(x)}{\partial x}']
eqn2vec.eqn2vec(eq_list, format='pdf')
See also the examples
folder.
- as a command-line tool, in a terminal:
<path-to-repo>eqn2vec/eqn2vec/eqn2vec.py --help
<path-to-repo>eqn2vec/eqn2vec/eqn2vec.py --eq 'E = mc^2' 'S = \sum_{i=1}^n x_i'