latex-packer

Crates.iolatex-packer
lib.rslatex-packer
version0.1.1
created_at2025-04-21 21:58:02.4802+00
updated_at2025-04-21 21:59:04.851089+00
descriptionCLI that goes though the file and subsequent \input, \include and packs all the content to the single output file.
homepagehttps://github.com/DobbiKov/latex-packer
repositoryhttps://github.com/DobbiKov/latex-packer
max_upload_size
id1643291
size12,312
Yehor KOROTENKO (DobbiKov)

documentation

README

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}
Commit count: 6

cargo fmt