I use Gummi was LaTeX document editing.
I recently installed TeX Live 2012 as per instructions here.
Also I previously had TeX Live installed from Ubuntu Software Center which I uninstalled.
Now, when I start Gummi and load some old LaTeX documents, it seems Gummi doesn't know anything about new TeX Live 2012 installation and uses old TeX program (I don't understand where it loads this old program from since I uninstalled TeX Live from Software Center).
This is the first line in Gummi's build log:
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
Does it come with its own TeX Live
? How do I make it use TeX Live 2012
?
In fact when I type in command pdflatex
in the terminal, I get:
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
where as when I cd /usr/local/texlive/2012/bin/i386-linux
and type in ./pdflatex
, I get:
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
restricted \write18 enabled.
I had properly exported PATH
variable after installing TeX Live 2012
by adding following entry in my ~/.pam_environment
file:
PATH DEFAULT=${PATH}:/usr/local/texlive/2012/bin/i386-linux
When I echo $PATH
above directory can be seen added to PATH
.
Looks like some old TeX Live program is taking preference over TeX Live 2012.
Best Answer
you must change the order in the PATH-variable: Instead of
It should be
Because the Operating system uses the first command it finds in the PATH, it will use the latex/pdflatex which are installed by Debian, and not of your installation.
Out of topic: You can use "which latex" to find which comand is used. (Type it in the shell.)