I use TEXMFLOCAL, TEXINPUTS and TEXFONTMAPS to tune tex compilation. Everything works fine under Linux and Mac OS X, but MitTeX under Windows breaks my expectations.
c:\tmp\tex> type test.bat
set TEXMFLOCAL=some;thing
kpsewhich --var-value TEXMFLOCAL
c:\tmp\tex> test.bat
c:\tmp\tex>set TEXMFLOCAL=some;thing
c:\tmp\tex>kpsewhich --var-value TEXMFLOCAL
C:/Documents and Settings/user/Application Data/MiKTeX/2.9
Why the value of the environment variable TEXMFLOCAL is ignored? Do I set it wrong, or is it a feature of MikTeX? How to affect MikTeX's TEXMFLOCAL, TEXINPUTS and TEXFONTMAPS from a script (.bat or .py)?
Best Answer
The only environment variables recognised (at least the documented ones) by MiKTeX globally are (MiKTeX manual, Chapter 8):
If you want to know hot to set a local texmf tree have a look at Create a local texmf tree in MiKTeX