![](https://secure.gravatar.com/avatar/d0e94fb08d4620cfbd2f8f59a7868637.jpg?s=120&d=mm&r=g)
Hi all, the new beta has been so quietly accepted that I'm wondering if I'm the only one who can't use it. With every file, I get this error: MtxRun | loading configuration for /Users/tas/context/tex/texmf/web2c from /Users/tas/context/tex/texmf-cache/luatex-cache/context/ 408a90c432ceda2c1e4a80ad5d0e5350/trees/168418f5ffa37b7a35ee75166c53fe90 ...ex/texmf-context/scripts/context/lua/mtx-metatex.lua:64: invalid option '%%' to 'format' All the others are having success using this beta? Thomas
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Thomas A. Schmitz wrote:
mtxrun --selfupdate luatools --selfupdate ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/386a116d129cdc597f2bb6210bbaff7a.jpg?s=120&d=mm&r=g)
On Tue, Mar 10, 2009 at 11:03 PM, Hans Hagen
$> ./first-setup.sh $> cd tex ; . setuptex ; cd .. $> mtxrun --selfupdate $> luatools --selfupdate $> luatools --generate $>context test.tex MtxRun | loading configuration for /opt/luatex/minimals-beta/tex/texmf/web2c from /opt/luatex/minimals-beta/tex/texmf-cache/luatex-cache/context/e2d590ed08d5bb7ce264a85c7599601d/trees/e9e4d7636cf4b26ea90087f897dde4ca ...ex/texmf-context/scripts/context/lua/mtx-metatex.lua:64: invalid option '%%' to 'format' -- luigi
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
luigi scarso wrote:
just to be sure i'll make a new zip (btw, metatex is not that important, it's a prelude to a 'minimal' luatex-mplib system with basic font support for experiments and but it will not be ready that soon) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/d0e94fb08d4620cfbd2f8f59a7868637.jpg?s=120&d=mm&r=g)
On Mar 10, 2009, at 11:03 PM, Hans Hagen wrote:
mtxrun --selfupdate luatools --selfupdate
OK, for a change, I now get a different error: MtxRun | loading configuration for /Users/tas/context/tex/texmf/web2c from /Users/tas/context/tex/texmf-cache/luatex-cache/context/ 408a90c432ceda2c1e4a80ad5d0e5350/trees/168418f5ffa37b7a35ee75166c53fe90 /Users/tas/context/tex/texmf-osx-intel/bin/mtxrun:8438: bad argument #2 to 'format' (string expected, got nil) but the format has been successfully created, AFAICS. Btw, I just compiled luatex --version This is LuaTeX, Version snapshot-0.36.0-2009031020, build 1979 Thomas
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Thomas A. Schmitz wrote:
i uploaded a new zip ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/386a116d129cdc597f2bb6210bbaff7a.jpg?s=120&d=mm&r=g)
On Tue, Mar 10, 2009 at 11:47 PM, Thomas A. Schmitz
Around line 64 of mtx-metatex.lua local formatfile, scriptfile = input.locate_format("metatex") if formatfile and scriptfile then local command = string.format("luatex --fmt=%s --lua=% %s", string.quote(formatfile), string.quote(scriptfile), string.quote(filename)) input.report("running command: %s",command) os.spawn(command) Is local command = string.format("luatex --fmt=%s --lua=% %s", string.quote(formatfile), string.quote(scriptfile), string.quote(filename)) correct ? Why not local command = string.format("luatex --fmt=%s --lua=%s %s", string.quote(formatfile), string.quote(scriptfile), string.quote(filename)) -- luigi
![](https://secure.gravatar.com/avatar/386a116d129cdc597f2bb6210bbaff7a.jpg?s=120&d=mm&r=g)
On Wed, Mar 11, 2009 at 6:41 AM, Thomas A. Schmitz
hmm now $>context test.tex MtxRun | loading configuration for /opt/luatex/minimals-beta/tex/texmf/web2c from /opt/luatex/minimals-beta/tex/texmf-cache/luatex-cache/context/e2d590ed08d5bb7ce264a85c7599601d/trees/e9e4d7636cf4b26ea90087f897dde4ca MtxRun | running command: luatex --fmt="/opt/luatex/minimals-beta/tex/texmf-cache/luatex-cache/context/e2d590ed08d5bb7ce264a85c7599601d/formats/metatex" --lua="/opt/luatex/minimals-beta/tex/texmf-cache/luatex-cache/context/e2d590ed08d5bb7ce264a85c7599601d/formats/metatex.lua" "test.tex" This is LuaTeX, Version snapshot-0.35.0 (test.tex ! Undefined control sequence. l.1 \starttext hello\stoptext -- luigi
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Thomas A. Schmitz wrote:
ok, fixed ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/0fe26b93509dd6e22909e565fc8281fc.jpg?s=120&d=mm&r=g)
Hans Hagen
I just re-ran first-setup.sh to update the minimals, but the problem persists: $ context slides.tex MtxRun | loading configuration for /Users/alama/context/tex/texmf/web2c from /Users/alama/context/tex/texmf-cache/luatex-cache/context/61795f339930e48e135cbda2bb1b1ded/trees/f0b428a6867a004b015f446bf6f0bb6e /Users/alama/context/tex/texmf-osx-intel/bin/mtxrun:8438: bad argument #2 to 'format' (string expected, got nil) Jesse -- Jesse Alama (alama@stanford.edu)
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Thomas A. Schmitz wrote:
ah .. new luatex needed, i'll make a tem pworkaround ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/d0e94fb08d4620cfbd2f8f59a7868637.jpg?s=120&d=mm&r=g)
On Mar 13, 2009, at 3:37 PM, Hans Hagen wrote:
ah .. new luatex needed, i'll make a tem pworkaround
Hmm, OK, I took today's trunk and now can generate the formats, but still no joy: MtxRun | loading configuration for /Users/tas/context/tex/texmf/web2c from /Users/tas/context/tex/texmf-cache/luatex-cache/context/ 408a90c432ceda2c1e4a80ad5d0e5350/trees/168418f5ffa37b7a35ee75166c53fe90 /Users/tas/context/tex/texmf-osx-intel/bin/mtxrun:8438: bad argument #2 to 'format' (string expected, got nil) Thomas
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Thomas A. Schmitz wrote:
hard to trace that one ... can you oatch that function to function input.report(fmt,...) -- for scripts too print(fmt,...) if input_locate or input.verbose then logs.report(input.banner or "report",format(fmt,...)) end end and see what is printed just before the error ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/d0e94fb08d4620cfbd2f8f59a7868637.jpg?s=120&d=mm&r=g)
On Mar 13, 2009, at 3:58 PM, Hans Hagen wrote:
Sure, here comes: loading %s for %s from %s configuration /Users/tas/context/tex/texmf/ web2c /Users/tas/context/tex/texmf-cache/luatex-cache/context/ 408a90c432ceda2c1e4a80ad5d0e5350/trees/168418f5ffa37b7a35ee75166c53fe90 locating list of %s /Users/tas/texmf locating list of %s /Users/tas/context/tex/texmf-project locating list of %s /Users/tas/context/tex/texmf-fonts locating list of %s /Users/tas/context/tex/texmf-local locating list of %s /Users/tas/context/tex/texmf-context locating list of %s /Users/tas/context/tex/texmf-extra locating list of %s /Users/tas/context/tex/texmf loading %s for %s from %s files /Users/tas/texmf /Users/tas/context/ tex/texmf-cache/luatex-cache/context/408a90c432ceda2c1e4a80ad5d0e5350/ trees/6c6d363ba334cc9643ab529fdff3dfbb loading %s for %s from %s files /Users/tas/context/tex/texmf-context / Users/tas/context/tex/texmf-cache/luatex-cache/context/ 408a90c432ceda2c1e4a80ad5d0e5350/trees/c7d6f21309753a25b2c2a7daaf686e02 loading %s for %s from %s files /Users/tas/context/tex/texmf /Users/ tas/context/tex/texmf-cache/luatex-cache/context/ 408a90c432ceda2c1e4a80ad5d0e5350/trees/a96a2abbf6ced6f6e8f835b0c3751892 loading %s for %s from %s configuration /Users/tas/context/tex/texmf/ web2c /Users/tas/context/tex/texmf-cache/luatex-cache/context/ 408a90c432ceda2c1e4a80ad5d0e5350/trees/168418f5ffa37b7a35ee75166c53fe90 MtxRun | loading configuration for /Users/tas/context/tex/texmf/web2c from /Users/tas/context/tex/texmf-cache/luatex-cache/context/ 408a90c432ceda2c1e4a80ad5d0e5350/trees/168418f5ffa37b7a35ee75166c53fe90 error, no format found with name: %s nil /Users/tas/context/tex/texmf-osx-intel/bin/mtxrun:8439: bad argument #2 to 'format' (string expected, got nil)
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Thomas A. Schmitz wrote:
ok, thanks, will fix it ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Hi Thomas,
in latest:
since you're in 'latest mode' ... here is an experimental feature that you can test in the mkiv version of your modules \starttext \startbuffer \getcheckedparameters[MyTest][MyNamespace][a=1,b=2,c=3,d=4,crap=whatever] \MyNamespacea\quad \MyNamespaceb\quad \MyNamespacec\quad \MyNamespaced\quad crap is \ifdefined\MyNamespacecrap\else un\fi defined \stopbuffer \enablecheckparameters \setvalidparameterkeys[MyTest][a,b,c,d] \getbuffer \par \addvalidparameterkeys[MyTest][crap] \getbuffer \par \stoptext in due time we can add such testing to all mkiv commands but then we get the key info from the xml database technically we can check for values as well, but since for many commands values can be anything tex, we'd get too many errors reported so only keys can be checked when enabled this checker also intercept spaces as in a = b but not trailing spaces (i.e. before the comma or ]) because that would break compatibility with for instance label settings and such the overhead of this mechanism if small (some .1 sec on 10K calls) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/d0e94fb08d4620cfbd2f8f59a7868637.jpg?s=120&d=mm&r=g)
On Mar 13, 2009, at 3:56 PM, Hans Hagen wrote:
since you're in 'latest mode' ... here is an experimental feature that you can test in the mkiv version of your modules
I'm always in "latest mode," I'm a classicist :-) But just so I can plan ahead (as soon as I have a working mkiv again): in 4 weeks, I will have to write and print my lecture notes every week again; they're written in xml. Compiling with texexec --lua --env=foo bar.xml was broken. Compiling with context --environment=foo bar.xml works, but doesn't give me all the functionality I need, in particular arranging. What is easier, i.e. for what should I pester you more: fixing texexec or adding that functionality to context? Thomas
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Thomas A. Schmitz wrote:
arranging. What is easier, i.e. for what should I pester you more: fixing texexec or adding that functionality to context?
the second Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
On Fri, Mar 13, 2009 at 3:56 PM, Hans Hagen
\getcheckedparameters[MyTest][MyNamespace][a=1,b=2,c=3,d=4,crap=whatever]
How should we deal with the different \getparameters in our macros. I played with your code and have for the moment the following setup command in my module: \def\dosetupcorrespondencesection[#1][#2][#3][#4]% {\ifx\enablecheckparameters\undefined \getparameters[#2#3][#4]% \else \getcheckedparameters[#2#3][#2#3][#4]% \fi} Wolfgang
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Wolfgang Schuster wrote:
we can make a dummy for mkii, like: \def\getcheckedparameters[#1]{\getparameters} Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
On Fri, Mar 13, 2009 at 5:54 PM, Hans Hagen
That's what to to my mind too but I need this also in my module because I need backbard compatibility for TeXLive (older MkIV and MkII), I have now: \ifx\enablecheckparameters\undefined \let\setvalidparameterkeys\gobbleparameters \def\getcheckedparameters[#1]{\getparameters} \fi Wolfgang
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Wolfgang Schuster wrote:
ok, i'll add dummies to a new mult-chk.mkii ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (5)
-
Hans Hagen
-
Jesse Alama
-
luigi scarso
-
Thomas A. Schmitz
-
Wolfgang Schuster