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.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- 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: 10324
- 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: 10324
- 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