I have found numerous guides on how to do this (heres a couple):
but I have a different directory structure and none of the places present in the answers are present on my system.
Using locate
I have found these locations of existing 'texmf.conf' files:
ben@ben-OptiPlex-9010:~$ locate texmf.cnf
/etc/texmf/web2c/texmf.cnf
/usr/share/doc/texlive-doc/latex/pgfplots/texmf.cnf
/usr/share/doc/texlive-pictures-doc/latex/pgfplots/texmf.cnf
/usr/share/texlive/texmf/web2c/texmf.cnf
/usr/share/texmf/web2c/texmf.cnf
All of the texmf.conf
files (I ignore the ones embedded in /usr/share/doc
contain lines that say something along the lines of do not edit this file directly
). The options provided are:
-
/usr/share/texmf/web2c/texmf.cnf & /usr/share/texlive/texmf/web2c/texmf.cnf
: Go and modify thetexmf.cnf
in../../
which clearly does not exist. So create it? And in which location,texmf
ortexlive/texmf
? -
/etc/texmf/web2c/texmf.cnf
:PLEASE DO NOT EDIT THIS FILE DIRECTLY. It is meant to be generated from files in /etc/texmf/texmf.d/
which only contains00debian.cnf
&80tex4ht.cnff
. Do I add a new one? Is the name important? -
Go with what is suggested in some answers and just change the
TEXMFHOME
variable as I do with any other variable in Ubuntu (~/.pam_environment
file these days)?
Best Answer
On writing this question, I found a definitive answer in the TEX (Live) on Debian guide on tug.
This part explains the best option and why:
So to answer my question, it seems the best approach in the Debian version of TexLive 2012 is to:
Create a
03local.cnf
file in/etc/texmf/texmf.d/
and add myTEXMFHOME
assignment to itApply the changes by calling
sudo update-texmf