Impossible for me to compile a tex file because it's said ***.cls file not found even if the whole package directory is in usr/local/texlive/texmf-local on my mac
How to solve please?
Mactek installed. pdflatex not installed, ignoring how to install it.
Thanks to all.
Best Answer
Assuming your class is called
magox.cls
, you should issue, from the terminal and the work directory where you have either developed or downloaded the class, the following commands:Change
magox
to the actual file name, of course.Saving the class file directly in
/usr/local/texlive/texmf-local
would not work, because LaTeX only looks (recursively) in/usr/local/texlive/texmf-local/tex/latex
. Alsomktexlsr
is necessary, because otherwise the file would not be found in the cache that TeX Live maintains for reducing disk I/O.After these operations, any document with
\documentclass{magox}
should work as expected.