On Wed, Nov 17, 2010 at 09:02, Andrew Starks wrote:
> On Tue, Nov 16, 2010 at 7:06 PM, Aditya Mahajan wrote:
>> On Wed, 17 Nov 2010, Arthur Reutenauer wrote:
>>>> - Does it help if you replace "~" with "/Users/yourname" in
>>>> texmfcnf.lua? During the ConTeXt conference (and that was more recent
>>>> than the current version of ConTeXt) the tilde didn't expand properly
>>>> in some cases and I'm still not sure if it works flawlessly now.
>>>  I don't think so; I never finished the code I started to write for
>>> Hans then.
>> Does $HOME work? That may be better than hard coding /Users/yourname.
> No, but I've discerned that the:
>  return {
>           content = {
>                   TEXMFCACHE = '~/Library/texlive/2010/texmf-var',
>                   TEXMFHOME  = '~/src/texmf-trms',
>           },
>           TEXMFCACHE = '~/Library/texlive/2010/texmf-var',
>   }
> modification does not work for the MacTeX/TeXLive install. It needs to
> go back to the:
> TEXMFCACHE = '$HOME/Library/texlive/2010/texmf-var'
> ...varient.

Just a slight explanation. The first part "content = {...}" is useful
for the latest version of ConTeXt that is shipped with tlcontrib. The
second TEXMFCACHE is used by the old version that comes with TeX
Live/MacTeX 2010 by default. They happily live together and the second
one will be removed next year.

The problem with tilde has been discovered recently (and not necessary
fixed yet). You could try

return {
    content = {
        TEXMFCACHE = '$HOME/Library/texlive/2010/texmf-var',
        TEXMFHOME = '$HOME/src/texmf-trms',
    TEXMFCACHE = '$HOME/Library/texlive/2010/texmf-var',

but probably nobody has tested if $HOME is expanded properly in that
particular case either. But in any case the first part will only make
a difference if you use tlcontrib and the second part will only make a
difference if you use the default old version of ConTeXt.

> BTW: the last coma after the last TEXMFCACHE entry didn't look right,
> but deleting it did nothing.

The last comma doesn't change anything. (I like lua.) It's useful if
you copy-paste new lines at the end, so that you don't forget to add a
comma in between.

> I tried combinations of order and $HOME
> for only TEXMFCACHE, etc. Nothing changed it. All of this testing was
> not on the tlcontrib tree. It was only on the MacTeX tree. Therefore,
> I may be saying things that you already know.

What exactly do you mean with "MacTeX tree" and "tlcontrib tree"? I
have exactly these setting in texmfcnf.lua:

return {
        content = {
                TEXMFCACHE = '~/Library/texlive/2010/texmf-var',
                TEXMFHOME  = '~/Library/texmf',
        TEXMFCACHE = '~/Library/texlive/2010/texmf-var',

    ls ~/Library/texlive/2010/texmf-var/
does show me luatex-cache. So maybe some expansion does take place.
However I admit that I have never tried if TEXMFHOME set that way has
any influence at all.

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

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 via email to