Skip to main content

A tool to flatten LaTeX files with include directives

Project description

Flatex

This is inspired by the C program "flatex" for flattening a LaTex project that uses include statements. It is not a fully backwards compatible bug for bug re-implementation.

Basic usage

The basic way to use this program is to navigate to the directory with your highest level .tex file and simply call

python3 -m flatex <top_level.tex>

Then this program will output a fully expanded version

Caveats

This will not handle nested include statements

Testing

To run unit tests run the following command from the root of the project

python3 -m unittest tests.test_flatex

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flatex-1.1.0.tar.gz (15.1 kB view hashes)

Uploaded Source

Built Distribution

flatex-1.1.0-py3-none-any.whl (15.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page