Tuesday, February 12, 2013

Installing Latex packages in your home directory

[CONTEXT]
Without root access, we cannot put the packages or Latex's style files into the directory /usr/share/texmf/

[WHEN]
We want to install Latex package or style files for all our Latex documents but we are working in computers that we do not have root access.

[HOW]
Create a private tex hierarchy

\$mkdir  \$HOME/texmf/tex/latex

Put in this directory all your class, style, and package Latex files.
For custom bibtex style files, create the directory texmf/bibtex/bst

\$mkdir \$HOME/texmf/bibtex/bst

and put your bst files into it.

After any modification of the \$HOME/texmf directory, run the command:
\$texhash

Source: http://www.math.uiuc.edu/~hildebr/tex/tips-customstyles.html