[NTG-context] Stepper code fails

Hans Hagen pragma at wxs.nl
Fri Mar 28 11:47:55 CET 2014


On 3/28/2014 11:30 AM, Michael Guravage wrote:
> The Stepper example on the wiki, <http://wiki.contextgarden.net/Stepper>
> from which the following snippet comes,
>
>     \usemodule[pre-60] % use the stepper
>     \setuppapersize[S6][S6]
>
>     \defineoverlay[invoke] [\overlaybutton{InvokeStepper}]
>     \setupbackgrounds[text] [background=invoke]
>     \setupinteraction[state=start,click=off]
>
>     \starttext
>     ex nihilo
>     \stoptext
>
>
> fails here with the following error:
>
>     ! LuaTeX error
>     ...eXt-beta/tex/texmf-context/tex/context/base/lpdf-mis.lua:146:
>     attempt to call upvalue 'pdfaction' (a nil value)
>     stack traceback:
>     ...eXt-beta/tex/texmf-context/tex/context/base/lpdf-mis.lua:146: in
>     function '?'
>     ...eXt-beta/tex/texmf-context/tex/context/base/lpdf-ini.lua:700: in
>     function 'run'
>     ...eXt-beta/tex/texmf-context/tex/context/base/lpdf-ini.lua:722: in
>     function 'finalizepage'
>     [string "\latelua "]:1: in main chunk.
>
>
> Though I am using the latest beta, I do not think this problem caused by
> changes in the latest release. I have attached the log file for those
> who are interested. Any suggestions how to rectify this problem would be
> much appreciated.

in back-pdf.mkiv change the order:

\registerctxluafile{lpdf-ano}{1.001}
\registerctxluafile{lpdf-mis}{1.001}

so, load mis after ano and remake the format

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
-----------------------------------------------------------------


More information about the ntg-context mailing list