[Tex/LaTex] Accessing Mac (mactex) install folder

macmactextexmaker

I am forced to use a Mac for a while. My log-file says my class file is in:

/usr/local/texlive/2010/texmf-dist/tex/latex/base/report.cls

Does this mean my packages are in this folder?

/usr/local/texlive/2010/

Also, the latex/base folder how do I access it? I can't find it in my finder.

Sorry for this stupid questions but I'm not used to working on a Mac.

Second question: what I have to do to get my class working? I am used to click the Refresh DNB button on Miktex but that won't work on OS X.

Best Answer

Most of the core packages are probably in a subfolder of /usr/local/texlive/2010/.

I'm not that familiar with mactex, but it's based on TeXlive, so you can use TeXlive utilities to find stuff.

To find where a given package is installed, you can open a terminal and type:

kpsewhich <packagename>.sty

And it should show you the full path to the file.

If you want to install custom classes and style files, I'd recommend using the TEXMFHOME tree. You can find out what this is by typing:

kpsewhich -var-value TEXMFHOME

I believe on a mac this defaults to ~/Library/texmf/. You could for example put a custom class file in ~/Library/texmf/tex/latex/myclass/ . At some point you may need to run:

mktexlsr ~/Library/texmf

to get this folder recognized by the system, but it may already be. (mktexlsr and sudo mktexlsr for system files are the equivalent of refreshing the file name database in MiKTeX.)

The command:

kpsepath tex

would show you all the folders searched for tex (.sty and .cls) files at compilation time. (If it ends in /// it'll search subfolders.)

I'm afraid I have no clue why these wouldn't show up in Mac's finder. I don't use a mac.

Related Question