[NTG-context] \attachment not working in MkIV
Hi, I've been trying to get \attachment to work, but I get a Lua error. The following example, (taken from scrn-int.mkiv and stripped a bit) provides an error: \setupinteraction[state=start] \useattachment[whatever][test.tex] \starttext \attachment[whatever] \stoptext The tail of the output is: interaction : active ! LuaTeX error main ctx instance:1: attempt to index global 'interactions' (a nil value) stack traceback: main ctx instance:1: in main chunk. \douseattachment ...newname=#2, filename=#2 }} \else \ctxlua {interaction... to be read again \starttext l.4 \starttext \attachment[whatever] \stoptext What's up with this? Gr. Matthijs signature.asc Description: Digital 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \attachment not working in MkIV
Matthijs Kooijman wrote: Hi, I've been trying to get \attachment to work, but I get a Lua error. The following example, (taken from scrn-int.mkiv and stripped a bit) provides an error: \setupinteraction[state=start] \useattachment[whatever][test.tex] \starttext \attachment[whatever] \stoptext add \registerctxluafile{scrn-int}{1.001} to scrn-int.mkiv as it seems that it's not loaded 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 - ___ 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] \attachment not working in MkIV
add \registerctxluafile{scrn-int}{1.001} to scrn-int.mkiv as it seems that it's not loaded Yup, that removed the error. I even get something icon in the file, but acrobat reader somehow silently fails to open the file... Oh well, let's do without it. Gr. Matthijs signature.asc Description: Digital 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___