Linux command
texliveonfly 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Compile with auto-install
texliveonfly [document.tex]
Use specific engine
texliveonfly --compiler=[pdflatex] [document.tex]
With arguments
texliveonfly --arguments="[-shell-escape]" [document.tex]
Dry run
texliveonfly --dry-run [document.tex]
说明
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.
参数
- --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.
FAQ
What is the texliveonfly command used for?
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.
How do I run a basic texliveonfly example?
Run `texliveonfly [document.tex]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --compiler _ENGINE_ do in texliveonfly?
TeX engine to use.