User:Ms/TeX Live Manual Installation

From ArchWiki
Jump to: navigation, search

This is a manual to install Tex Live in home directory for single user.

For a thorough installation instruction, you can view it at,

Package Requirements

  • wget
  • perl-tk (for GUI installation)
Warning: GUI installation is not recommended, because in installation version install-tl-20150830 some directories is not set correctly after installation.

Installation

This is assuming that,

  • we will install Tex Live in $HOME/texlive,
  • using zsh as shell.

Step by step installation instruction,

  • Set variable for Tex Live installation directory,
$ export TEXLIVE=$HOME/texlive
  • Save Tex Live installation directory to shell script,
$ export SHELL_ENV=$HOME/.zshenv
$ echo "TEXLIVE=$HOME/texlive" >> $SHELL_ENV
If you use other shell (e.g. bash) replace ".zshenv" with your shell environment script.
  • Download network installer,
$ wget -c http://ossm.utm.my/tex-archive/systems/texlive/tlnet/install-tl-unx.tar.gz
  • Extract the installer,
$ tar zxvf install-tl-unx.tar.gz
  • Change directory to extracted file,
$ cd install-tl-[date]
Replace [date] with installer version.
  • Set texlive installation directory,
$ export TEXLIVE_INSTALL_PREFIX=~/texlive
  • Execute installer,
$ ./install-pl
To install with GUI, add "-gui" to parameter.
  • Follow the instruction and customize your installer.
  • Set portable installation.
  • Press "I" for installing portable installation.

Post Installation

Add Tex Live bin, man, and info path to local environment.

$ echo "export PATH=$TEXLIVE/bin/x86_64-linux:$PATH" >> $SHELL_ENV
$ echo "export MANPATH=$TEXLIVE/texmf-dist/doc/man:$MANPATH" >> $SHELL_ENV
$ echo "export INFOPATH=$TEXLIVE/texmf-dist/doc/info:$INFOPATH" >> $SHELL_ENV

Relogin or open new terminal to activate new PATH.

Now, you can install additional Tex Live packages using tlmgr.

For example, to install latex,

$ tlmgr install latex-bin

and additional recommended packages,

$ tlmgr install amsmath babel carlisle ec geometry graphics hyperref lm  marvosym oberdiek parskip pdftex-def url