A Python-based utility for generating and compiling LaTeX documents programmatically. Ideal for automating the creation of complex LaTeX documents.
- πTex assumes that the command
pdflatexavailable in your path. Please see this page for instructions on how to install LaTeX on your system.
pip install pitex-
Minimal example:
from pytex import LatexDocument # Create a new LaTeX document doc = LatexDocument("my_document") # Add content to the document doc.content += r""" \section{Introduction} This is an automatically generated LaTeX document. """ # Compile the LaTeX document to PDF doc.compile()
Detailed documentation will be available soon.
Contributions are welcome! If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.
The code in this project is licensed under MIT license. This is a permissive license that is short and to the point. It lets people do almost anything they want with your project, like making and distributing closed source versions.