OK, thanks -
On Thu, 04 Aug 2011 11:19:55 +0200, Mojca Miklavec
2011/8/4 Procházka Lukáš Ing. - Pontex s. r. o.:
Hello,
how to "redirect" the Ctx "local" directory
"c:\ConTeXt\tex\texmf-local"
somewhere else, e.g. to
"c:\Lukas\ConTeXt"?
I'm looking for a way which would "survive" any occasion I update Ctx (even when I delete the whole Ctx installation directory, = "installation from scratch"), so e.g. editing a config file which would appear in Ctx installation tree doesn't seem to be the best.
I would expect e.g. setting a system variable, e.g. "set TEXMFLOCAL=c:\Lukas\ConTeXt"; is there any way like this?
1.) TEXMFHOME (~/texmf) should work out of the box. I didn't test on windows and maybe we need something else for Windows, but you can try that one first. (I'm not sure what exactly is "~" home on windows.)
this seems to be the best way. "~" doesn't substitute for "home directory", but e.g. 'HOMEDRIVE' and 'HOMEPATH' system variables may be used instead. (Beware! 'HOMEPATH' contains spaces in 99 % of cases! In my case, 'HOMEDRIVE' = "C:" and 'HOMEPATH' = "\Documents and Settings\LPR"). So my - not-so-typical - solution is: - to use another variable, 'HOME' in my case, which points to "C:\Lukas" (and to another drives on other comps), - to call '_InitCtx.bat' before running 'context.exe', - '_InitCtx.bat' has the following content: ---- set PATH=c:\ConTeXt\tex\texmf-mswin\bin;%PATH% rem The lowercase "c:" if fatally necesssary! set TEXMFHOME=%TEXMFHOME%;%HOME%\ConTeXt\Fonts ---- And it works OK - even when some *.ttf are placed in "C:\Lukas\ConTeXt\Fonts". Best regards, Lukas
2.) You can create texmf.cnf & texmfcnf.lua in top level (next to texmf-xxx trees) and put your changes to TEXMFLOCAL there. Of course you will have to repeat the process if you delete everything (since your changes to TEXMFLOCAL will be gone), but at least you will keep all the files.
3.) You can define environmental variable that points to your desired directory.
If something doesn't work, feel free to ask. It is not excluded that there is some bug somewhere.
Mojca