LinuxCommandLibrary

latexpand

expands \\input and \\include commands in LaTeX documents, producing a single

TLDR

Expand includes in LaTeX file

$ latexpand [input.tex] > [output.tex]
copy
Keep comments
$ latexpand --keep-comments [input.tex]
copy
Expand bibliography
$ latexpand --expand-bbl [input.bbl] [input.tex]
copy
Output to file
$ latexpand -o [output.tex] [input.tex]
copy

SYNOPSIS

latexpand [options] file

DESCRIPTION

latexpand expands \\input and \\include commands in LaTeX documents, producing a single flattened file. Useful for journal submissions that require single-file documents or for processing with tools that don't handle includes.

PARAMETERS

-o file

Output to file instead of stdout.
--keep-comments
Preserve comments in output.
--expand-bbl file
Expand bibliography from .bbl file.
--empty-comments
Replace comments with empty lines.
--verbose
Show verbose output.

SEE ALSO

pdflatex(1), latexmk(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community