General ⇒ How to configure LATEX in my HOME Dir
How to configure LATEX in my HOME Dir
Here I could not able to see the desired results. I am not sure, where I am wrong and what I have to do in addition like setting the environment variables and need to compile anything etc.
Please guide me to configure LATEX in my home dir.
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How to configure LATEX in my HOME Dir
Best regards and welcome to the board
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: How to configure LATEX in my HOME Dir
Please tell me, what modification I have to do in home/user/texmf/web2c/texmf.cnf file.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: How to configure LATEX in my HOME Dir
If you explain what you are aiming at and describe what you have tried so far it will be easier to give specific help.
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: How to configure LATEX in my HOME Dir
Here, in the $HOME/texmf/web2c/texmf.cnf there are some variable’s like
TEXMFMAIN = /usr/share/texmf, TEXMFDIST = /usr/share/texmf-dist, TEXMFLOCAL = /usr/local/share/texmf and TEXMF = {!!$TEXMFCONFIG,!!$TEXMFVAR,$TEXMFHOME!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,$TEXMFLOCAL,!!$TEXMFMAIN,!!$TEXMFDIST} etc.. They all are pointing to the root directory.
Since I have copied the files from root to my home dir, I am not sure whether I have to modify these variables in texmf.cnf file.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: How to configure LATEX in my HOME Dir
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: How to configure LATEX in my HOME Dir
I ran updmap and texhash.
And tried to generate the output for korea so that I can confirm my latex configuration in home dir works well.
But the output of korea fonts looks very strange. So I assume that, fonts on my home dir are not correctly associated.
That’s the reason I asked whether I need to change anything in the configuration file.
If copying the whole system to my home dir is not necessary, can you please let me know what are the most necessary parts I need to copy?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How to configure LATEX in my HOME Dir
Code: Select all
/home/<user>/texmf/fonts
Code: Select all
/usr/share/texmf/fonts
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
How to configure LATEX in my HOME Dir
My directory structure in root is like this.
Code: Select all
/usr/share/texmf/
/usr/share/texmf-config/
/usr/share/texmf-var/ and
/usr/local/share/texmf/
Code: Select all
/usr/local/share/texmf/
I have copied the texmf/ tree to my home dir. i.e.
Code: Select all
cp –r /usr/share/texmf/ /home/user/.
cp –r usr/local/share/texmf/ /home/user/.
And then I ran texhash. The result is below
Code: Select all
texhash: Updating /home/user/.texmf-var/ls-R...
texhash: /usr/local/share/texmf: directory not writable. Skipping...
texhash: /usr/share/texmf: directory not writable. Skipping...
texhash: /usr/share/texmf-var: directory not writable. Skipping...
texhash: /var/lib/texmf/ls-R: no write permission. Skipping...
texhash: Done.
Code: Select all
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+480/600 --dpi 480 cyberbc8
mktexpk: don't know how to create bitmap font for cyberbc8.
………….
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+480/600 --dpi 480 cyberbc5
mktexpk: don't know how to create bitmap font for cyberbc5.
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+480/600 --dpi 480 cyberbc9
mktexpk: don't know how to create bitmap font for cyberbc9.
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+480/600 --dpi 480 cyberbbb
mktexpk: don't know how to create bitmap font for cyberbbb.
Once I can able to see Korean fonts, I want to install Vietnam fonts and try to generate the output.
Re: How to configure LATEX in my HOME Dir
we should change the path of all the variables in the file $HOME/user/texmf/web2c/texmf.cnf and to set the env variable of TEXMFCNF.
For Eg: export TEXMFCNF=/home/user/texmf/web2c/
So that we are telling the kpathsea library to point to our home Latex directory and not root latex directory.
Then run updmap and texhash and mktexlsr. So the the FNDB is updated and the latex font files are taken form your Directory tree.