TeX Live and MacTeX ⇒ Making TeX known to the system
Making TeX known to the system
I've been playing with Ubuntu lately, reinstalling it many times, having to format the hard drive each time. I learned that I had to make a partition for the /home directory, so as to not have to backup its contents every time. Installing the 2GB of TeXLive 2008 each time is a pain too, so I decided I would make another partition for the /usr/local directory, where the TeXLive installation is due to stay for as long as possible.
The next time I reinstall the operating system, I will have to make the TeX system known to the former. How should this be done?
Keta
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Making TeX known to the system
Code: Select all
## TeX Live 2008
TEXLIVE_BASE='/usr/local/texlive/2008'
TEXLIVE_BIN="$TEXLIVE_BASE/bin/i386-linux"
TEXLIVE_DOC="$TEXLIVE_BASE/texmf/doc"
export PATH="$TEXLIVE_BIN:$PATH"
export MANPATH="$TEXLIVE_DOC/man:$MANPATH"
export INFOPATH="$TEXLIVE_DOC/info:$INFOPATH"
export OSFONTDIR='/usr/share/fonts'
export XINDY_LIBDIR="$TEXLIVE_BIN"
Making TeX known to the system
From the TeX Live instalation guide:
How do I define the path for the programs?Multiple TeX distributions: only one TeX distribution can be active at a time, because all the TeX distributions use the search path to find their programs. This means that to switch from one TeX to another, e.g., between the native TeX Live and a TeX provided by your operating system, you must (at least) change the search path.
Thanks again for the help,
Keta
EDIT: From there too:
What is the PATH all about?Then (except on Windows), you must add the TeX Live binary directory to your PATH:
PATH=/usr/local/texlive/2008/bin/i386-linux:$PATH
(Use the syntax for your shell, your own chosen directory, and your own system name instead of i386-linux.)
Re: Making TeX known to the system
I still don't understand how it works, but as long as it works I don't care that much
