From 14489258f0f4cf8968807eda78d5f58a4d94f0a8 Mon Sep 17 00:00:00 2001 From: Juri Dispan Date: Thu, 26 Dec 2024 10:58:37 +0100 Subject: [PATCH] latexpand: add page (#15311) * latexpand: add page * Update latexpand.md * Update pages/common/latexpand.md Co-authored-by: Wiktor Perskawiec --------- Co-authored-by: Wiktor Perskawiec --- pages/common/latexpand.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/latexpand.md diff --git a/pages/common/latexpand.md b/pages/common/latexpand.md new file mode 100644 index 000000000..1a5df3571 --- /dev/null +++ b/pages/common/latexpand.md @@ -0,0 +1,24 @@ +# latexpand + +> Simplify LaTeX source files by removing comments and resolving `\include`s, `\input`s, etc. +> More information: . + +- 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}}`