Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How to check if a LaTeX package has been installed in Ubuntu?

When installing, I followed the methods mentioned in http://math.arizona.edu/support/tex/accountpackages.html and http://en.wikibooks.org/wiki/LaTeX/Packages/Installing_Extra_Packages.

share|improve this question
add comment

migrated from stackoverflow.com Sep 16 '11 at 4:28

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 14 down vote accepted

If you know the name of the .sty or .cls file from the package, you can do

kpsewhich <filename>

and it show you the location of the file where Latex system finds the file. If kpsewhich doesn't find it, you probably didn't install the files correctly or didn't run mktexlsr or texhash.

Also, please show us the output of

echo $TEXINPUTS

from the commandline.

share|improve this answer
    
Thanks! Problem solved. –  Tim Dec 26 '09 at 3:50
    
kpsewchih and echo $TEXTINPUTS produce no output - what might be the cause? I'm on Ubuntu 10.04. –  Roman Luštrik Jun 26 '10 at 8:28
    
You might not have the package installed - which package are you trying to install? –  Alok Jun 26 '10 at 14:57
add comment

Your Answer

 
discard

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.