Re: [NTG-context] ConTeXt Minimals and TEXMFCACHE

2010-08-28 Thread Nicola
In article 4c782d26.6040...@wxs.nl, Hans Hagen pra...@wxs.nl wrote:

 On 27-8-2010 8:17, Nicola wrote:
  In article
  aanlktimbrxn-yhfa9bqyrejmcfuyehqxr-+ix6ne5...@mail.gmail.com,
Mojca Miklavecmojca.miklavec.li...@gmail.com  wrote:
 
  TEXMFCACHE is not used by MKII (neither in pdfTeX nor in XeTeX).
 
  Right. I have tried
 
  unset TEXMFCACHE
  texexec hello.tex
 
  in the command line and it just runs texexec (as expected).

Sorry, my mistake. If I unset TEXMFCACHE, then mtxrun is run also from 
the command line and the behaviour is consistent with what happens from 
TeXShop - which, in turn, is consistent with what Hans explains below.

 we used to have texmfstart as script runner (all scripts are located and 
 started by a runner which is faster than using some kpse locator esp 
 when having nested runs as with metafun in mkii)
 
 so, texexec used to be
 
texmfstart texexec
 
 however, nowadays mtxrun is the runner and it replaces texmfstart for 
 mkii as well and in order to do this, it needs the file database and 
 that one ends up in the cache so even for mkii there is a cache needed 
 (when I'm in the mood I'll check the lua texutil variant in which case 
 we can also kick out ruby which is currently only needed for mkii)
 
 Hans

Everything is clear now. Thank you!

Nicola

___
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
___


Re: [NTG-context] ConTeXt Minimals and TEXMFCACHE

2010-08-27 Thread Mojca Miklavec
On Thu, Aug 26, 2010 at 21:03, Nicola nvitacolo...@gmail.com wrote:
 Hi,
 according to the wiki “ConTeXt minimals does not touch anything outside
 its installation folder”, but if TEXMFCACHE is not set by setuptex,
 actually many files may be written outside the ConTeXt minimals folder,
 and (as in my case) they may conflict with the files written by ConTeXt
 from TeX Live in the same cache folder.

 Is there any reason why exporting TEXMFCACHE is commented out in
 setuptex?

The variable TEXMFCACHE is set in
tex/texmf/web2c/texmfcnf.lua
and that one should do the job. Under usual circumstances at least.

If that one is not being respected, something might be wrong. Do you
have any other texmfcnf.lua file somewhere else?

(Note that you are also free to rename setuptex and modify it
according to your own needs, but it makes sense to debug this first.)

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
___


Re: [NTG-context] ConTeXt Minimals and TEXMFCACHE

2010-08-27 Thread Nicola
In article 4c76dc46.70...@wxs.nl, Hans Hagen pra...@wxs.nl wrote:

  Is there any reason why exporting TEXMFCACHE is commented out in
  setuptex?
 
 You can set it up in a texmfcnf.lua file in your texmf-local/web2c tree.
 
 Anyway, it is unlike to conflict as I hash the path so one cache can 
 serve many trees.

Ah, I hadn't realized that! That simplifies things a lot!

Thanks,
Nicola

___
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
___


Re: [NTG-context] ConTeXt Minimals and TEXMFCACHE

2010-08-27 Thread Nicola
In article 
aanlktim8p_nsu=qf8r9ojvbd=bpzitwd_baov+exh...@mail.gmail.com,
 Mojca Miklavec mojca.miklavec.li...@gmail.com wrote:
 
 The variable TEXMFCACHE is set in
 tex/texmf/web2c/texmfcnf.lua
 and that one should do the job. Under usual circumstances at least.
 
 If that one is not being respected, something might be wrong. Do you
 have any other texmfcnf.lua file somewhere else?

No, I export TEXMFCACHE in my .profile, because I want the cache to be 
inside my home folder. After running setuptex, ConTeXt minimals uses 
that rather than the path specified in texmfcnf.lua. Since now I know 
that luatex-cache can be shared, for me this is perfectly fine. I just 
had to adjust the TeXShop engines (I am on Mac OS X) by explicitly 
setting TEXMFCACHE for XeTeX and MKII, besides MKIV.

So, if I get it right, the value in texmfcnf.lua is used unless 
TEXMFCACHE is set.

Nicola

___
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
___


Re: [NTG-context] ConTeXt Minimals and TEXMFCACHE

2010-08-27 Thread Peter Schorsch
I summarized this small discussion in the wiki as I also made a systemwide 
installation (http://wiki.contextgarden.net/ConTeXt_Minimals#Cache)



Nicola wrote:

 In article
 aanlktim8p_nsu=qf8r9ojvbd=bpzitwd_baov+exh...@mail.gmail.com,
  Mojca Miklavec mojca.miklavec.li...@gmail.com wrote:
  
 The variable TEXMFCACHE is set in
 tex/texmf/web2c/texmfcnf.lua
 and that one should do the job. Under usual circumstances at least.
 
 If that one is not being respected, something might be wrong. Do you
 have any other texmfcnf.lua file somewhere else?
 
 No, I export TEXMFCACHE in my .profile, because I want the cache to be
 inside my home folder. After running setuptex, ConTeXt minimals uses
 that rather than the path specified in texmfcnf.lua. Since now I know
 that luatex-cache can be shared, for me this is perfectly fine. I just
 had to adjust the TeXShop engines (I am on Mac OS X) by explicitly
 setting TEXMFCACHE for XeTeX and MKII, besides MKIV.
 
 So, if I get it right, the value in texmfcnf.lua is used unless
 TEXMFCACHE is set.
 
 Nicola
 
 
___
 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
 
___


___
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
___


Re: [NTG-context] ConTeXt Minimals and TEXMFCACHE

2010-08-27 Thread Nicola
In article 
aanlktimbrxn-yhfa9bqyrejmcfuyehqxr-+ix6ne5...@mail.gmail.com,
 Mojca Miklavec mojca.miklavec.li...@gmail.com wrote:

 TEXMFCACHE is not used by MKII (neither in pdfTeX nor in XeTeX).

Right. I have tried 

unset TEXMFCACHE
texexec hello.tex

in the command line and it just runs texexec (as expected).

But from TeXShop (using the engines for MKII and XeTeX described at 
http://wiki.contextgarden.net/ConTeXt_Minimals/Mac_Installation), for 
some reason mtxrun is run before texexec on the first compilation, which 
creates the cache in the location specified by texmfcnf.lua (unless I 
set TEXMFCACHE). And sourcing setuptex doesn't change anything. Maybe 
some other environment variable should be set in those engines?

Nicola

___
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
___


Re: [NTG-context] ConTeXt Minimals and TEXMFCACHE

2010-08-27 Thread Hans Hagen

On 27-8-2010 8:17, Nicola wrote:

In article
aanlktimbrxn-yhfa9bqyrejmcfuyehqxr-+ix6ne5...@mail.gmail.com,
  Mojca Miklavecmojca.miklavec.li...@gmail.com  wrote:


TEXMFCACHE is not used by MKII (neither in pdfTeX nor in XeTeX).


Right. I have tried

unset TEXMFCACHE
texexec hello.tex

in the command line and it just runs texexec (as expected).

But from TeXShop (using the engines for MKII and XeTeX described at
http://wiki.contextgarden.net/ConTeXt_Minimals/Mac_Installation), for
some reason mtxrun is run before texexec on the first compilation, which
creates the cache in the location specified by texmfcnf.lua (unless I
set TEXMFCACHE). And sourcing setuptex doesn't change anything. Maybe
some other environment variable should be set in those engines?


we used to have texmfstart as script runner (all scripts are located and 
started by a runner which is faster than using some kpse locator esp 
when having nested runs as with metafun in mkii)


so, texexec used to be

  texmfstart texexec

however, nowadays mtxrun is the runner and it replaces texmfstart for 
mkii as well and in order to do this, it needs the file database and 
that one ends up in the cache so even for mkii there is a cache needed 
(when I'm in the mood I'll check the lua texutil variant in which case 
we can also kick out ruby which is currently only needed for mkii)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


[NTG-context] ConTeXt Minimals and TEXMFCACHE

2010-08-26 Thread Nicola
Hi,
according to the wiki “ConTeXt minimals does not touch anything outside 
its installation folder”, but if TEXMFCACHE is not set by setuptex, 
actually many files may be written outside the ConTeXt minimals folder, 
and (as in my case) they may conflict with the files written by ConTeXt 
from TeX Live in the same cache folder.

Is there any reason why exporting TEXMFCACHE is commented out in 
setuptex?

Nicola

___
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
___


Re: [NTG-context] ConTeXt Minimals and TEXMFCACHE

2010-08-26 Thread Hans Hagen

On 26-8-2010 9:03, Nicola wrote:

Hi,
according to the wiki “ConTeXt minimals does not touch anything outside
its installation folder”, but if TEXMFCACHE is not set by setuptex,
actually many files may be written outside the ConTeXt minimals folder,
and (as in my case) they may conflict with the files written by ConTeXt
from TeX Live in the same cache folder.

Is there any reason why exporting TEXMFCACHE is commented out in
setuptex?


You can set it up in a texmfcnf.lua file in your texmf-local/web2c tree.

Anyway, it is unlike to conflict as I hash the path so one cache can 
serve many trees.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___