Installing TeX locally

The default TeX install that comes with our desktops in the CAAM department is antiquated: may packages are missing and those we do have are several years behind. Early on, this isn't much of a problem, but once you get more advanced, you'll want to use more of the features available in modern TeX.

Local install

Hard drive space in your home directory is limited, so we will do the instillation in the /scratch directory. This is located on the physical hard drive associated with your desktop. Start by downloading the current TeXLive sources:

caampc # cd /scratch caampc # wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz

Now unpack this file

caampc # gunzip install-tl-unx.tar.gz caampc # tar xfv install-tl-unx.tar

Go to the directory this extracts and run the install script

caampc # cd install-tl-* caampc # ./install-tl

We now need to change a few of the install settings. By default, TeXLive wants to install to /usr/local/texlive. We don't have write access to that directory, so we'll install to the /scratch directory. Select D and then 1 and change the directory to /scratch/texlive. As we live in the United States, it also makes sense to configure the default paper size to letter instead of A4. Select O and then P to change the default. Now, select I to install and go have lunch. This takes a while!

Updating Path

The last step is to update our path such that our installed version of TeX is called when we run latex. In the ~/.bashrc file (assuming you're using bash), add the following line

export PATH="/scratch/texlive/bin/x86_64-linux/:$PATH"

We need to add our new path to the left of the existing path so that it is scanned first; see 1.

While we're editing the bashrc file, it is a good time to add new directories for TeX and BibTeX to search.

export TEXINPUTS=".:$HOME/SVN/matpic:$HOME/SVN/dagr/TeX:$TEXINPUTS" export BIBINPUTS=".:$HOME/SVN/dagr/TeX:$BIBINPUTS"

Updating

To update texlive, run the program

tlmgr update --all

Contact

jeffreyh@rice.edu
Duncan Hall 2108

curriculum vitae

PDF as of November 2011

Notes

Git

Screen

TeX Install

related projects

CAAM335 Lab

Beaded string data

External Links

Unix Stackexchange

TeX Stackexchange

Taraborelli's beautiful LaTeX

Music for Programming