Hello, how to "redirect" the Ctx "local" directory "c:\ConTeXt\tex\texmf-local" somewere 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? TIA. Best regards, Lukas -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
2011/8/4 Procházka Lukáš Ing. - Pontex s. r. o.:
Hello,
how to "redirect" the Ctx "local" directory
"c:\ConTeXt\tex\texmf-local"
somewere 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.) 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
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
Hello,
On Thu, 04 Aug 2011 11:19:55 +0200, Mojca Miklavec
3.) You can define environmental variable that points to your desired directory.
Mojca
How exactly do you mean this? So let's define an environmental variable, e.g. "set MYCTX=c:\Lukas\ConTeXt". What next step(s) should follow? How to make Ctx know about this variable? Best regards, Lukas -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
2011/8/5 Procházka Lukáš Ing. - Pontex s. r. o.
Hello,
On Thu, 04 Aug 2011 11:19:55 +0200, Mojca Miklavec
wrote: 3.) You can define environmental variable that points to your desired directory.
Mojca
How exactly do you mean this?
So let's define an environmental variable, e.g. "set MYCTX=c:\Lukas\ConTeXt".
The following should work: set TEXMFHOME=C:\Lukas\ConTeXt or alternatively: set MYCTX=c:\Lukas\ConTeXt set TEXMF=... list all of your texmftrees including MYCTX ... Btw: during TL 2011 import, Taco got rid of many problems related to spaces in PATH. In theory TEXMFHOME with spaces should work. If it doesn't, somebody can take a look into it. Mojca
participants (2)
-
Mojca Miklavec
-
Procházka Lukáš Ing. - Pontex s. r. o.