mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-06 14:45:18 +00:00
30 lines
956 B
Plaintext
30 lines
956 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# latexpand
|
|
|
|
> Simplify LaTeX source files by removing comments and resolving `\include`s, `\input`s, etc.
|
|
> More information: <https://www.ctan.org/pkg/latexpand>.
|
|
|
|
- Simplify the specified source file and save the result to the specified [o]utput file:
|
|
|
|
`latexpand --output {{path/to/output.tex}} {{path/to/file.tex}}`
|
|
|
|
- Do not remove comments:
|
|
|
|
`latexpand --keep-comments --output {{path/to/output.tex}} {{path/to/file.tex}}`
|
|
|
|
- Do not expand `\include`s, `\input`s etc.:
|
|
|
|
`latexpand --keep-includes --output {{path/to/output.tex}} {{path/to/file.tex}}`
|
|
|
|
- Expand `\usepackage`s as far as the corresponding STY files can be found:
|
|
|
|
`latexpand --expand-usepackage --output {{path/to/output.tex}} {{path/to/file.tex}}`
|
|
|
|
- Inline the specified BBL file:
|
|
|
|
`latexpand --expand-bbl {{path/to/bibliography.bbl}} --output {{path/to/output.tex}} {{path/to/file.tex}}`
|