latexpand Command Examples

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

latexpand {{[-o|--output]}} {{path/to/output.tex}} {{path/to/file.tex}}

latexpand --keep-comments {{[-o|--output]}} {{path/to/output.tex}} {{path/to/file.tex}}

latexpand --keep-includes {{[-o|--output]}} {{path/to/output.tex}} {{path/to/file.tex}}

latexpand --expand-usepackage {{[-o|--output]}} {{path/to/output.tex}} {{path/to/file.tex}}

latexpand --expand-bbl {{path/to/bibliography.bbl}} {{[-o|--output]}} {{path/to/output.tex}} {{path/to/file.tex}}