# Pdflatex finding .cls files installed by texlive-publishers by default

On Ubuntu 18.04.1 I installed texlive-publishers to be able to use ieeeconf.cls in one of my documents, but when I run pdflatex mypaper.tex it asks for the file, which I've found to be located in "/usr/share/texlive/texmf-dist/tex/latex/IEEEconf/IEEEconf.cls"

Now, I have to manually enter that location every time I want to compile my document, and though I have found that a solution would be to simply copy the cls file in question to the directory of my tex file, I don't find the solution adequate. Is there some way I can specify a \$LATEX_HOME or some other way that I can let pdflatex know where my cls library is?

• Welcome to TeX.SX! Does it work if you store the class file in the same folder like the main file. – Bobyandbob Sep 11 '18 at 11:19
• Normally pdflatex should find such files if `/usr/share/texlive/texmf-dist` is a tree of your tex system and if you run mktexlsr. – Ulrike Fischer Sep 11 '18 at 11:21
• Excuse me @UlrikeFischer but what do you mean "is a tree of your tex system"? I ran the command and it seemed to update fine: mktexlsr: Updating /usr/local/share/texmf/ls-R... mktexlsr: Updating /var/lib/texmf/ls-R-TEXLIVEDIST... mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFMAIN... mktexlsr: Updating /var/lib/texmf/ls-R... mktexlsr: Done. but still pdflatex still asks for the file as it cannot be found. I'm sure it's there though. – simernes Sep 11 '18 at 11:34
• But mktexlsr seem not to update `/usr/share/texlive/texmf-dist/` so this tree seems not to belong to your tex system. – Ulrike Fischer Sep 11 '18 at 12:48