Skip to main content

πTex

A Python-based utility for generating and compiling LaTeX documents programmatically. Ideal for automating the creation of complex LaTeX documents.

Requirements

  • πTex assumes that the command pdflatex available in your path. Please see this page for instructions on how to install LaTeX on your system.

Installation

pip install pitex

Quick Start

  • 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()
    

Documentation

Detailed documentation will be available soon.

Contributing

Contributions are welcome! If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.

Licensing

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.

Metadata

Release files for pitex 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for pitex 1.0.1
File Interpreter ABI Platform
pitex-1.0.1-py3-none-any.whl Python 3 none any Details

Release files / pitex-1.0.1-py3-none-any.whl

Download URL pitex-1.0.1-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60686a34648528232b3cba96f3681b6ac5677f3a28b72199b3d5ab2f274fed52
BLAKE2b-256 checksum
How to use checksums
6b07d5ae2cebc27e514de72fc887ce0043b5a89a5aa71edd0df2bb4f8e32f8ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.1

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page