Updating to Beta Builds of ConTeXt / LuaTeX from tlcontrib breaks MacTeX
At Aditya's suggestion, I'm cross-posting this from tex.stackexchange.com [Executive Summary: I might be missing something really simple and I might be overcomplicating something really easy. In short: 1: I installed MacTeX 2010. 2: I updated all packages using the normal trees. 3: I changed my TEXMFHOME variable in /usr/local/texlive/2010/texmf.cnf to "~/src/texmf", which is where I keep my custom modules/templates/packages. (This is normally within our github source control, but hasn't been yet.) and moved the content from the old directory to the new. 4: I was beating my head against the wall, trying to make font selection work using typescriptfile/typescript as well as simplefont. The closest I could get was with simplefont and Palatino spewing garbage text. 5: I decided to try "http://tlcontrib.metatex.org/" with tlmgr using "sudo tlmgr --repository http://tlcontrib.metatex.org/2010 update -all" 6: I "sudo texconfig rehash"ed (seemed okay), "sudo mtxrun --generate" (seemed okay). Then I "sudo luatools --generate" and got something that ended with " MTXrun | unknown script 'base.lua' or 'mtx-base.lua'" 7: Just typing "luatools" results in: "MTXrun | unknown script 'base.lua' or 'mtx-base.lua'" 8: I tried editing the two texmfcnf.lua files that I found with: return { content = { TEXMFCACHE = '~/Library/texlive/2010/texmf-var', TEXMFHOME = '~/src/texmf-trms', }, TEXMFCACHE = '~/Library/texlive/2010/texmf-var', } But had no effect. That is where I'm at right now. Whenever I try to compile, I get: MTXrun | warning: no format found, forcing remake (commandline driven) MTXrun | running command: luatools --generate MTXrun | unknown script 'base.lua' or 'mtx-base.lua' MTXrun | running command: luatools --make --compile cont-en MTXrun | unknown script 'base.lua' or 'mtx-base.lua' MTXrun | error, no format found with name: cont-en, aborting MTXrun | total runtime: 0.321 The rest of this email is a more verbose description. Hopefully this helps you and me, as well. (if only in the documentation department. :)) ] /endexecutive summary %:) Copied then updated from: http://tex.stackexchange.com/questions/5454/updating-to-beta-builds-of-conte... On a fresh install of MacTeX 2010, I was having issues with `mtxrun` finding fonts and with fonts in general. I decided to try to dl the betas. In an earlier question(http://tex.stackexchange.com/questions/5405/switching-to-context-minimals-mi... (Thanks Kahled!) I found that the ConTeXt minimals were not proper in this scenario. So I followed the advice and used this repository. After running: sudo tlmgr --repository http://tlcontrib.metatex.org/2010 update -all ...I did everything that I could think of to update the system at various stages (I'm sure not everything was neutral or helpful)... sudo texconfig rehash sudo texconfig init sudo mtxrun --generate sudo luatools --generate The last command is the issue, as it generates: MTXrun | unknown script 'base.lua' or 'mtx-base.lua' In my search on the interweb, I found that perhaps `texmfcnf.lua` needed the following: return { content = { TEXMFCACHE = '~/Library/texlive/2010/texmf-var', TEXMFHOME = '~/Library/texmf-trms', }, TEXMFCACHE = '~/Library/texlive/2010/texmf-var', } I did this to the file that I located in `/usr/local/texlive/2010/`. I later found evidence that perhaps another `texmfcnf.lua` file needed this golden block of code, but I could not find another instance of this file. So... whassup? It's a clean install if MacTeX 2010. I wonder what I'm missing. Once this is solved, I'll post another question about fonts, as I have yet to get those working with LuaTeX as the engine and `simplefonts` as the method. `mtxrun` never has anything in its list of fonts (`mtxrun --script fonts --list --all --pattern=*` or any conceivable variation) and most font choices don't register at all, or in the odd case of Palatino, result in garbage text. I have my `OSFONTS` variable set to `/Library/Fonts`. But alas, for another question. I only post it here in case the two issues are related. Thanks everyone! UPDATE: I ran `sudo luatex --generate --verbose` Here is the output: MTXrun | resolvers: variable 'SELFAUTOLOC' set to '/usr/local/texlive/2010/bin/x86_64-darwin' MTXrun | resolvers: variable 'SELFAUTODIR' set to '/usr/local/texlive/2010/bin' MTXrun | resolvers: variable 'SELFAUTOPARENT' set to '/usr/local/texlive/2010' MTXrun | resolvers: variable 'TEXMFCNF' set to '' MTXrun | resolvers: variable 'TEXMF' set to '' MTXrun | resolvers: variable 'TEXOS' set to 'bin' MTXrun | resolvers MTXrun | resolvers: loading configuration file '/usr/local/texlive/2010/texmfcnf.lua' MTXrun | resolvers MTXrun | resolvers: loading configuration file '/usr/local/texlive/2010/texmf/web2c/texmfcnf.lua' MTXrun | resolvers MTXrun | resolvers: locating list of '/Users/andrew/src/texmf-trms' (runtime) MTXrun | resolvers: handler 'tree:////Users/andrew/src/texmf-trms' -> 'locators' -> 'path=/Users/andrew/src/texmf-trms | noscheme=false | query= | scheme=tree | original=tree:////Users/andrew/src/texmf-trms | fragment= | authority=' MTXrun | resolvers: hash 'tree:////Users/andrew/src/texmf-trms' appended MTXrun | resolvers: skipping list of '/usr/local/texlive/2010/texmf-project' (cached) MTXrun | resolvers: skipping list of '/usr/local/texlive/2010/texmf-fonts' (cached) MTXrun | resolvers: skipping list of '/usr/local/texlive/2010/texmf-local' (cached) MTXrun | resolvers: skipping list of '/usr/local/texlive/2010/texmf-context' (cached) MTXrun | resolvers: locating list of '/usr/local/texlive/2010/texmf' (cached) MTXrun | resolvers: tex locator '/usr/local/texlive/2010/texmf' found MTXrun | resolvers: hash '/usr/local/texlive/2010/texmf' appended MTXrun | resolvers: locating list of '/usr/local/texlive/2010/texmf-dist' (cached) MTXrun | resolvers: tex locator '/usr/local/texlive/2010/texmf-dist' found MTXrun | resolvers: hash '/usr/local/texlive/2010/texmf-dist' appended MTXrun | resolvers MTXrun | resolvers: handler 'tree:////Users/andrew/src/texmf-trms' -> 'hashers' -> 'path=/Users/andrew/src/texmf-trms | noscheme=false | query= | scheme=tree | original=tree:////Users/andrew/src/texmf-trms | fragment= | authority=' MTXrun | resolvers: scanning path '/Users/andrew/src/texmf-trms' MTXrun | resolvers: 596 files found on 114 directories with 62 uppercase remappings MTXrun | resolvers: loading 'files' for '/usr/local/texlive/2010/texmf' from '/Users/andrew/Library/texlive/2010/texmf-var/luatex-cache/context/210a81d6dcb1059dc80fab3f5470ab7a/trees/1240e363db2f4c53de58379d2b0c6f6b' MTXrun | resolvers: loading 'files' for '/usr/local/texlive/2010/texmf-dist' from '/Users/andrew/Library/texlive/2010/texmf-var/luatex-cache/context/210a81d6dcb1059dc80fab3f5470ab7a/trees/26993469c6208234eef0d0acf8456c4d' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: remembering file 'mtx-base.lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | unknown script 'base.lua' or 'mtx-base.lua' Okay, I see where it's loading `'/usr/local/texlive/2010/texmf/web2c/texmfcnf.lua'`. Given that my TEXMFHOME tds is set to `~/src/texmf-trms` I edited it to say this within `content:` -- ORIG: TEXMFHOME = "$HOME/texmf", -- "tree:///$HOME/texmf" TEXMFHOME = "~/src/texmf-trms", -- "tree:///$HOME/texmf" ...and this after, but before `return:` closes: -- ORIG: TEXMFCACHE = "$SELFAUTOPARENT/texmf-cache", -- for old times sake TEXMFCACHE = "~/Library/texlive/2010/texmf-var", -- for old times sake Since I did not change the TEXMFCACHE setting. (As you may be able to tell by now, I don't know what I'm doing. :) ) Running `sudo luatools --generate --verbose` had the same effect, ending with: MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: remembering file 'mtx-base.lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | unknown script 'base.lua' or 'mtx-base.lua' I tried `sudo mtxrun --generate` which seemed to work, but did not affect `luatools` in any way. I've tried `rehash`ing, then `mtxrun` then `luatools`. No joy. Any help would be appreciated. Thanks!
Dear Andrew,
Sorry for top-posting, just a few remarks:
- I don't see anything basically wrong with your procedure.
- I didn't try it yet, but after Taco released luatex 0.64.0 somebody
already pointed out that the "current" version of ConTeXt is not
compatible with the latest version of LuaTeX. I can roll back the
luatex packages on tlcontrib if needed, but I would prefer to wait for
Taco's response. (He needs to approve any change anyway.) So it might
be that any trouble you experience is a sole consequence of that
incompatibility. But I didn't check anything yet.
- luatools doesn't make much sense in post-TL-2010. It has been
replaced by mtxrun entirely. I thought that luatools would still work
the same way as mtxrun though ... but maybe mtxrun has the same
symptoms.
- 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.
- You may also try to install ConTeXt minimals in parallel:
rsync -av rsync://contextgarden.net/minimals/setup/first-setup.sh .
./first-setup.sh
. tex/setuptex
Mojca
On Tue, Nov 16, 2010 at 21:00, Andrew Starks
At Aditya's suggestion, I'm cross-posting this from tex.stackexchange.com
[Executive Summary:
I might be missing something really simple and I might be overcomplicating something really easy. In short:
1: I installed MacTeX 2010. 2: I updated all packages using the normal trees. 3: I changed my TEXMFHOME variable in /usr/local/texlive/2010/texmf.cnf to "~/src/texmf", which is where I keep my custom modules/templates/packages. (This is normally within our github source control, but hasn't been yet.) and moved the content from the old directory to the new. 4: I was beating my head against the wall, trying to make font selection work using typescriptfile/typescript as well as simplefont. The closest I could get was with simplefont and Palatino spewing garbage text. 5: I decided to try "http://tlcontrib.metatex.org/" with tlmgr using "sudo tlmgr --repository http://tlcontrib.metatex.org/2010 update -all" 6: I "sudo texconfig rehash"ed (seemed okay), "sudo mtxrun --generate" (seemed okay). Then I "sudo luatools --generate" and got something that ended with " MTXrun | unknown script 'base.lua' or 'mtx-base.lua'" 7: Just typing "luatools" results in: "MTXrun | unknown script 'base.lua' or 'mtx-base.lua'" 8: I tried editing the two texmfcnf.lua files that I found with:
return { content = { TEXMFCACHE = '~/Library/texlive/2010/texmf-var', TEXMFHOME = '~/src/texmf-trms', }, TEXMFCACHE = '~/Library/texlive/2010/texmf-var', }
But had no effect.
That is where I'm at right now. Whenever I try to compile, I get:
MTXrun | warning: no format found, forcing remake (commandline driven) MTXrun | running command: luatools --generate MTXrun | unknown script 'base.lua' or 'mtx-base.lua'
MTXrun | running command: luatools --make --compile cont-en MTXrun | unknown script 'base.lua' or 'mtx-base.lua'
MTXrun | error, no format found with name: cont-en, aborting MTXrun | total runtime: 0.321
The rest of this email is a more verbose description. Hopefully this helps you and me, as well. (if only in the documentation department. :))
] /endexecutive summary %:)
Copied then updated from: http://tex.stackexchange.com/questions/5454/updating-to-beta-builds-of-conte...
On a fresh install of MacTeX 2010, I was having issues with `mtxrun` finding fonts and with fonts in general.
I decided to try to dl the betas. In an earlier question(http://tex.stackexchange.com/questions/5405/switching-to-context-minimals-mi... (Thanks Kahled!) I found that the ConTeXt minimals were not proper in this scenario.
So I followed the advice and used this repository. After running:
sudo tlmgr --repository http://tlcontrib.metatex.org/2010 update -all
...I did everything that I could think of to update the system at various stages (I'm sure not everything was neutral or helpful)...
sudo texconfig rehash sudo texconfig init sudo mtxrun --generate sudo luatools --generate
The last command is the issue, as it generates:
MTXrun | unknown script 'base.lua' or 'mtx-base.lua'
In my search on the interweb, I found that perhaps `texmfcnf.lua` needed the following:
return { content = { TEXMFCACHE = '~/Library/texlive/2010/texmf-var', TEXMFHOME = '~/Library/texmf-trms', }, TEXMFCACHE = '~/Library/texlive/2010/texmf-var', }
I did this to the file that I located in `/usr/local/texlive/2010/`. I later found evidence that perhaps another `texmfcnf.lua` file needed this golden block of code, but I could not find another instance of this file.
So... whassup? It's a clean install if MacTeX 2010. I wonder what I'm missing.
Once this is solved, I'll post another question about fonts, as I have yet to get those working with LuaTeX as the engine and `simplefonts` as the method. `mtxrun` never has anything in its list of fonts (`mtxrun --script fonts --list --all --pattern=*` or any conceivable variation) and most font choices don't register at all, or in the odd case of Palatino, result in garbage text. I have my `OSFONTS` variable set to `/Library/Fonts`. But alas, for another question. I only post it here in case the two issues are related.
Thanks everyone!
UPDATE:
I ran `sudo luatex --generate --verbose`
Here is the output:
MTXrun | resolvers: variable 'SELFAUTOLOC' set to '/usr/local/texlive/2010/bin/x86_64-darwin' MTXrun | resolvers: variable 'SELFAUTODIR' set to '/usr/local/texlive/2010/bin' MTXrun | resolvers: variable 'SELFAUTOPARENT' set to '/usr/local/texlive/2010' MTXrun | resolvers: variable 'TEXMFCNF' set to '' MTXrun | resolvers: variable 'TEXMF' set to '' MTXrun | resolvers: variable 'TEXOS' set to 'bin' MTXrun | resolvers MTXrun | resolvers: loading configuration file '/usr/local/texlive/2010/texmfcnf.lua' MTXrun | resolvers MTXrun | resolvers: loading configuration file '/usr/local/texlive/2010/texmf/web2c/texmfcnf.lua' MTXrun | resolvers MTXrun | resolvers: locating list of '/Users/andrew/src/texmf-trms' (runtime) MTXrun | resolvers: handler 'tree:////Users/andrew/src/texmf-trms' -> 'locators' -> 'path=/Users/andrew/src/texmf-trms | noscheme=false | query= | scheme=tree | original=tree:////Users/andrew/src/texmf-trms | fragment= | authority=' MTXrun | resolvers: hash 'tree:////Users/andrew/src/texmf-trms' appended MTXrun | resolvers: skipping list of '/usr/local/texlive/2010/texmf-project' (cached) MTXrun | resolvers: skipping list of '/usr/local/texlive/2010/texmf-fonts' (cached) MTXrun | resolvers: skipping list of '/usr/local/texlive/2010/texmf-local' (cached) MTXrun | resolvers: skipping list of '/usr/local/texlive/2010/texmf-context' (cached) MTXrun | resolvers: locating list of '/usr/local/texlive/2010/texmf' (cached) MTXrun | resolvers: tex locator '/usr/local/texlive/2010/texmf' found MTXrun | resolvers: hash '/usr/local/texlive/2010/texmf' appended MTXrun | resolvers: locating list of '/usr/local/texlive/2010/texmf-dist' (cached) MTXrun | resolvers: tex locator '/usr/local/texlive/2010/texmf-dist' found MTXrun | resolvers: hash '/usr/local/texlive/2010/texmf-dist' appended MTXrun | resolvers MTXrun | resolvers: handler 'tree:////Users/andrew/src/texmf-trms' -> 'hashers' -> 'path=/Users/andrew/src/texmf-trms | noscheme=false | query= | scheme=tree | original=tree:////Users/andrew/src/texmf-trms | fragment= | authority=' MTXrun | resolvers: scanning path '/Users/andrew/src/texmf-trms' MTXrun | resolvers: 596 files found on 114 directories with 62 uppercase remappings MTXrun | resolvers: loading 'files' for '/usr/local/texlive/2010/texmf' from '/Users/andrew/Library/texlive/2010/texmf-var/luatex-cache/context/210a81d6dcb1059dc80fab3f5470ab7a/trees/1240e363db2f4c53de58379d2b0c6f6b' MTXrun | resolvers: loading 'files' for '/usr/local/texlive/2010/texmf-dist' from '/Users/andrew/Library/texlive/2010/texmf-var/luatex-cache/context/210a81d6dcb1059dc80fab3f5470ab7a/trees/26993469c6208234eef0d0acf8456c4d' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: remembering file 'mtx-base.lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | unknown script 'base.lua' or 'mtx-base.lua'
Okay, I see where it's loading `'/usr/local/texlive/2010/texmf/web2c/texmfcnf.lua'`.
Given that my TEXMFHOME tds is set to `~/src/texmf-trms` I edited it to say this within `content:`
-- ORIG: TEXMFHOME = "$HOME/texmf", -- "tree:///$HOME/texmf" TEXMFHOME = "~/src/texmf-trms", -- "tree:///$HOME/texmf"
...and this after, but before `return:` closes:
-- ORIG: TEXMFCACHE = "$SELFAUTOPARENT/texmf-cache", -- for old times sake TEXMFCACHE = "~/Library/texlive/2010/texmf-var", -- for old times sake
Since I did not change the TEXMFCACHE setting.
(As you may be able to tell by now, I don't know what I'm doing. :) )
Running `sudo luatools --generate --verbose` had the same effect, ending with:
MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: remembering file 'mtx-base.lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | unknown script 'base.lua' or 'mtx-base.lua'
I tried `sudo mtxrun --generate` which seemed to work, but did not affect `luatools` in any way. I've tried `rehash`ing, then `mtxrun` then `luatools`. No joy.
Any help would be appreciated. Thanks!
- 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. Arthur
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. Aditya
On Tue, Nov 16, 2010 at 7:06 PM, Aditya Mahajan
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.
Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________
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. BTW: the last coma after the last TEXMFCACHE entry didn't look right, but deleting it did nothing. 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. Now that I understand why I was getting the "v table value" error, I may try merge in the tlconfrib tree in, just for... you know... fun! Then I'll try the $HOME variants on that configuration and let you know. Thanks all!
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
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!
First off, let me say that you all are the nicest set of developers
and project team members I have ever seen! If I had asked our
developers about an issue in an alpha build, they would have told me
where to go while raising a particular finger in an effort to say
what, I think, is something like, "You're #1!"
I appreciate the offer to roll back a build, but please! This is how
this all goes, right?
Anyway, following the instructions on the tlcontrib.metatex.org (or a
link from there) for restoring the "stable" versions, I got the
fabulous "/usr/texbin/mtxrun:9359: attempt to concatenate local 'v' (a
table value)" on every ConTeXt command that I tried. Lacking the
appetite (and time) to go much further, I tried forcing the uninstall
of everything and then I reinstalled everything using tlmgr. It all
seemed to go whll, but still no avail. After restoring from tlcontrib
and getting only back to nowhere, I just nuked it all and am
reinstalling.
I'm happy to try again, if you all would think I have a better than...
oh... 30% chance of not having to nuke another time. If not, my next
stop is the rsync method. After that, I may have to return, hat in
hand, to LaTeX and check back with you guys in a month or so, just to
see where MacTeX support is at.
BTW: I really like this community and I very much like both what
ConTeXt and LuaTeX have to offer. In my spare time (-4 hours a day or
so, more if I take my meds), I'd be happy to contribute. I'm much more
of a hack and know next to nothing about bare TeX, although I feel as
though I've done the impossible with my own set of macros. I may be
able to take on some documentation tasks and I also fancy myself a
better-than-average beta tester: not bitchy, test everything all of
the way through, report everything, patient, etc. If all-ya-all want
to point me at something that is in need of such activity, I'd be
happy to look at it. I may just see what can be added to ConTeXt
Garden, but it's hard to know where to start, what's obsolete, what's
good but incomplete, and what's entirely absent. I would need more
time actually using it to truly help, unless someone were to give me
instruction.
Best Regards,
Andrew Starks
Tightrope Media Systems
Co-Founder
800 Transfer Road, Suite 1B, Saint Paul MN 55114
866 866-4118, 201
On Tue, Nov 16, 2010 at 6:45 PM, Mojca Miklavec
Dear Andrew,
Sorry for top-posting, just a few remarks:
- I don't see anything basically wrong with your procedure.
- I didn't try it yet, but after Taco released luatex 0.64.0 somebody already pointed out that the "current" version of ConTeXt is not compatible with the latest version of LuaTeX. I can roll back the luatex packages on tlcontrib if needed, but I would prefer to wait for Taco's response. (He needs to approve any change anyway.) So it might be that any trouble you experience is a sole consequence of that incompatibility. But I didn't check anything yet.
- luatools doesn't make much sense in post-TL-2010. It has been replaced by mtxrun entirely. I thought that luatools would still work the same way as mtxrun though ... but maybe mtxrun has the same symptoms.
- 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.
- You may also try to install ConTeXt minimals in parallel:
rsync -av rsync://contextgarden.net/minimals/setup/first-setup.sh . ./first-setup.sh . tex/setuptex
Mojca
On Tue, Nov 16, 2010 at 21:00, Andrew Starks
wrote: At Aditya's suggestion, I'm cross-posting this from tex.stackexchange.com
[Executive Summary:
I might be missing something really simple and I might be overcomplicating something really easy. In short:
1: I installed MacTeX 2010. 2: I updated all packages using the normal trees. 3: I changed my TEXMFHOME variable in /usr/local/texlive/2010/texmf.cnf to "~/src/texmf", which is where I keep my custom modules/templates/packages. (This is normally within our github source control, but hasn't been yet.) and moved the content from the old directory to the new. 4: I was beating my head against the wall, trying to make font selection work using typescriptfile/typescript as well as simplefont. The closest I could get was with simplefont and Palatino spewing garbage text. 5: I decided to try "http://tlcontrib.metatex.org/" with tlmgr using "sudo tlmgr --repository http://tlcontrib.metatex.org/2010 update -all" 6: I "sudo texconfig rehash"ed (seemed okay), "sudo mtxrun --generate" (seemed okay). Then I "sudo luatools --generate" and got something that ended with " MTXrun | unknown script 'base.lua' or 'mtx-base.lua'" 7: Just typing "luatools" results in: "MTXrun | unknown script 'base.lua' or 'mtx-base.lua'" 8: I tried editing the two texmfcnf.lua files that I found with:
return { content = { TEXMFCACHE = '~/Library/texlive/2010/texmf-var', TEXMFHOME = '~/src/texmf-trms', }, TEXMFCACHE = '~/Library/texlive/2010/texmf-var', }
But had no effect.
That is where I'm at right now. Whenever I try to compile, I get:
MTXrun | warning: no format found, forcing remake (commandline driven) MTXrun | running command: luatools --generate MTXrun | unknown script 'base.lua' or 'mtx-base.lua'
MTXrun | running command: luatools --make --compile cont-en MTXrun | unknown script 'base.lua' or 'mtx-base.lua'
MTXrun | error, no format found with name: cont-en, aborting MTXrun | total runtime: 0.321
The rest of this email is a more verbose description. Hopefully this helps you and me, as well. (if only in the documentation department. :))
] /endexecutive summary %:)
Copied then updated from: http://tex.stackexchange.com/questions/5454/updating-to-beta-builds-of-conte...
On a fresh install of MacTeX 2010, I was having issues with `mtxrun` finding fonts and with fonts in general.
I decided to try to dl the betas. In an earlier question(http://tex.stackexchange.com/questions/5405/switching-to-context-minimals-mi... (Thanks Kahled!) I found that the ConTeXt minimals were not proper in this scenario.
So I followed the advice and used this repository. After running:
sudo tlmgr --repository http://tlcontrib.metatex.org/2010 update -all
...I did everything that I could think of to update the system at various stages (I'm sure not everything was neutral or helpful)...
sudo texconfig rehash sudo texconfig init sudo mtxrun --generate sudo luatools --generate
The last command is the issue, as it generates:
MTXrun | unknown script 'base.lua' or 'mtx-base.lua'
In my search on the interweb, I found that perhaps `texmfcnf.lua` needed the following:
return { content = { TEXMFCACHE = '~/Library/texlive/2010/texmf-var', TEXMFHOME = '~/Library/texmf-trms', }, TEXMFCACHE = '~/Library/texlive/2010/texmf-var', }
I did this to the file that I located in `/usr/local/texlive/2010/`. I later found evidence that perhaps another `texmfcnf.lua` file needed this golden block of code, but I could not find another instance of this file.
So... whassup? It's a clean install if MacTeX 2010. I wonder what I'm missing.
Once this is solved, I'll post another question about fonts, as I have yet to get those working with LuaTeX as the engine and `simplefonts` as the method. `mtxrun` never has anything in its list of fonts (`mtxrun --script fonts --list --all --pattern=*` or any conceivable variation) and most font choices don't register at all, or in the odd case of Palatino, result in garbage text. I have my `OSFONTS` variable set to `/Library/Fonts`. But alas, for another question. I only post it here in case the two issues are related.
Thanks everyone!
UPDATE:
I ran `sudo luatex --generate --verbose`
Here is the output:
MTXrun | resolvers: variable 'SELFAUTOLOC' set to '/usr/local/texlive/2010/bin/x86_64-darwin' MTXrun | resolvers: variable 'SELFAUTODIR' set to '/usr/local/texlive/2010/bin' MTXrun | resolvers: variable 'SELFAUTOPARENT' set to '/usr/local/texlive/2010' MTXrun | resolvers: variable 'TEXMFCNF' set to '' MTXrun | resolvers: variable 'TEXMF' set to '' MTXrun | resolvers: variable 'TEXOS' set to 'bin' MTXrun | resolvers MTXrun | resolvers: loading configuration file '/usr/local/texlive/2010/texmfcnf.lua' MTXrun | resolvers MTXrun | resolvers: loading configuration file '/usr/local/texlive/2010/texmf/web2c/texmfcnf.lua' MTXrun | resolvers MTXrun | resolvers: locating list of '/Users/andrew/src/texmf-trms' (runtime) MTXrun | resolvers: handler 'tree:////Users/andrew/src/texmf-trms' -> 'locators' -> 'path=/Users/andrew/src/texmf-trms | noscheme=false | query= | scheme=tree | original=tree:////Users/andrew/src/texmf-trms | fragment= | authority=' MTXrun | resolvers: hash 'tree:////Users/andrew/src/texmf-trms' appended MTXrun | resolvers: skipping list of '/usr/local/texlive/2010/texmf-project' (cached) MTXrun | resolvers: skipping list of '/usr/local/texlive/2010/texmf-fonts' (cached) MTXrun | resolvers: skipping list of '/usr/local/texlive/2010/texmf-local' (cached) MTXrun | resolvers: skipping list of '/usr/local/texlive/2010/texmf-context' (cached) MTXrun | resolvers: locating list of '/usr/local/texlive/2010/texmf' (cached) MTXrun | resolvers: tex locator '/usr/local/texlive/2010/texmf' found MTXrun | resolvers: hash '/usr/local/texlive/2010/texmf' appended MTXrun | resolvers: locating list of '/usr/local/texlive/2010/texmf-dist' (cached) MTXrun | resolvers: tex locator '/usr/local/texlive/2010/texmf-dist' found MTXrun | resolvers: hash '/usr/local/texlive/2010/texmf-dist' appended MTXrun | resolvers MTXrun | resolvers: handler 'tree:////Users/andrew/src/texmf-trms' -> 'hashers' -> 'path=/Users/andrew/src/texmf-trms | noscheme=false | query= | scheme=tree | original=tree:////Users/andrew/src/texmf-trms | fragment= | authority=' MTXrun | resolvers: scanning path '/Users/andrew/src/texmf-trms' MTXrun | resolvers: 596 files found on 114 directories with 62 uppercase remappings MTXrun | resolvers: loading 'files' for '/usr/local/texlive/2010/texmf' from '/Users/andrew/Library/texlive/2010/texmf-var/luatex-cache/context/210a81d6dcb1059dc80fab3f5470ab7a/trees/1240e363db2f4c53de58379d2b0c6f6b' MTXrun | resolvers: loading 'files' for '/usr/local/texlive/2010/texmf-dist' from '/Users/andrew/Library/texlive/2010/texmf-var/luatex-cache/context/210a81d6dcb1059dc80fab3f5470ab7a/trees/26993469c6208234eef0d0acf8456c4d' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: remembering file 'mtx-base.lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | unknown script 'base.lua' or 'mtx-base.lua'
Okay, I see where it's loading `'/usr/local/texlive/2010/texmf/web2c/texmfcnf.lua'`.
Given that my TEXMFHOME tds is set to `~/src/texmf-trms` I edited it to say this within `content:`
-- ORIG: TEXMFHOME = "$HOME/texmf", -- "tree:///$HOME/texmf" TEXMFHOME = "~/src/texmf-trms", -- "tree:///$HOME/texmf"
...and this after, but before `return:` closes:
-- ORIG: TEXMFCACHE = "$SELFAUTOPARENT/texmf-cache", -- for old times sake TEXMFCACHE = "~/Library/texlive/2010/texmf-var", -- for old times sake
Since I did not change the TEXMFCACHE setting.
(As you may be able to tell by now, I don't know what I'm doing. :) )
Running `sudo luatools --generate --verbose` had the same effect, ending with:
MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: remembering file 'mtx-base.lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | unknown script 'base.lua' or 'mtx-base.lua'
I tried `sudo mtxrun --generate` which seemed to work, but did not affect `luatools` in any way. I've tried `rehash`ing, then `mtxrun` then `luatools`. No joy.
Any help would be appreciated. Thanks!
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 ___________________________________________________________________________________
On Wed, Nov 17, 2010 at 05:26, Andrew Starks
Anyway, following the instructions on the tlcontrib.metatex.org (or a link from there) for restoring the "stable" versions, I got the fabulous "/usr/texbin/mtxrun:9359: attempt to concatenate local 'v' (a table value)" on every ConTeXt command that I tried.
My guess is that you would have to say something similar to tlmgr install --reinstall luatex context without having the repository set to tlcontrib anywhere.
I'm happy to try again, if you all would think I have a better than... oh... 30% chance of not having to nuke another time. If not, my next stop is the rsync method. After that, I may have to return, hat in hand, to LaTeX and check back with you guys in a month or so, just to see where MacTeX support is at.
Please just wait until "the dust settles". Maybe there will be a new ConTeXt current; or we will roll back to luatex 0.63.0 for a while.
BTW: I really like this community and I very much like both what ConTeXt and LuaTeX have to offer. In my spare time (-4 hours a day or so, more if I take my meds), I'd be happy to contribute. I'm much more of a hack and know next to nothing about bare TeX, although I feel as though I've done the impossible with my own set of macros. I may be able to take on some documentation tasks and I also fancy myself a better-than-average beta tester: not bitchy, test everything all of the way through, report everything, patient, etc. If all-ya-all want to point me at something that is in need of such activity, I'd be happy to look at it. I may just see what can be added to ConTeXt Garden, but it's hard to know where to start, what's obsolete, what's good but incomplete, and what's entirely absent. I would need more time actually using it to truly help, unless someone were to give me instruction.
Installation pages almost all need to be rewritten or at least cleaned up. I would not advice you to use rsync to fetch the latest version of ConTeXt since this means messing up with the official installation. It was unavoidable in 2009, but in 2010 at least ConTeXt works out of the box in TeX Live. In order to update MacTeX you need to patch texmfcnf.lua and use tlcontrib. That is the best option apart from installing minimals in parallel. It's only that tlcontrib might be slightly out-of-sync. (I didn't try to update with tlcontrib yet, I only commited the binaries :) Mojca
On 11/17/2010 01:45 AM, Mojca Miklavec wrote:
Dear Andrew,
Sorry for top-posting, just a few remarks:
- I don't see anything basically wrong with your procedure.
- I didn't try it yet, but after Taco released luatex 0.64.0 somebody already pointed out that the "current" version of ConTeXt is not compatible with the latest version of LuaTeX. I can roll back the luatex packages on tlcontrib if needed, but I would prefer to wait for Taco's response. (He needs to approve any change anyway.) So it might be that any trouble you experience is a sole consequence of that incompatibility. But I didn't check anything yet.
This means it is time for a new 'current' context, I think.
participants (6)
-
Aditya Mahajan
-
Alan BRASLAU
-
Andrew Starks
-
Arthur Reutenauer
-
Mojca Miklavec
-
Taco Hoekwater