I tried to set the variable TEXMFHOME and I tried to add/replace the path in /usr/local/texlive/2020/texmf.cnf, but the command kpsewhich -var-value TEXMFHOME does not show anything. Does anybody have an idea what I am doing wrong? Thank you very much.
I have a similar question to Tobi's. I'm also using macOS and editing using Aquamacs. I also use Aquamacs to issue the Latex compiler command. I downloaded a template, and a .cls file was included in the example. When I place the .cls file in the same directory as the template, it compiles fine. I'd like, however, to place the .cls file in a directory so that I can reference it in the future.
I'm running TeX Live 2022 and I believe i need to place the .cls file in this directory: /usr/local/texlive/2022/texmf-dist/tex/latex/base . I have two questions:
Is this indeed the directory where I should place the .cls file?
What is the terminal command that allows me to do that? I tried to copy the file within emacs, but got a Permission Denied error.
As I was composing this revision, i see that an answer came in earlier. I'll try that first. No need to respond to this for now. Thank you.
Thanks,
Bruce
Last edited by brucehughw on Thu Jun 23, 2022 2:20 pm, edited 2 times in total.
brucehughw wrote:My trouble is, I don't even know which version of latex I'm running because I've installed several versions of Latex, and I'm not sure which of those Aquamacs is using. Can someone please tell me how to determine which version I'm using
and then open the log file. Usually you will find the paths of the used class.You can test this even here to see paths from the TeX Live installation of the online compiler.
However, classes and files that are not part of the TeX distribution should not be installed in the TDS tree of the distribution, but in TEXMFHOME or TEXMFLOCAL. Usually this should be the same for every version of MacTeX/TeX Live. Try:
Note: You have to use a valid TDS also when using TEXMFHOME or TEXMFLOCAL. So, e.g., if the command would result in /home/USER/Library/texmf, you would have to generate a path like /home/USER/Library/texmf/tex/latex/my-prefered-template and copy the template files to this folder.
Sorry, but this is my only answer to this question, because I'm not a Mac user and questions like this one are outside my main interests.
Thanks, MjK, for your reply. I have placed the CS.cls file in my /Users/Bruce/Library/texmf directory. I also see this empty directory in the system path: