views:

356

answers:

1

Hi, under Ubuntu, just wonder how to check if a latex package has been installed?

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%5FExtra%5FPackages.

Thanks and regards!

+1  A: 

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.

Alok
Thanks! Problem solved.
Tim
kpsewchih and echo $TEXTINPUTS produce no output - what might be the cause? I'm on Ubuntu 10.04.
Roman Luštrik
You might not have the package installed - which package are you trying to install?
Alok