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
latexdiff
from https://www.ctan.org/tex-archive/support/latexdiff unzip latexdiff
python3 -m latex_proj_tool flat old_project/main.tex old.tex
python3 -m latex_proj_tool flat new_project/main.tex new.tex
latexdiff old.tex new.tex > temp.tex
sed 's/^M//' tmp.tex > diff.tex
- 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
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
Hashes for latex_proj_tool-0.1.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 692f2f934e223b308cd1dd99078b04106221bdf002b0e0b5e1f0677e7f37d0f4 |
|
MD5 | adaa6f61aecb9477e982900af01c05b0 |
|
BLAKE2b-256 | f3c3162056be07c83ad3b63e7480dadff00afbd69033da7a61c748072cee2b5a |