A toolset to traverse and manipulate a Latex project with multiple .tex files.
Project description
Latex Project Managment Tool
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
- Make sure you have Perl 5.8+ in your environment.
- Download
latexdifffrom https://www.ctan.org/tex-archive/support/latexdiff unzip latexdiffpython3 -m latex_proj_tool flat old_project/main.tex --output old.texpython3 -m latex_proj_tool flat new_project/main.tex --output new.texlatexdiff old.tex new.tex > temp.texsed 's/^M//' tmp.tex > diff.tex- Compile
diff.texto 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d31ef601ba04a2fd096a5571e25a8e6b8fedc0ac3a5c91ba094b4d0e0921af8c
|
|
| MD5 |
4902234f82e1a8d2a3c064d4b1835e2c
|
|
| BLAKE2b-256 |
7b8fab299ccba21b80a72f45106459b56fc3d3193f1ad3896deb49f91564a19d
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ae0719a1a7d03b414987871e39a1a7b090ed832726a02497bec0fe9b4e2759a
|
|
| MD5 |
79ddf9c5f554788ac1a22ccd597561b5
|
|
| BLAKE2b-256 |
2f8825bce0d3bb1aed891e5f79916ee9646ab6e86117cab3d5b223c151061fe8
|