ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Andrew Starks <andrew.starks@trms.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Updating to Beta Builds of ConTeXt / LuaTeX from tlcontrib breaks MacTeX
Date: Wed, 17 Nov 2010 10:12:09 -0600	[thread overview]
Message-ID: <AANLkTimaO9JB7knXfWimkroXJLyaSJec8Mts4Ctm_N_B@mail.gmail.com> (raw)
In-Reply-To: <AANLkTi=TW+4va1pMeOzkeME1CCV36qa+OoJhkeuGCa_U@mail.gmail.com>

On Wed, Nov 17, 2010 at 4:27 AM, Mojca Miklavec
<mojca.miklavec.lists@gmail.com> wrote:
> 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!
___________________________________________________________________________________
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:[~2010-11-17 16:12 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-16 20:00 Andrew Starks
2010-11-17  0:45 ` Mojca Miklavec
2010-11-17  1:01   ` Arthur Reutenauer
2010-11-17  1:06     ` Aditya Mahajan
2010-11-17  8:02       ` Andrew Starks
2010-11-17 10:27         ` Mojca Miklavec
2010-11-17 16:12           ` Andrew Starks [this message]
2010-11-17  4:26   ` Andrew Starks
2010-11-17  8:30     ` Alan BRASLAU
2010-11-17 10:13     ` Mojca Miklavec
2010-11-17  9:28   ` Taco Hoekwater

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=AANLkTimaO9JB7knXfWimkroXJLyaSJec8Mts4Ctm_N_B@mail.gmail.com \
    --to=andrew.starks@trms.com \
    --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).