Skip to content

Tools for processing latex files to be fed into latexdiff.

License

Notifications You must be signed in to change notification settings

cchen140/TEX-File-Utility-Tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TEX File Utility Tools

Tools in this repository are initially developed for processing latex files to be fed into latexdiff.

To use them, run flatten.py first and then rm_hl.py or rm_comments.py based on your needs before feeding the output tex file into latexdiff.


flatten.py

Expand all \input{} in the given tex file, recursively.

It automatically finds the file specified in \input{} and replace it with its text.

All the \input{} files are expanded recursively.

Example: python flatten.py src.tex > dst.tex


rm_hl.py

Remove all \hl{} in the given tex file.

It un-highlights all the texts wrapped with \h{}

Example: python rm_hl.py src.tex > dst.tex


rm_comments.py

Remove all comment blocks in the given tex file.

Example: python rm_comments.py src.tex > dst.tex

About

Tools for processing latex files to be fed into latexdiff.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published