[NTG-context] Ruby warnings when running texexec
Hi all Whenever I run texexec I encounter a series of warnings from Ruby. For example, running texexec —version returns the following: texexec --version /usr/local/texlive/2013/texmf-dist/scripts/context/ruby/texexec.rb:688: warning: class variable access from toplevel /usr/local/texlive/2013/texmf-dist/scripts/context/ruby/texexec.rb:695: warning: class variable access from toplevel /usr/local/texlive/2013/texmf-dist/scripts/context/ruby/texexec.rb:702: warning: class variable access from toplevel /usr/local/texlive/2013/texmf-dist/scripts/context/ruby/texexec.rb:703: warning: class variable access from toplevel TeXExec | version 6.2.1 - 1997-2009 - PRAGMA ADE/POD Is there any way to remove this warning? The warning seems to interfere with AucTeX 11.87 and prevents it from registering a successful compilation of the document. I am running MacTeX 2013 and ruby 2.0.0p451 (2014-02-24 revision 45167) [universal.x86_64-darwin13] on a 15” MacBook Pro with OS X 10.9.2. Kind regards Jonathan signature.asc Description: Message signed with OpenPGP using GPGMail ___ 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 ___
[NTG-context] Attach (embed) a file info a .pdf
Hello, I'm not able to recall the way how to attach a file into a .pdf being generated. I need the attached files to be openable or savable from the .pdf - see the image. How to achieve this with ConTeXt? Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 241 096 751 Fax: +420 244 461 038___ 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 ___
Re: [NTG-context] Linenumbering
Thanks very much, Hans. De: ntg-context-boun...@ntg.nl ntg-context-boun...@ntg.nl en nombre de Hans Hagen pra...@wxs.nl Enviado: martes, 15 de abril de 2014 6:58 Para: ntg-context@ntg.nl Asunto: Re: [NTG-context] Linenumbering On 4/10/2014 12:46 AM, MANUEL GONZALEZ SUAREZ wrote: Hello everyone. I give a small example: \setuppagenumbering [alternative=doublesided] \setuplinenumbering[location=outer, step=5, method=page, style=\tfxx, align=left, distance=1em, width=0.4em] \starttext \section{First section} \startlinenumbering text text text \stoplinenumbering \section{Second section} \startlinenumbering text text text \stoplinenumbering \stoptext The problem is that although appears the option [method = page], numbering begins at the beginning of each section. I would like the title of the section does not appear as numbered line but continue after the title the above numbering, e.e.: \startlinenumbering \section{First section} no numbered line Numbered line (1) Numbered line (2) \section{Second section} no numbered line Numbered line (3) Numbered line (4) … \stoplinenumbering \startlinenumbering[continue] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 ___ ___ 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 ___
Re: [NTG-context] Attach (embed) a file info a .pdf
Am 23.04.2014 um 09:33 schrieb Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: Hello, I'm not able to recall the way how to attach a file into a .pdf being generated. I need the attached files to be openable or savable from the .pdf - see the image. How to achieve this with ConTeXt? Comments from scrn-wid.mkvi: % old but stil valid method: % % \useattachment[test.tex] % \useattachment[whatever][test.tex] % \useattachment[whatever][newname][test.tex] % \useattachment[whatever][title][newname][test.tex] % % new method: % % \registerattachment[sometag][specification] % name file author title subtitle % % \attachment[sometag][extra specs] % \attachment[test.tex] % \attachment[file=test.tex] % \attachment[file=test.tex,method=hidden] % \attachment[name=newname,file=test.tex] % \attachment[title=mytitle,name=newname,file=test.tex] % % indirect % % \defineattachment[whatever5][file=test.tex] \attachment[whatever5][method=hidden] % \defineattachment[whatever5][file=test.tex,method=hidden] \attachment[whatever5] % % direct (no definitions) % % \attachment[test][file=oeps.tex,title=Oeps,author=Hans,subtitle=TeX File,method=hidden] % \attachment[label=test,file=oeps.tex,title=Oeps,author=Hans,subtitle=TeX File,method=hidden] % % autolabel: % % \attachment[file=oeps.tex,title=Oeps,author=Hans,subtitle=TeX File,method=hidden] 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Attach (embed) a file info a .pdf
... Great, thank you! Lukas Comments from scrn-wid.mkvi: % old but stil valid method: % % \useattachment[test.tex] % \useattachment[whatever][test.tex] % \useattachment[whatever][newname][test.tex] % \useattachment[whatever][title][newname][test.tex] % % new method: % % \registerattachment[sometag][specification] % name file author title subtitle % % \attachment[sometag][extra specs] % \attachment[test.tex] % \attachment[file=test.tex] % \attachment[file=test.tex,method=hidden] % \attachment[name=newname,file=test.tex] % \attachment[title=mytitle,name=newname,file=test.tex] % % indirect % % \defineattachment[whatever5][file=test.tex] \attachment[whatever5][method=hidden] % \defineattachment[whatever5][file=test.tex,method=hidden] \attachment[whatever5] % % direct (no definitions) % % \attachment[test][file=oeps.tex,title=Oeps,author=Hans,subtitle=TeX File,method=hidden] % \attachment[label=test,file=oeps.tex,title=Oeps,author=Hans,subtitle=TeX File,method=hidden] % % autolabel: % % \attachment[file=oeps.tex,title=Oeps,author=Hans,subtitle=TeX File,method=hidden] Wolfgang -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 241 096 751 Fax: +420 244 461 038 ___ 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 ___
Re: [NTG-context] Attributes
On 4/22/2014 8:10 PM, Stéphane Goujet wrote: On Tue, 22 Apr 2014, Hans Hagen wrote: On 4/20/2014 3:14 PM, Stéphane Goujet wrote: I would like to know what is the recommended way to use attributes in Context. What is the Context way to declare and set attributes? Is it something like this? \defineattribute[myattr] \dosetattribute{myattr}{1} And how do I then access them from Lua? Should it look like has_attribute(mynode, attributes.myattr) or has_attribute(mynode, attributes.x(myattr)) or something else? attributes.names[...] attributes.numbers[...] Please have a look at my example (it is a bit long because it shows various possibilities) and its result. When I have not yet done a \defineattribute[myattr], node.has_attribute returns 0 when I thought it should return nil. When I do \defineattribute[...], every attribute seems to get the same number (1024), but now node.has_attribute returns nil ... change this is syst-ini.mkiv: \normalprotected\def\newattribute{\syst_basics_allocate\c_syst_last_allocated_attribute\attribute\attributedef\c_syst_max_allocated_register} = Example = \starttext \startluacode mycallback=function(head) if attributes.names==nil then print No attribute names at all end if attributes.numbers==nil then print No attribute numbers at all end for mynode in node.traverse_id(node.id(glyph), head) do if string.match(0ABCDEabcdefg, unicode.utf8.char(mynode.char)) then print (Glyph = ..unicode.utf8.char(mynode.char)) if attributes.numbers[myattr]==nil then print No attribute number for myattr else print (myattr : number = ..(attributes.numbers[myattr])) end if attributes.numbers[myattrb]==nil then print No attribute number for myattrb else print (myattrb : number = ..(attributes.numbers[myattrb])) end if node.has_attribute(mynode, attributes.numbers[myattr]) then print (Attribute myattr = ..(node.has_attribute(mynode, attributes.numbers[myattr]))) else print No attribute myattr end if node.has_attribute(mynode, attributes.numbers[myattrb]) then print (Attribute myattrb = ..(node.has_attribute(mynode, attributes.numbers[myattrb]))) else print No attribute myattrb end if node.has_attribute(mynode, 111) then print (Attribute 111 = ..(node.has_attribute(mynode, 111))) else print No attribute 111 end end end return head end nodes.tasks.appendaction(processors, before, mycallback) \stopluacode 0 \attribute111=-1 A \attribute111=200 B \attribute111=202 C \attribute111=-1 D \attribute111=-7FFF E \defineattribute[myattr] \defineattribute[myattrb] a \doresetattribute{myattr} b \dosetattribute{myattr}{500} c \dosetattribute{myattr}{502} d \doresetattribute{myattr} e \stoptext == == Result : == Glyph = 0 No attribute number for myattr No attribute number for myattrb Attribute myattr = 0 Attribute myattrb = 0 No attribute 111 Glyph = A No attribute number for myattr No attribute number for myattrb Attribute myattr = 0 Attribute myattrb = 0 Attribute 111 = -1 Glyph = B No attribute number for myattr No attribute number for myattrb Attribute myattr = 0 Attribute myattrb = 0 Attribute 111 = 200 Glyph = C No attribute number for myattr No attribute number for myattrb Attribute myattr = 0 Attribute myattrb = 0 Attribute 111 = 202 Glyph = D No attribute number for myattr No attribute number for myattrb Attribute myattr = 0 Attribute myattrb = 0 Attribute 111 = -1 Glyph = E No attribute number for myattr No attribute number for myattrb Attribute myattr = 0 Attribute myattrb = 0 No attribute 111 Glyph = a myattr : number = 1024 myattrb : number = 1024 No attribute myattr No attribute myattrb No attribute 111 Glyph = b myattr : number = 1024 myattrb : number = 1024 No attribute myattr No attribute myattrb No attribute 111 Glyph = c myattr : number = 1024 myattrb : number = 1024 No attribute myattr No attribute myattrb No attribute 111 Glyph = d myattr : number = 1024 myattrb : number = 1024 No attribute myattr No attribute myattrb No attribute 111 Glyph = e myattr : number = 1024 myattrb : number = 1024 No attribute myattr No attribute myattrb No attribute 111 == Goodbye, Stéphane. ___ If your question is of interest to others as
Re: [NTG-context] Attach (embed) a file info a .pdf
... One more question: the following example seems not to contain any attachment: t4.mkiv \attachment[t4.mkiv] \starttext AAA \stoptext What's wrong? Lukas Comments from scrn-wid.mkvi: % old but stil valid method: % % \useattachment[test.tex] % \useattachment[whatever][test.tex] % \useattachment[whatever][newname][test.tex] % \useattachment[whatever][title][newname][test.tex] % % new method: % % \registerattachment[sometag][specification] % name file author title subtitle % % \attachment[sometag][extra specs] % \attachment[test.tex] % \attachment[file=test.tex] % \attachment[file=test.tex,method=hidden] % \attachment[name=newname,file=test.tex] % \attachment[title=mytitle,name=newname,file=test.tex] % % indirect % % \defineattachment[whatever5][file=test.tex] \attachment[whatever5][method=hidden] % \defineattachment[whatever5][file=test.tex,method=hidden] \attachment[whatever5] % % direct (no definitions) % % \attachment[test][file=oeps.tex,title=Oeps,author=Hans,subtitle=TeX File,method=hidden] % \attachment[label=test,file=oeps.tex,title=Oeps,author=Hans,subtitle=TeX File,method=hidden] % % autolabel: % % \attachment[file=oeps.tex,title=Oeps,author=Hans,subtitle=TeX File,method=hidden] Wolfgang -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 241 096 751 Fax: +420 244 461 038 t4.mkiv Description: Binary data t4.pdf Description: Adobe PDF document ___ 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 ___
Re: [NTG-context] Attach (embed) a file info a .pdf
Am 23.04.2014 um 11:32 schrieb Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: ... One more question: the following example seems not to contain any attachment: t4.mkiv \attachment[t4.mkiv] \starttext AAA \stoptext What's wrong? Add \setupinteraction[state=start] to your document. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Attach (embed) a file info a .pdf
On Wed, 23 Apr 2014 11:37:02 +0200, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: \setupinteraction[state=start] It work now, thanks. And - hopefully the last question: Is it possible to affect the icon shown (now: pin) (to be eg. paperclip)? And is it possible to hide the icon completely? (I tried method=hidden but this produces attachment.txt instead of t4.mkiv as an attachment). Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 241 096 751 Fax: +420 244 461 038 ___ 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 ___
Re: [NTG-context] Attach (embed) a file info a .pdf
Am 23.04.2014 um 11:51 schrieb Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: On Wed, 23 Apr 2014 11:37:02 +0200, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: \setupinteraction[state=start] It work now, thanks. And - hopefully the last question: Is it possible to affect the icon shown (now: pin) (to be eg. paperclip“)? You can change the symbol with \setupattachments[symbol=Paperclip] but this doesn’t produce the right symbol because there is a spelling error in the source (should be fixed in the next beta). And is it possible to hide the icon completely? (I tried method=hidden but this produces attachment.txt instead of t4.mkiv as an attachment). I think it’s a bug because there appears only a empty attachment in the document. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Attributes
On Wed, 23 Apr 2014, Hans Hagen wrote: On 4/22/2014 8:10 PM, Stéphane Goujet wrote: Please have a look at my example (it is a bit long because it shows various possibilities) and its result. When I have not yet done a \defineattribute[myattr], node.has_attribute returns 0 when I thought it should return nil. When I do \defineattribute[...], every attribute seems to get the same number (1024), but now node.has_attribute returns nil ... change this is syst-ini.mkiv: \normalprotected\def\newattribute{\syst_basics_allocate\c_syst_last_allocated_attribute\attribute\attributedef\c_syst_max_allocated_register} Thank you, it seems to work much better ! There is still the problem that node.has_attribute does not return nil when I expect it should, but that is luatex problem (a check that a parameter is really an integer should be performed before calling lua_tointeger), so I will change mailing-list in order to report it. Faithfully yours, Stéphane Goujet.___ 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 ___
Re: [NTG-context] Broken bibliographies in 2014-03-07 beta
On 03/28/2014 03:08 PM, Hans Hagen wrote: On 3/28/2014 1:29 PM, Sanjoy Mahajan wrote: With the latest beta (2014.03.27), my bibliography example below now works fine. Thank you for fixing that. Now I shall run the whole book mss through the same beta. some day soon we will enable the new implementation which doesn't use bibtex at all Hi Hans, (or Luigi/Thomas?) Any idea when the new bibliography implementation will become available for general (test) use? Thank you, Jelle ___ 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 ___
[NTG-context] Markings do not appear inside section block environments
Is there a solution? \definemarking[M] \marking[M]{Cool} \setupheadertexts[{Marking: \getmarking[M]}][{Marking: \getmarking[M]}] \starttext \startbodymatter Hello world! \stopbodymatter \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Attributes
On 4/23/2014 3:07 PM, Stéphane Goujet wrote: On Wed, 23 Apr 2014, Hans Hagen wrote: On 4/22/2014 8:10 PM, Stéphane Goujet wrote: Please have a look at my example (it is a bit long because it shows various possibilities) and its result. When I have not yet done a \defineattribute[myattr], node.has_attribute returns 0 when I thought it should return nil. When I do \defineattribute[...], every attribute seems to get the same number (1024), but now node.has_attribute returns nil ... change this is syst-ini.mkiv: \normalprotected\def\newattribute{\syst_basics_allocate\c_syst_last_allocated_attribute\attribute\attributedef\c_syst_max_allocated_register} Thank you, it seems to work much better ! There is still the problem that node.has_attribute does not return nil when I expect it should, but that is luatex problem (a check that a parameter is really an integer should be performed before calling lua_tointeger), so I will change mailing-list in order to report it. that interface is unlikely to change (e.g. because of performance reasons) ... you'd better check at your end btw, you can try: mynode[123] which is more efficient - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 ___
Re: [NTG-context] Broken bibliographies in 2014-03-07 beta
On 4/23/2014 3:56 PM, Jelle Huisman wrote: On 03/28/2014 03:08 PM, Hans Hagen wrote: On 3/28/2014 1:29 PM, Sanjoy Mahajan wrote: With the latest beta (2014.03.27), my bibliography example below now works fine. Thank you for fixing that. Now I shall run the whole book mss through the same beta. some day soon we will enable the new implementation which doesn't use bibtex at all Hi Hans, (or Luigi/Thomas?) Any idea when the new bibliography implementation will become available for general (test) use? no schedule ... thomas need to test etc etc ... so not in the tl code freeze but later (probably kind of stable around the context conference) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 ___
Re: [NTG-context] Broken bibliographies in 2014-03-07 beta
On 04/23/2014 07:15 PM, Hans Hagen wrote: no schedule ... thomas need to test etc etc ... so not in the tl code freeze but later (probably kind of stable around the context conference) Okay, thank you! Jelle ___ 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 ___
[NTG-context] Orphans/Widows in the Index
Dear All, in my auto-generated two column index (registry) there are several cases of widows - it is the last item of the given letter which overflows to next column/page: --- (start page) --- Usti 29 (!!! - I would expect to place here also one or better two previous entries) V Vamberk 18 ... ... There are also few cases of orphans, but this is not so strange: ... ... Josef 29 K (!!! - both these lines could be moved to the next column/page) Karel 69 (end page) - In my setup I have defined: \startsetups[grid][mypenalties] \setdefaultpenalties \setpenalties\widowpenalties{2}{1} % change to {3}{1} doesn't help \setpenalties\clubpenalties {2}{1} \stopsetups \setuplayout[grid=yes, setups=mypenalties] It is hard to provide MWE. Moreover, the content is for private use only. Is there any remedy for this? Thanks, Jan ___ 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 ___
Re: [NTG-context] Attributes
On Wed, 23 Apr 2014, Hans Hagen wrote: On 4/23/2014 3:07 PM, Stéphane Goujet wrote: There is still the problem that node.has_attribute does not return nil when I expect it should, but that is luatex problem (a check that a parameter is really an integer should be performed before calling lua_tointeger), so I will change mailing-list in order to report it. that interface is unlikely to change (e.g. because of performance reasons) Er... well, the other parameter is already checked, with a check_isnode() which is heavier than a lua_isnumber() or lua_isnil(). It is possible that the former one is not inlined when the other ones are (I did not verify either of these hypotheses). Anyway, if you do not want to make this change in the code, you should change the specification, because now, Luatex reference manual says It returns the value, or, if no match is found, nil, whereas when we supply an attribute number which is nil or not a number (therefore it cannot ever match), it returns a non-nil value (which, moreover, means true). Something like adding If id is nil or if id is not an integer, the result is unspecified, perhaps. Goodbye, Stéphane. ___ 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 ___