GeneralHow to configure LATEX in my HOME Dir

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
gpn
Posts: 11
Joined: Thu Oct 15, 2009 11:22 am

How to configure LATEX in my HOME Dir

Post by gpn »

Right now the latex has been installed in my root directory. I have to install some fonts in to that. Since I don’t have root permission, I have copied the necessary directories (/usr/share/texmf and /usr/local/share/texmf) from root to my home directory. And here in texmf dir, I have put the font files. I ran updmap and texconfig rehash.

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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

How to configure LATEX in my HOME Dir

Post by localghost »

It is not necessary to copy the whole system to your home directory. Just the relevant parts are needed. Make sure that you stick to the rules of the TDS (TeX Directory Structure) standard. when doing a texhash on the terminal as normal user (not as root) the files in your home directory will be included into the filename database (FNDB).


Best regards and welcome to the board
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
gpn
Posts: 11
Joined: Thu Oct 15, 2009 11:22 am

Re: How to configure LATEX in my HOME Dir

Post by gpn »

Thanks for the prompt reply.
Please tell me, what modification I have to do in home/user/texmf/web2c/texmf.cnf file.
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Re: How to configure LATEX in my HOME Dir

Post by localghost »

What gives you the idea that you need to modify the configuration file? Just install the font package according to the above mentioned TDS and follow the instructions in the package manual.

If you explain what you are aiming at and describe what you have tried so far it will be easier to give specific help.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
gpn
Posts: 11
Joined: Thu Oct 15, 2009 11:22 am

Re: How to configure LATEX in my HOME Dir

Post by gpn »

Actually I have copied the texmf dir from my root to my home directory.

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.
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Re: How to configure LATEX in my HOME Dir

Post by localghost »

I still don't understand what a font installation has to do with copying the whole system to the home directory and modifying the configuration file.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
gpn
Posts: 11
Joined: Thu Oct 15, 2009 11:22 am

Re: How to configure LATEX in my HOME Dir

Post by gpn »

Initially Korean and other fonts are installed in the system (all are in root dir). Here I need to install fonts for Vietnam and want to check how it looks, as I don’t have root permission I copied the whole system (texmf dir) to my home directory and installed the Vietnamese fonts there.
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?
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

How to configure LATEX in my HOME Dir

Post by localghost »

You just need to put the font files with an according directory structure into your home directory and refresh the FNDB (not as root). That's it.

Code: Select all

/home/<user>/texmf/fonts
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This directory should be structured like its counterpart. Take a look at it.

Code: Select all

/usr/share/texmf/fonts
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Enabling and updating the according map files is required afterwards. Perhaps »The Font Installation Guide« can give further help.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
gpn
Posts: 11
Joined: Thu Oct 15, 2009 11:22 am

How to configure LATEX in my HOME Dir

Post by gpn »

Below I have given the background and what I have tried so far.

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/
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
In

Code: Select all

/usr/local/share/texmf/
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Korean, Japanese fonts are installed.

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/.
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Then I ran updmap. This created a .texmf-var in my home dir.
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.
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Now I tried generating the output to see the Korean fonts. I got the below error and the output looks weird.

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.
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Here I assume that my latex in home dir is not properly configured since I cannot able to produce Korean fonts.

Once I can able to see Korean fonts, I want to install Vietnam fonts and try to generate the output.
gpn
Posts: 11
Joined: Thu Oct 15, 2009 11:22 am

Re: How to configure LATEX in my HOME Dir

Post by gpn »

The solution to this configuration is,

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.
Post Reply