2 releases
new 0.1.1 | Apr 21, 2025 |
---|---|
0.1.0 | Apr 21, 2025 |
#1285 in Text processing
75 downloads per month
6KB
90 lines
Latex packer
This CLI reads a provided main tex
file and if there are inputet or included
files using \input
or \inlcude
the CLI copies their content and pastes to
the output files. In the end you obtain a single tex
file containing all the
contents without nested files.
Usage by example:
\documentclass{article}
\begin{document}
\input{abstract.tex}
Hello, world!
\input{first.tex}
\end{document}
\abstract{This is a simple abstract.}
\textbf{First nested files}
But there's another one:
\input{second.tex}
Second \textit{nested file}
Then if you call:
latex-packer main.tex output.tex
You obtain the resulted file:
\documentclass{article}
\begin{document}
\abstract{This is a simple abstract.}
Hello, world!
\textbf{First nested files}
But there's another one:
Second \textit{nested file}
\end{document}
Dependencies
~1–1.7MB
~31K SLoC