0

I use Texmaker 4.4.1.

I use Mac OS X Yosemite 10.10.5.

I've installed birkjour.cls as a root, and everething works fine as a root.

When I try to run a file as a user using \documentclass{birkjour}, I've got:

! LaTeX Error: File `birkjour.cls' not found.

Type X to quit or to proceed,

or enter new name. (Default extension: cls)

Enter file name: ! Emergency stop.

How can I fix it?

Best

9
  • (1) Welcome, (2) Where and how did you install birkjour.cls as root? (3) Did you remember to run texhash as root after you installed it?
    – daleif
    Commented Nov 19, 2015 at 11:16
  • Thanks for answering!. I put it: opt/local/share/texmf/tex/latex/mypkg/birkjour/birkjour.cls. I run texhash as a root after the installation, and as a root I can compile documents, but not as a user. What else should I do?
    – Rosa
    Commented Nov 20, 2015 at 15:46
  • That's a slightly strange place. If in a terminal you run kpsewhich article.cls what result do you get?
    – daleif
    Commented Nov 20, 2015 at 16:44
  • /usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls
    – Rosa
    Commented Nov 22, 2015 at 9:05
  • Unless you set up something special that installation (which is old) will never read anything from /opt/local/share/texmf.... I've never seen any setup that would organize the packages like this. Unless you need birkjour.cls for many articles, just place it in the same folder as your article
    – daleif
    Commented Nov 22, 2015 at 9:19

1 Answer 1

1

First of if you just need a journal class as a one of, place it in the same folder as your .tex file, no installation needed.

If you want to use it for many projects, then the texmf-local folder is the proper place to add it not the general LaTeX installation.

You can ask your installation where the "local" folder is via the command

kpsewhich -var-value TEXMFLOCAL

(mine is /opt/texlive/texmf-local as I've installed TL under /opt/texlive/year/...)

Thus you would need to go to /opt/texlige/texmf-local/tex/latex/birkjour/ and place the relevant files there.

Then remember to run texhash (as root if you are on a Mac) to the the file database updated.

Remember to test that it works (from a different folder than the one holding birkjour.cls)

kpsewhich birkjour.cls

If nothing is returned LaTeX cannot find the file. If something is returned, you are ready to go.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .