Light Stack-based latex-project process. Produces a single ready-to-upload output file. Preserves correct line-breaks and end of paragraphs.
- Suppresses comments and
comment
environments. - Recursively expands
\input
commands. - Decides for each
\ifxx
statement which branch to keep. - Easily extendable to handle additional commands and environments.
--input=[path-to-main-file]
: The path to the root latex file.--output=[name]
: Output file name. The compiled file will be saved as[name].tex
in the same directory of[main-file]
--remove-comments
: Suppress both comments andcomment
environments.--recursive
: Expand\input
commands recursively.--conditions=[cond1,cond2,etc]
: coma-separated list of ignored conditions, i.e. conditions\ifxx
where the\else
branch is compiled.
For all other conditions the\ifxx
branch will be compiled instead.