texliveonfly
Auto-install missing LaTeX packages
TLDR
Compile with auto-install
SYNOPSIS
texliveonfly [--compiler engine] [--arguments args] [options] file
DESCRIPTION
texliveonfly compiles LaTeX documents while automatically installing any missing packages from the TeX Live repository. When the compiler encounters an undefined package, texliveonfly detects the error, uses tlmgr to install the required package, and retries compilation until all dependencies are satisfied.
The tool works with any TeX Live engine including pdflatex, xelatex, and lualatex, selectable via the --compiler flag. Additional compiler arguments can be passed through --arguments. The --dry-run flag shows which packages would be installed without actually performing the installation.
PARAMETERS
--compiler ENGINE
TeX engine to use.--arguments ARGS
Pass to compiler.--dry-run
Don't actually install.--terminal_only
Console output only.--help
Show help.
CAVEATS
TeX Live required. Network access needed. Admin for global install.
HISTORY
texliveonfly was created to automatically install missing LaTeX packages during compilation.
