Verzeichnis support/texlive-pkgassist
texlive-pkgassist
Version 0.1.2 · Maintained by Ruilin Mao · MIT License
Compile a LaTeX document and install the TeX Live packages that supply its missing files. For example, when LaTeX reports a missing subcaption.sty, the script asks tlmgr which package provides it, installs caption, and retries the build.
Quick start
Unpack the release and add the directory containing tlpkgassist, tlpkgassist.cmd, and texlive-pkgassist.lua to your PATH. Keep the launchers alongside the Lua script. From your document's project directory, run:
tlpkgassist main.tex tlpkgassist --tree user --preflight main.tex
You can also run texlua /path/to/texlive-pkgassist.lua main.tex directly.
Use texlua, tlmgr, and your LaTeX engine from the same upstream TeX Live installation on Windows or Linux, or from MacTeX on macOS. Package downloads use the configured TeX Live repository. It must match the year of the local installation.
--tree userinstalls relocatable packages underTEXMFHOME. The script initializes the user tree as needed.--tree systeminstalls into the selected TeX Live installation. On Windows, a recognized read-only installation error triggers a UAC request for the package installation. Compilation continues with the original process privileges.--tree auto(default) tries the system tree first and can retry a package installation in the user tree.--preflightchecks explicit declarations in the main preamble and batches missing packages before starting the engine.--latexmkdelegates multiple passes and bibliography processing to latexmk.
For a command reference, run man tlpkgassist after the man page is installed, or man -l ./tlpkgassist.1 with GNU man from the unpacked directory.
See the user manual for engine choices, external tools, font mappings and troubleshooting. Chinese instructions are available in README-zh.md.
Copyright (c) 2026 Ruilin Mao. The script, tests and documentation are distributed under the MIT License.
Herunterladen des vollständigen Inhalts dieses Pakets in einem Zip-Archiv (130.1k).
TeXlive-pkgassist – Install missing TeX Live packages while compiling LaTeX documents
texlive-pkgassist is a command-line tool for compiling LaTeX documents with TeX Live. When the engine reports a missing file, the tool uses tlmgr to find and install the package that provides it, then retries the build. An optional preflight scan installs the missing packages declared in the preamble of the main document in one batch.
Packages can be installed in the system or the user tree; latexmk can be used for builds that need biber or several LaTeX runs. The tool runs with texlua, so no further interpreter is needed.
A similar tool, written in Python, is texliveonfly.
| Paket | TeXlive-pkgassist |
| Fehlermeldungen | |
| Repository | |
| Version | 0.1.2 |
| Lizenzen | MIT License |
| Copyright | 2026 Ruilin Mao |
| Betreuer | Ruilin Mao |
| Themen | Installationsmanagement Übersetzung |
| Siehe auch | texliveonfly |