latexpand Command Examples

Simplify LaTeX source files by removing comments and resolving \includes, \inputs, etc. More information: https://www.ctan.org/pkg/latexpand.

latexpand --output {{path/to/output.tex}} {{path/to/file.tex}}

latexpand --keep-comments --output {{path/to/output.tex}} {{path/to/file.tex}}

latexpand --keep-includes --output {{path/to/output.tex}} {{path/to/file.tex}}

latexpand --expand-usepackage --output {{path/to/output.tex}} {{path/to/file.tex}}

latexpand --expand-bbl {{path/to/bibliography.bbl}} --output {{path/to/output.tex}} {{path/to/file.tex}}