Install texlive without human interaction in the process
Project description
texlive batch install
The TeX Live installer does not allow for interaction-less installation.
This is the reason why I created this project using pexpect to talk to the install-tl
script.
Usage:
usage: install_texlive [-h] [-v] [-t VERSION] [--install-tl INSTALL_TL] [-k]
[-p PREFIX] [-c COLLECTIONS]
[-s {f,g,d,i,k,c,e,h,b,j,a}] [-u] [-i INSTALL]
[--source] [--docs]
optional arguments:
-h, --help show this help message and exit
-v, --verbose Create more verbose output
-t VERSION, --texlive-version VERSION
TeX Live version to install
--install-tl INSTALL_TL
Path to the install-tl script. If not given, TeX Live
will be downloaded.
-k, --keep-config If an existing installation is found, keep its config
-p PREFIX, --prefix PREFIX
Installation prefix, equivalent to setting
TEXLIVE_INSTALL_PREFIX
-c COLLECTIONS, --collections COLLECTIONS
The TeX Live package collections to install. E.g. -a
to deselect all and only install the absolute basic
TeX packages
-s {f,g,d,i,k,c,e,h,b,j,a}, --scheme {f,g,d,i,k,c,e,h,b,j,a}
The TeX Live scheme to install. Default is "full"
-u, --update Update TeX Live after installation is finished
-i INSTALL, --install INSTALL
Additional packages to install after the main
Installation has finished
--source Install the source tree
--docs Install the docs tree
For a minimal installation (e.g. for CI jobs building documents), it is recommended to
only install the bare minimum selection of package collections: -c "-a"
and then
have a file tex-packages.txt
with the actually needed packages to compile the document:
$ python -m install_texlive -p .texlive -t 2022 --collections='-a' --package-file tex-packages.txt --update
To find out which package provides which style file (e.g. to find out which CTAN package provides scrartcl.cls
), this command is helpful:
$ tlmgr search --global --file '/scrartcl.cls'
koma-script:
texmf-dist/tex/latex/koma-script/scrartcl.cls
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
install_texlive-0.3.6.tar.gz
(8.6 kB
view hashes)
Built Distribution
Close
Hashes for install_texlive-0.3.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53efd3df353d887e2d1e19815b67445107fd2b0561bc1a4f0d7eb16f72c2ed9a |
|
MD5 | 846264ef0591ff33225c2e2600786a94 |
|
BLAKE2b-256 | 38e2373f36c4199dde593e4e02ab9c809a2c1c947dc6181e5b04dda5b4ca866f |