General ⇒ How to configure LATEX in my HOME Dir
How to configure LATEX in my HOME Dir
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.
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.
- localghost
- Site Moderator
- Posts: 9201
- Joined: Fri Feb 02, 2007 12:06 pm
How to configure LATEX in my HOME Dir
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¹
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
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Re: How to configure LATEX in my HOME Dir
Thanks for the prompt reply.
Please tell me, what modification I have to do in home/user/texmf/web2c/texmf.cnf file.
Please tell me, what modification I have to do in home/user/texmf/web2c/texmf.cnf file.
- localghost
- Site Moderator
- Posts: 9201
- Joined: Fri Feb 02, 2007 12:06 pm
Re: How to configure LATEX in my HOME Dir
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.
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
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Re: How to configure LATEX in my HOME Dir
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.
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: 9201
- Joined: Fri Feb 02, 2007 12:06 pm
Re: How to configure LATEX in my HOME Dir
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
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Re: How to configure LATEX in my HOME Dir
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?
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: 9201
- Joined: Fri Feb 02, 2007 12:06 pm
How to configure LATEX in my HOME Dir
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.
This directory should be structured like its counterpart. Take a look at it.
Enabling and updating the according map files is required afterwards. Perhaps »The Font Installation Guide« can give further help.
Code: Select all
/home/<user>/texmf/fonts
Code: Select all
/usr/share/texmf/fonts
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
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
How to configure LATEX in my HOME Dir
Below I have given the background and what I have tried so far.
My directory structure in root is like this.
In Korean, Japanese fonts are installed.
I have copied the texmf/ tree to my home dir. i.e.
Then I ran updmap. This created a .texmf-var in my home dir.
And then I ran texhash. The result is below
Now I tried generating the output to see the Korean fonts. I got the below error and the output looks weird.
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.
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 cyberbc8mktexpk: don't know how to create bitmap font for cyberbc8.………….kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+480/600 --dpi 480 cyberbc5mktexpk: don't know how to create bitmap font for cyberbc5.kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+480/600 --dpi 480 cyberbc9mktexpk: don't know how to create bitmap font for cyberbc9.kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+480/600 --dpi 480 cyberbbbmktexpk: 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
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.
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.