Skip to content

BenSmithers/PyTex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyTeX

What does this do?

Allows for automated writing of LaTeX files through Python!

What does it use?

Right now, python, pdflatex, and pandas. Only Python 3 is supported.

I may add other non-pandas table functinoality, but that's low-priority for me.

I might later on make compilation system more flexible, but I'll never make this Python 2 compatible.

Installing

Just run

python -m pip install git+https://github.com/BenSmithers/PyTex

from your preferred environment/venv

How does it work?

See Ex1 in the examples folder. It writes templated LaTeX code to a temp file, then runs pdflatex on the tempfile.

Note: this should only be used like

with PyTex("/path/to/out.pdf") as texobj:
    [code]

the compiler will otherwise not be called.

Contributing

Feel free to add issues with bugs or feature requests. If you want to add anything yourself - make a fork, apply your changes, and submit a pull request!

About

Python code for automatically writing tex files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published