Re: [NTG-context] Egg does not work in MKIV
On Sat, Nov 1, 2008 at 3:00 PM, Yue Wang [EMAIL PROTECTED] wrote: after a closer look, i think line 9014 today=os.date makes today a function. however, the function is not a meta-table, so that there is no entry named today.month and today.day. On Sat, Nov 1, 2008 at 1:54 PM, Yue Wang [EMAIL PROTECTED] wrote: Hi The egg works in mkii, but not mkiv. Here is the log: mkiv lua stats : used config path - /usr/home/yue/context/tex/texmf/web2c/texmf.cnf mkiv lua stats : used cache path - /usr/home/yue/context/tex/texmf-cache mkiv lua stats : modules/dumps/instances - 93/25/1 mkiv lua stats : input load time - 0.031 seconds mkiv lua stats : startup time - 1.145 seconds (including runtime option file processing) mkiv lua stats : jobdata time - 0.001 seconds saving, 0.001 seconds loading mkiv lua stats : fonts load time - 3.882 seconds mkiv lua stats : xml load time - 0.000 seconds, lpath calls: 0, cached calls: 0 mkiv lua stats : lxml load time- 0.000 seconds preparation, backreferences: 0 mkiv lua stats : mps conversion time - 0.000 seconds mkiv lua stats : node processing time - 0.456 seconds including kernel mkiv lua stats : kernel processing time- 0.015 seconds mkiv lua stats : attribute processing time - 0.155 seconds mkiv lua stats : language load time- 0.092 seconds, n=2 mkiv lua stats : graphics processing time - 0.067 seconds including tex, n=24 mkiv lua stats : metapost processing time - 0.000 seconds, loading: 0.000 seconds, execution: 0.000 seconds, n: 0 mkiv lua stats : current memory usage - 134 MB (ctx: 137 MB) mkiv lua stats : cleaned up reserved nodes - 37 nodes, 10 lists of 100 mkiv lua stats : node memory usage - 144 attribute, 20 glue_spec, 48 attribute_list, 48 local_par, 2 dir mkiv lua stats : loaded patterns - us:us:pat:exc:2 mkiv lua stats : loaded fonts - AdobeSongStd-Light:otf MinionPro-Bold:otf MinionPro-It:otf MinionPro-Regular:otf MyriadPro-Bold:otf MyriadPro-Regular:otf TektonPro-Regular:otf lmex10:tfm lmmi12:tfm lmmi7:tfm lmmi9:tfm lmroman10-bolditalic:otf lmroman10-italic:otf lmroman12-bold:otf lmroman12-italic:otf lmroman12-regular:otf lmroman7-bold:otf lmroman7-regular:otf lmroman9-bold:otf lmroman9-italic:otf lmroman9-regular:otf lmromancaps10-regular:otf lmromanslant10-bold:otf lmromanslant10-regular:otf lmromanslant12-regular:otf lmromanslant9-regular:otf lmsy10:tfm lmsy7:tfm lmsy9:tfm msam10:tfm msam7:tfm msbm10:tfm msbm7:tfm rm-lmr12:tfm rm-lmr7:tfm rm-lmr9:tfm mkiv lua stats : control sequences - 39329 of 165536 mkiv lua stats : callbacks - direct: 13639, indirect: 24505, total: 38144 (1362 per page) mkiv lua stats : runtime - 7.124 seconds, 28 processed pages, 28 shipped pages, 3.930 pages/second MtxRun | total runtime: 7.567 /usr/home/yue/context/tex/texmf-freebsd/bin/mtxrun:9016: attempt to index global 'today' (a function value) [EMAIL PROTECTED] ~/ps]$ uname -a FreeBSD localhost 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Sat Nov 1 13:33:53 UTC 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/KERNEL i386 I think it is not urgent, but I'd like to celebrate Hans' birthday! Yue Wang ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ Near the end Errata today = os.date Corrige today = os.date(*t) -- luigi ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \ref and \goto
Hi, how can I combine \ref and \goto? \setupinteraction[state=start] \starttext \chapter[sec:one]{One} \chapter[sec:two]{Two} see also \goto{One}[sec:one] % hyperlink see also \ref[s][sec:one] % no hyperlink see also \goto{\ref[s][sec:one]}[sec:one] % fails \stoptext Wolfgang ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Last current
Hi, the last current release still contains \latetua in core-two.mkiv for \savetwopassdata and the two modules m-subsub and m-educat use the old mutiligual interface. The collection of third party modules cont-ext contains a too old version (with startconstants/variables) of the letter module, I put a newer version on the garden a few days ago. Thanks and regards, Wolfgang ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Context release 2008.10.31
Hi, Most of you have probably deduced this, but Hans has released a new version of ConTeXT past friday. New features: * There now is a Persian interface (format) * The whole multilingual subsystem is rewritten and is now generated by a script from a single lua database table. ** Note: ** External modules that define or set system constants ** and system variables will need updating. * New versions of the greek, vim and bib modules * More files have been split into mkii+mkiv parts * The old, dvipdfm style font mapfiles have been removed because newer versions of (x)dvipdfmx support the pdftex-style map format * mkiv now has support for 'special' features like knockout vs overprint and spot colors via attributes For pdftex users, there are not that many changes, but users of xetex of luatex are advised to update a.s.a.p. The wiki page is here: http://wiki.contextgarden.net/Context_2008.10.31 It is clear already that there are a few issues with the new release (esp. wrt. external modules) but it still makes sense to update *now* so that all these problems can be resolved in the next few days. This release is already included in the ConTeXt Minimals distribution http://wiki.contextgarden.net/ConTeXt_Minimals If you use a different distribution, you can download the cont-tmf.zip from Pragma ADE directly: http://www.pragma-ade.com Have fun, Taco ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lettermodule
Hallo Wolfgang, danke schön für den Hinweis! Willi On Nov 1, 2008, at 12:30 PM, Wolfgang Schuster wrote: Hi Willi, you need the latest version from the garden for the last ConTeXt release. Regards, Wolfgang Am 01.11.2008 um 12:16 schrieb Willi Egger: Hello Wolfgang, I just updated to the latest beta of context. Unfortunately I get now an error when using the letter module. I have no clue. ConTeXt ver: 2008.10.31 13:58 MKIV fmt: 2008.11.1 int: english/ english ! Undefined control sequence. argument \c!extension = \xprocesscommaitem #1,#2-\if ,#1 ,[EMAIL PROTECTED] \xprocesscommaitem \else \if ] [EMAIL PROTECTED] argument ...t-ltr, \c!extension =, \c!interface =default \xdogetparameters #1]-\xprocesscommaitem #1 ,],[EMAIL PROTECTED]@ \dosetupmodule ...rs [\??md :\currentmodule :][#1] \expanded {\getparameters ... to be read again \par ... Kind regards Willi __ _ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] columns in footnotes broken
The manual describes a way to set footnotes in columns: \setupfootnotes[n=number] (Context: the manual (Nov. 12, 2001), pp. 101-2) That has caused errors for me in the 2008-10-23 or 2008-10-31 releases. mjg TEST DOCUMENT: \setupfootnotes[n=2] \starttext First sentence here.\footnote{Note one.} Second sentence here. \footnote{Note two.} Third sentence here.\footnote{Note three.} \stoptext ERROR MESSAGE ConTeXt ver: 2008.10.31 13:58 MKIV fmt: 2008.11.1 int: english/ english [snip] fonts : using map file: original-public-lm {/Users/michaelgreen/Applications/context/tex/texmf-context/fonts/map/ pdftex/context/original-public-lm.map} ! Missing } inserted. inserted text } to be read again \unvbox \doplacenoteinserts ...ing \unvcopy \else \unvbox \fi \currentnoteins \fi \s... \next3 ...oprocessnotes {\doplacenoteinserts }{#1} \doprocesscommaitem argument \relax footnote, endnote,linenote \doprocesscommalist ...aitem \gobbleoneargument #1 ,]\relax \global \advance ... ... l.7 \stoptext ? ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \ref and \goto
On Sun, Nov 02 2008, Wolfgang Schuster wrote: how can I combine \ref and \goto? \setupinteraction[state=start] [...] see also \goto{\ref[s][sec:one]}[sec:one] % fails Here a workaround: see also \goto{\expanded{\ref[s][sec:one]}}[sec:one] % does not fail This works also: \def\myGoto#1{\goto{\expanded{\ref[s][#1]}}[#1]} see also \myGoto{sec:one} Cheers, Peter -- http://pmrb.free.fr/contact/ ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] MPclip problem (mkiv)
Hi, the lua function 'metapost.filterclippath()' in mlib-ctx.lua uses 'flushnormalpath()', which is not global. Moving it to mlib-pdf.lua did work here. Regards, Peter ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Minimals - problems with format: metafun.mp
Hello, In a bit to finally get Wolfgang's present to me (see XML thread somewhere) finally compiled, I update my minimals via the first-install.sh script and run luatools --generat context --make afterwards. Now I get the error below. Where might I err? Thanks, Joh context --version MtxRun | main context file: /opt/ConTeXtMinimals/tex/texmf-context/tex/context/base/context.tex MtxRun | current version: 2008.10.31 13:58 systems: randomizer starts with 1392096869 mplib : making format: metafun.mp, name: /opt/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/cf1ede6f9a7dea65673b0113ca44a3cc/formats/cont-en-metafun.mem mplib : problems with format: metafun.mp, name: /opt/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/cf1ede6f9a7dea65673b0113ca44a3cc/formats/cont-en-metafun.mem ! LuaTeX error ...mals/tex/texmf-context/tex/context/base/mlib-pps.lua:384: 'for' initial value must be a number stack traceback: ...mals/tex/texmf-context/tex/context/base/mlib-pps.lua:384: in function 'free_boxes' ...mals/tex/texmf-context/tex/context/base/mlib-pps.lua:768: in function 'graphic_base_pass' ...mals/tex/texmf-context/tex/context/base/mlib-ctx.lua:19: in function 'graphic' main ctx instance:1: in main chunk. \processMPgraphic ... \MPuserinclusions ;\!!es ) } \global \settrue \METAFUNi... \getMPdrawing ...ic \expandafter {\MPdrawingdata } \fi \dopositionaction ...fMPdrawingdone \getMPdrawing \fi \resetMPdrawing \popMP... argument ...n {\v!text -1::\MPanchoridentifier } \hss }\ht \scratchbox \ove... \firstoftwoarguments #1#2-#1 \positionoverlay ...hbox to \overlaywidth {\hss }} \vfill }\fi ... l.72 \stoptext ? ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Minimals - problems with format: metafun.mp
Johannes Graumann schrieb: Hello, In a bit to finally get Wolfgang's present to me (see XML thread somewhere) finally compiled, I update my minimals via the first-install.sh script and run luatools --generat context --make afterwards. Now I get the error below. Where might I err? Thanks, Joh context --version MtxRun | main context file: /opt/ConTeXtMinimals/tex/texmf-context/tex/context/base/context.tex MtxRun | current version: 2008.10.31 13:58 systems: randomizer starts with 1392096869 mplib : making format: metafun.mp, name: /opt/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/cf1ede6f9a7dea65673b0113ca44a3cc/formats/cont-en-metafun.mem mplib : problems with format: metafun.mp, name: /opt/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/cf1ede6f9a7dea65673b0113ca44a3cc/formats/cont-en-metafun.mem ! LuaTeX error ...mals/tex/texmf-context/tex/context/base/mlib-pps.lua:384: 'for' initial value must be a number stack traceback: ...mals/tex/texmf-context/tex/context/base/mlib-pps.lua:384: in function 'free_boxes' ...mals/tex/texmf-context/tex/context/base/mlib-pps.lua:768: in function 'graphic_base_pass' ...mals/tex/texmf-context/tex/context/base/mlib-ctx.lua:19: in function 'graphic' main ctx instance:1: in main chunk. \processMPgraphic ... \MPuserinclusions ;\!!es ) } \global \settrue \METAFUNi... \getMPdrawing ...ic \expandafter {\MPdrawingdata } \fi \dopositionaction ...fMPdrawingdone \getMPdrawing \fi \resetMPdrawing \popMP... argument ...n {\v!text -1::\MPanchoridentifier } \hss }\ht \scratchbox \ove... \firstoftwoarguments #1#2-#1 \positionoverlay ...hbox to \overlaywidth {\hss }} \vfill }\fi ... l.72 \stoptext ? The loop variables metapost.first_box and metapost.last_box are not defined. You can try to remove the comment in line 376 of mlib-pps.lua. [376] metapost.first_box, metapost.last_box = 1000, 1100 Best wishes, Peter ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \ref and \goto
Am 02.11.2008 um 18:21 schrieb Peter Münster: On Sun, Nov 02 2008, Wolfgang Schuster wrote: how can I combine \ref and \goto? \setupinteraction[state=start] [...] see also \goto{\ref[s][sec:one]}[sec:one] % fails Here a workaround: see also \goto{\expanded{\ref[s][sec:one]}}[sec:one] % does not fail This works also: \def\myGoto#1{\goto{\expanded{\ref[s][#1]}}[#1]} see also \myGoto{sec:one} Hi Peter, thank you for the solution, I use now this: \def\gotoref[#1][#2]% {\goto{\expanded{\ref[#1][#2]}}[#2]} see also \gotoref[s][sec:one] Regards Wolfgang ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Problem with itemization (again)
Hi, sorry to be a bit repetitive, but this still doesn't work as expected (in MkII, but see also below): \starttext \startitemize[intro] \dorecurse{12}{% \item \dorecurse{\recurselevel}{This is some intro. }Intro ends here. \startitemize[intro,columns,two] \dorecurse{4}{% \item \dorecurse{1}{This is a test. }End of the test. }% \stopitemize }% \stopitemize \stoptext (see page 2 and 3). I guess nothing wrt. itemizations changed in the new beta (I tested the above example in the online ConTeXt), so it's no surprise, but I still have no clue as to the reasons and any remedies. I use two-column itemizations *a lot*, so this is a serious problem for me... Any ideas how to prevent the unnecessary page break? PS. I have just noticed that this works correctly with luatex!!! And so do unpacked two-column itemizations!!! That's just great!!! So my question now becomes: does this mean that MkII is just obsolete for me and I should upgrade to MkIV? And two more things: 1. I have noticed that unpacked itemization in columns has the whitespace between items equal to one line. Is it possible to make it shorter, say half a line? 2. I've also noticed that the second (last?) column of itemization seems *never* to be longer that the previous ones, which seems to be quite reasonable, but sometimes it would be better for it to be one line longer than two lines shorter. Is there a way of e.g. inserting a manual column-break within multi-column itemizations and/or letting the last column be longer? Sorry people for being such a nuisance, but - as I've said - I use itemizations a lot (mainly for different kinds of problem sets for my students or my wife's pupils;)) and these issues appear quite often. Also, I'd like to teach a bit of ConTeXt to my wife, who would like it to *simply work* (she's great, but no TeX hacker;)). Greets -- Marcin Borkowski (http://mbork.pl) People can be divided into three groups: those who can count and those who can't. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with MkIV on texlive2008
Dnia Mon, Nov 03, 2008 at 08:24:22AM +0100, Marcin Borkowski napisa#322;(a): Hi, I did everything as wiki says, and after context test-06 I get /usr/local/texlive/2008/bin/i386-linux/mtxrun:9016: attempt to index global 'today' (a function value) What might be wrong? (I also chmod'ed all things in some .../script directories to executables.) Greets I forgot to include one more line of output: altogether it says MtxRun | unknown script 'context.lua' or 'mtx-context.lua' /usr/local/texlive/2008/bin/i386-linux/mtxrun:9016: attempt to index global 'today' (a function value) Please help... -- Marcin Borkowski (http://mbork.pl) It is impossible to split a cube into two cubes, a fourth power into two fourth powers and so on. I've found a remarkable proof of this fact, but unfortunately it's too long to fit into the signature. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with MkIV on texlive2008
Am 03.11.2008 um 08:24 schrieb Marcin Borkowski: Hi, I did everything as wiki says, and after context test-06 I get /usr/local/texlive/2008/bin/i386-linux/mtxrun:9016: attempt to index global 'today' (a function value) What might be wrong? (I also chmod'ed all things in some .../script directories to executables.) mtxrun --selfupdate luatools --selfupdate If the problem still remains send us a example. Wolfgang ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with MkIV on texlive2008
Dnia Mon, Nov 03, 2008 at 08:42:04AM +0100, Wolfgang Schuster napisa#322;(a): Thanks, but... mtxrun --selfupdate [EMAIL PROTECTED]:~# mtxrun --selfupdate MtxRun | to be replaced old script /usr/local/texlive/2008/bin/i386-linux/mtxrun MtxRun | checking new script /usr/local/texlive/2008/texmf-dist/scripts/context/lua/mtxrun.lua MtxRun | old script content replaced by new content /usr/local/texlive/2008/bin/i386-linux/mtxrun:9016: attempt to index global 'today' (a function value) luatools --selfupdate [EMAIL PROTECTED]:~# luatools --selfupdate LuaTools | to be replaced old script /usr/local/texlive/2008/bin/i386-linux/luatools LuaTools | checking new script /usr/local/texlive/2008/texmf-dist/scripts/context/lua/luatools.lua LuaTools | old script content replaced by new content LuaTools | LuaTools | runtime: 0.240 seconds If the problem still remains send us a example. [EMAIL PROTECTED]:~/works/marcin/context$ context whatever MtxRun | unknown script 'context.lua' or 'mtx-context.lua' /usr/local/texlive/2008/bin/i386-linux/mtxrun:9016: attempt to index global 'today' (a function value) (It seems that it doesn't matter whether whatever.tex exists or not.) Wolfgang -- Marcin Borkowski (http://mbork.pl) _ _ _ / \ / \ / \ OSTRE SŁOWA \_/ \_/ \_/ OSTRA MUZYKA / \ / \ / \ OSTRA PŁYTA \_/ \_/ \_/ 2 Tm 2,3 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___