Document Classes ⇒ How to use texhash ?
How to use texhash ?
The Uni's .cls and .sty are in ~/texmf/tex/latex. Now, texhash does not see the texmf in my home directory.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
How to use texhash ?
run
kpsewhich -var-value=TEXMFHOME
to verify if the TeX user directory is set and is that one,Stefan
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: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
How to use texhash ?
But you can run it on that tree:
texhash /home/myuser/texmf
and then there is no need for sudo.
Stefan
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: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
How to use texhash ?
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