TeXShop ⇒ Where are the class files stored?
-
- Posts: 6
- Joined: Fri Dec 30, 2011 1:46 am
Where are the class files stored?
I want to create a custom class for a document I'm making. I plan to copy my current class (amsbook) and copy it to a new file with some small modifications. However, I haven't been able to find the class files. Does anyone know where they are on my computer?
Thanks!
Thanks!
- Stefan Kottwitz
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
Where are the class files stored?
You could use kpsewhich on the command prompt:
On my system, this prints
Stefan
Code: Select all
kpsewhich amsbook.cls
Code: Select all
/usr/local/texlive/2011/texmf-dist/tex/latex/amscls/amsbook.cls
LaTeX.org admin
-
- Posts: 6
- Joined: Fri Dec 30, 2011 1:46 am
Where are the class files stored?
Thanks. I never would have found that. Now where do I put my custom style so that it's picked up by texshop? I tried googling it, but because I'm new to latex, it's hard to figure out which information applies just to latex or which applies to texshop or if it will work on my system at all.
Can I just make a new folder called Example123 in
and then declare Example123 as a class in my document?
Can I just make a new folder called Example123 in
Code: Select all
/usr/local/texlive/2011/texmf-dist/tex/latex/
- Stefan Kottwitz
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
Where are the class files stored?
I would not put a self-made class into the TeX distribution folder. It's hard to find, and could get lost when you reinstall your system.
Have a look what's your personal TeX home directory, you could use that:
Stefan
Have a look what's your personal TeX home directory, you could use that:
Code: Select all
kpsewhich -var-value=TEXMFHOME
LaTeX.org admin
-
- Posts: 6
- Joined: Fri Dec 30, 2011 1:46 am
Re: Where are the class files stored?
Ok, I put my custom class file (Example123.cls) into my personal texhome directory but texshop can't find it when I compile. Do I need to do something else?
- Stefan Kottwitz
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
Where are the class files stored?
Some TeX installations always look for file in the TeX home directory. Others may need to be refreshed using mktexlsr or texhash.
Try
in the terminal.
Stefan
Try
Code: Select all
sudo mktexlsr
Stefan
LaTeX.org admin
-
- Posts: 6
- Joined: Fri Dec 30, 2011 1:46 am
Re: Where are the class files stored?
I ran both of those and it still doesn't recognize my class. I just added it to the main distribution and it worked. Thanks for helping me with that. I never would have figured that out.
Where are the class files stored?
Hi!
So, I have the same problem, only my TeX-distribution doesn't find my .cls-files wherever I put them. I'm writing at some standardized document and are bound to use a custom cls. My document won't compile even if I put the .cls-file in the same folder as my tex-document. I've copied a folder with the .cls-files in to
and update both
The command returned
So now I'm about to turn completely mad here... Any help out there? =)
So, I have the same problem, only my TeX-distribution doesn't find my .cls-files wherever I put them. I'm writing at some standardized document and are bound to use a custom cls. My document won't compile even if I put the .cls-file in the same folder as my tex-document. I've copied a folder with the .cls-files in to
Code: Select all
/users/username/Library/texmf/
Code: Select all
/usr/local/texlive/2012/texmf-dist/tex/latex/
Code: Select all
sudo -s texhash
Code: Select all
sudo -s mktexlsr
Code: Select all
kpsewhich -var-value=TEXMFHOME
Code: Select all
/Users/username/Library/texmf/