ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Procházka Lukáš Ing. - Pontex s. r. o." <LPr@pontex.cz>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: texmf-local
Date: Thu, 04 Aug 2011 13:16:37 +0200	[thread overview]
Message-ID: <op.vzor9zlktpjj8f@lpr> (raw)
In-Reply-To: <CALBOmsYxdp3roq1iYCTWR2EFSDxsJ=+zXGSiLK6Qa2CEBssMEA@mail.gmail.com>

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
___________________________________________________________________________________


  reply	other threads:[~2011-08-04 11:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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   ` Procházka Lukáš Ing. - Pontex s. r. o. [this message]
2011-08-05  6:28   ` texmf-local Procházka Lukáš Ing. - Pontex s. r. o.
2011-08-05  9:28     ` texmf-local Mojca Miklavec

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.vzor9zlktpjj8f@lpr \
    --to=lpr@pontex.cz \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).