Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I had been using the native Debian texlive on Mint Linux for a time, with Texmaker.

Now I installed the "vanilla" texlive, in order to have a better package control with tlmgr. However, I believe I have to do something on Texmaker, or perhaps somewhere else, in order to recognize the new installation, because it isn't finding the new packages I just installed.

For example, after successfully running tlmgr install mathdesign, Texmaker (running pdflatex) will output:

! LaTeX Error: File `mathdesign.sty' not found. 
share|improve this question
How did you setup the PATH? I assume that if you run kpsewhich mathdesign.sty in a terminal then you get what you expected? Note setting the PATH in say .bashrc is not enough, that addition will not be seen by programmes stared via, say, a menu. –  daleif Jul 24 '12 at 15:31
I added the texlive bin directory to the path in /etc/profile. If I run kpsewhich mathdesign.sty, it returns nothing. –  erickrf Jul 24 '12 at 16:57
Possible duplicate: How to install "vanilla" TeXLive on Debian or Ubuntu? –  Martin Schröder Jul 24 '12 at 17:11
You should try to set the path in /etc/environment (and obviously, restart you desktop environment (log out and in) after doing that). In fact, /etc/profile is specific to bash, it isn't read by other shells (eg zsh) nor by all desktop environments. –  mpg Jul 24 '12 at 17:38
@erickrf: Have you run mktexlsr or sudo mktexlsr to recreate the ls-R databases after installing the mathdesign package? –  mhp Jul 25 '12 at 9:02
add comment

1 Answer

up vote 3 down vote accepted

You stated that you added the path in /etc/profile. But did you add it to the FRONT or the BACK of the PATH element?

There is already a TeX system installed on your computer, so the kpsewhich you are using is the one shipped by Debian in /usr/bin, and not the one from Vanilla TeX Live.

Possible solutions:

  • add the TeX Live directory to the front of the path
  • install a texlive equivs packages and remove all the texlive-* packages with dpkg/apt-get/aptitude (see http://www.tug.org/texlive/debian.html at the end for that)
share|improve this answer
I added the TeX Live directory to PATH in /etc/environment and it worked. Thanks. –  erickrf Aug 13 '12 at 22:46
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.