1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-24 23:35:25 +02:00

latexpand: add page (#15311)

* latexpand: add page

* Update latexpand.md

* Update pages/common/latexpand.md

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>

---------

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
Juri Dispan 2024-12-26 10:58:37 +01:00 committed by GitHub
parent 1af7acf5dc
commit 14489258f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

24
pages/common/latexpand.md Normal file
View file

@ -0,0 +1,24 @@
# 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}}`