Skip to main content

A toolset to traverse and manipulate a Latex project with multiple .tex files.

Project description

Latex Project Managment Tool

Build

A toolset to traverse and manipulate a Latex project with multiple .tex files. Here are the currently supported functionalities. You are welcome to contribute more features :)

Project flatten

Flatten a Latex project to a single .tex file. This is useful if you want to use latexdiff or other Latex tools that require a single .tex file.

This is mainly inspired by this post: http://dropbearcode.blogspot.com/2011/09/multiple-file-latex-diff.html

Usage with latexdiff

  1. Make sure you have Perl 5.8+ in your environment.
  2. Download latexdiff from https://www.ctan.org/tex-archive/support/latexdiff
  3. unzip latexdiff
  4. python3 -m latex_proj_tool flat old_project/main.tex --output old.tex
  5. python3 -m latex_proj_tool flat new_project/main.tex --output new.tex
  6. latexdiff old.tex new.tex > temp.tex
  7. sed 's/^M//' tmp.tex > diff.tex
  8. Compile diff.tex to get the PDF.

List Unused Files

List all unused files to help you clean the project.

Usage

List all unused files in this project:

python3 -m latex_proj_tool find_unused my_project/main.tex

List all unused files in this project, excluding some files:

python3 -m latex_proj_tool find_unused my_project/main.tex --exclude-extensions cls,sty,bst

List all unused files in this project, excluding some directories:

python3 -m latex_proj_tool find_unused my_project/main.tex --exclude-dirs backup

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

latex_proj_tool-0.1.dev4.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

latex_proj_tool-0.1.dev4-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file latex_proj_tool-0.1.dev4.tar.gz.

File metadata

  • Download URL: latex_proj_tool-0.1.dev4.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.9

File hashes

Hashes for latex_proj_tool-0.1.dev4.tar.gz
Algorithm Hash digest
SHA256 d31ef601ba04a2fd096a5571e25a8e6b8fedc0ac3a5c91ba094b4d0e0921af8c
MD5 4902234f82e1a8d2a3c064d4b1835e2c
BLAKE2b-256 7b8fab299ccba21b80a72f45106459b56fc3d3193f1ad3896deb49f91564a19d

See more details on using hashes here.

File details

Details for the file latex_proj_tool-0.1.dev4-py3-none-any.whl.

File metadata

  • Download URL: latex_proj_tool-0.1.dev4-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.9

File hashes

Hashes for latex_proj_tool-0.1.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 5ae0719a1a7d03b414987871e39a1a7b090ed832726a02497bec0fe9b4e2759a
MD5 79ddf9c5f554788ac1a22ccd597561b5
BLAKE2b-256 2f8825bce0d3bb1aed891e5f79916ee9646ab6e86117cab3d5b223c151061fe8

See more details on using hashes here.

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