On Wed, Nov 17, 2010 at 4:27 AM, Mojca Miklavec
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', }
and 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.
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 ___________________________________________________________________________________
ummm... yeah. I don't want to be all "la-tee-da" and stuff, but I think i figured out nirvana. So, it appears that the latest beta builds like: --TexLive Version --return { TEXMFCACHE = '$HOME/Library/texlive/2010/texmf-var' } --tlcontrib Version return {content={ TEXMFCACHE = '$HOME/Library/texlive/2010/texmf-var', TEXMFHOME = '$HOME/src/texmf-trms'}, TEXMFCACHE='$HOME/Library/texlive/2010/texmf-var'} so, I put the following into my bash shell: function tlcontext { sudo cp -f -v /usr/local/texlive/2010/texmfcnf-tlcontrib.lua /usr/local/texlive/2010/texmfcnf.lua; sudo tlmgr --repository http://tlcontrib.metatex.org/2010 update context luatex metapost; } function tlmactex { sudo cp -f -v /usr/local/texlive/2010/texmfcnf-mactex.lua /usr/local/texlive/2010/texmfcnf.lua; sudo tlmgr install context luatex metapost --reinstall; } --------- which should be pretty obvious. Now it all works sweet. My motivation for this is... unclear. I really just needed to install the latest PGF/TiKz package to be good to go. But at least I'm (marginally) smarter now. :) Thanks, all! I'll let you know if I find anything else!