ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* texmf-local
@ 2011-08-04  6:52 Procházka Lukáš Ing. - Pontex s. r. o.
  2011-08-04  9:19 ` texmf-local Mojca Miklavec
  0 siblings, 1 reply; 5+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2011-08-04  6:52 UTC (permalink / raw)
  To: ConTeXt

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: texmf-local
  2011-08-04  6:52 texmf-local Procházka Lukáš Ing. - Pontex s. r. o.
@ 2011-08-04  9:19 ` Mojca Miklavec
  2011-08-04 11:16   ` texmf-local Procházka Lukáš Ing. - Pontex s. r. o.
  2011-08-05  6:28   ` texmf-local Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 2 replies; 5+ messages in thread
From: Mojca Miklavec @ 2011-08-04  9:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: texmf-local
  2011-08-04  9:19 ` texmf-local Mojca Miklavec
@ 2011-08-04 11:16   ` Procházka Lukáš Ing. - Pontex s. r. o.
  2011-08-05  6:28   ` texmf-local Procházka Lukáš Ing. - Pontex s. r. o.
  1 sibling, 0 replies; 5+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2011-08-04 11:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

OK, thanks -

On Thu, 04 Aug 2011 11:19:55 +0200, Mojca Miklavec <mojca.miklavec.lists@gmail.com> wrote:

> 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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: texmf-local
  2011-08-04  9:19 ` texmf-local Mojca Miklavec
  2011-08-04 11:16   ` texmf-local Procházka Lukáš Ing. - Pontex s. r. o.
@ 2011-08-05  6:28   ` Procházka Lukáš Ing. - Pontex s. r. o.
  2011-08-05  9:28     ` texmf-local Mojca Miklavec
  1 sibling, 1 reply; 5+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2011-08-05  6:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

On Thu, 04 Aug 2011 11:19:55 +0200, Mojca Miklavec <mojca.miklavec.lists@gmail.com> 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".

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: texmf-local
  2011-08-05  6:28   ` texmf-local Procházka Lukáš Ing. - Pontex s. r. o.
@ 2011-08-05  9:28     ` Mojca Miklavec
  0 siblings, 0 replies; 5+ messages in thread
From: Mojca Miklavec @ 2011-08-05  9:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2011/8/5 Procházka Lukáš Ing. - Pontex s. r. o. <LPr@pontex.cz>:
> Hello,
>
> On Thu, 04 Aug 2011 11:19:55 +0200, Mojca Miklavec
> <mojca.miklavec.lists@gmail.com> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-08-05  9:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-04  6:52 texmf-local Procházka Lukáš Ing. - Pontex s. r. o.
2011-08-04  9:19 ` texmf-local Mojca Miklavec
2011-08-04 11:16   ` texmf-local Procházka Lukáš Ing. - Pontex s. r. o.
2011-08-05  6:28   ` texmf-local Procházka Lukáš Ing. - Pontex s. r. o.
2011-08-05  9:28     ` texmf-local Mojca Miklavec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).