Skip to content

phck/macro-clean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

macro-clean

Kills unused macro definitions in latex projects. Appropriately handles macros which use other macros.

Inputs:

  • file containing one-line macro definitions
  • multiple tex files which use the macros in the above file

Finds all unused macro definitions and sends to stdout the macro file, omitting the unused lines.

Sample Usage:

ghc -i macroclean.hs macros_file.sty file1.tex file2.tex > new_macros_file.sty

or

ghc macroclean
./macroclean macros_file.sty file1.tex file2.tex > new_macros_file.sty

Example inputs are provided. Compare the output of

./macroclean sample_macros.sty sample1.tex

and

./macroclean sample_macros.sty sample1.tex sample2.tex

About

Kills unused macro definitions in latex projects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published