0

I have a class file I have put in my local texmf directory (.texmf/tex/latex/classdir) and run sudo texhash but I am still getting a build error saying that my class file cannot be found. I have gone through the following posts to no avail

Installing a class

How can I manually install a package on MiKTeX (Windows)

and the read me hasn't been much help either

https://www.tug.org/texlive/doc/texlive-en/texlive-en.html#x1-460006

(I'm on a brand new installation of texlive fyi)

What am I doing wrong?

  • pdflatex: /usr/bin/pdflatex /usr/share/man/man1/pdflatex.1.gz – Aaron Zolotor Oct 11 '18 at 23:09
  • pdfTeX 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) – Aaron Zolotor Oct 11 '18 at 23:12
  • from repo sudo apt install texlive* – Aaron Zolotor Oct 11 '18 at 23:14
  • I added sudo because I got this when I didn't texhash: /usr/local/share/texmf: directory not writable. Skipping... texhash: /var/lib/texmf: directory not writable. Skipping... texhash: /var/lib/texmf: directory not writable. Skipping... texhash: /var/lib/texmf: directory not writable. Skipping... texhash: Done. – Aaron Zolotor Oct 11 '18 at 23:15
  • texhash .texmf succeeded just now though. Still getting a compile error – Aaron Zolotor Oct 11 '18 at 23:17
1

I was able to get things working by putting my class file in /usr/share/texlive/texmf-dist/tex/latex which isn't texmf-local obviously but at least things are working. If someone else knows how to find that folder/create it since it doesn't seem to exist for me I'd love to know. For others having a similar issue using the directory above should work and then just use texhash.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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