Hello,
The Uni's .cls and .sty are in ~/texmf/tex/latex. Now, texhash does not see the texmf in my home directory.
Document Classes ⇒ How to use texhash ?
NEW: TikZ book now 40% off at Amazon.com for a short time.
- Stefan Kottwitz
- Site Admin
- Posts: 10322
- Joined: Mon Mar 10, 2008 9:44 pm
How to use texhash ?
Hi,
run
Stefan
run
kpsewhich -var-value=TEXMFHOME
to verify if the TeX user directory is set and is that one,Stefan
LaTeX.org admin
How to use texhash ?
Hi,Stefan Kottwitz wrote:runkpsewhich -var-value=TEXMFHOME
to verify if the TeX user directory is set and is that one,
The command answers :
/home/myuser/texmf
. But
texhash
may need to be run as sudo, in which case, I'm not home...- Stefan Kottwitz
- Site Admin
- Posts: 10322
- Joined: Mon Mar 10, 2008 9:44 pm
How to use texhash ?
TeX automatically searches in the home directory, so the point is to have TEXMFHOME correctly set, running texhash would not be needed.
But you can run it on that tree:
texhash /home/myuser/texmf
and then there is no need for sudo.
Stefan
But you can run it on that tree:
texhash /home/myuser/texmf
and then there is no need for sudo.
Stefan
LaTeX.org admin
How to use texhash ?
It worked, thanks ! So the steps are :Stefan Kottwitz wrote:But you can run it on that tree :texhash /home/myuser/texmf
and then there is no need for sudo.
- make the tree : ~/texmf/tex/latex ;
- copy the .cls and .sty files in ~/texmf/tex/latex ;
- check if
TEXMFHOME
is ~/texmf by runningkpsewhich -var-value=TEXMFHOME
; - if not, add
export TEXMFHOME=~/texmf
in the .bashrc file and relog ; - run
texhash ~/texmf
; - compile the document.
- Stefan Kottwitz
- Site Admin
- Posts: 10322
- Joined: Mon Mar 10, 2008 9:44 pm
How to use texhash ?
Thanks for writing up the complete steps!
By the way, it may also be good to use subdirectories below
Stefan
By the way, it may also be good to use subdirectories below
~/texmf/tex/latex
for classes or packages. It should work the same.Stefan
LaTeX.org admin