Skip to content

Simple python script that converts list of equations from csv file to separate latex file with further compilation to pdfs.

Notifications You must be signed in to change notification settings

vdmitriyev/pycsvtoequation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

About

Simple python script that converts list of equations from CSV file into separate human-readable equations by meand of LaTeX, MathML or MathJax. The best working option currently is MathJax.

Dependencies

Usage

Check config.py, pycsvtoequation.py files and apply your own configurations. For changing templates check template-latex.tex, template-mathjax.html or template-mathml.html. Change path to your 'Sympy' package in config.py (it's used for generating proper LaTeX, MathML or MathJax). Put your data into data folder in csv format. Run main script:

python pycsvtoequation.py

or

python pycsvtoequation.py > output-log.txt

Naviagate to the create folder, if necessary compile all LaTeX file into pdfs and view them, or just use browser to view generated html with MathML or MathJax.

Known Problems

  • Note that MathML will not work in Google Chrome.
  • While using MathML, the processing can be stopped unexpectedly due to some internal error.
  • While rendering pdf from Latex with batch script, note that the script can stop unexpectedly due to some LaTeX formatting error, just press enter and go on. Note that rendering can last for a while.
  • During the rendering process, the equation that are in form of a = x**(1 / 4) are interpreted by Sympy or Python wrongly. Division is applied and x is omitted completely, such behaviour leads to to have only 1 result of rendering process.

Dependencies

The latest sympy version may require additional libraries

pip install mpmath

Credits

  • Viktor Dmitriyev

About

Simple python script that converts list of equations from csv file to separate latex file with further compilation to pdfs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published