Skip to main content

Install texlive without human interaction in the process

Project description

texlive batch install CI

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


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.7.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

install_texlive-0.3.7-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file install_texlive-0.3.7.tar.gz.

File metadata

  • Download URL: install_texlive-0.3.7.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for install_texlive-0.3.7.tar.gz
Algorithm Hash digest
SHA256 cf09a45fad5dd07bcd39cdc3371f6a88b941f98a4c7bde956612c6a40519c25f
MD5 eba09c68a17d35162184812c913e38b4
BLAKE2b-256 edb7da7d4fd618edf8b50630417d438f328a8b7af3257eb29ba503d784976074

See more details on using hashes here.

File details

Details for the file install_texlive-0.3.7-py3-none-any.whl.

File metadata

File hashes

Hashes for install_texlive-0.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9607c05cff8baa6ee56be03e280157f1b3cf7ef0f0d284c11c0857c4b2657d49
MD5 71259f519bd84a80529faa42e4ef43ac
BLAKE2b-256 43b4fe904e2138a7e6abb77c18dc048de6eca2442e1a4de16a9fdc1ebd6f0c9e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page