latexpand: simplify LaTeX source files
·
142 words
·
1 minute read
latexpand is a command-line program to simplify LaTeX source files by removing comments and resolving \includes
, \inputs
, etc.
Simplify the specified source file and save the result to the specified output file:
latexpand [-o|--output] path/to/output.tex path/to/file.tex
Do not remove comments:
latexpand --keep-comments [-o|--output] path/to/output.tex path/to/file.tex
Do not expand \includes
, \inputs
etc.:
latexpand --keep-includes [-o|--output] path/to/output.tex path/to/file.tex
Expand \usepackages
as far as the corresponding STY files can be found:
latexpand --expand-usepackage [-o|--output] path/to/output.tex path/to/file.tex
Inline the specified BBL file:
latexpand --expand-bbl path/to/bibliography.bbl [-o|--output] path/to/output.tex path/to/file.tex
More information: https://www.ctan.org/pkg/latexpand .
I hope you enjoyed reading this post as much as I enjoyed writing it. If you know a person who can benefit from this information, send them a link of this post. If you want to get notified about new posts, follow me on YouTube , Twitter (x) , LinkedIn , and GitHub .