Hans Hagen schrieb:
> Peter Rolf wrote:
>> hi,
>>
>> every peace of code with interactive elements gives me this error message
>>
>>
>> systems         : begin file walkfield at line 5
>> (./walkfield.tuo)
>> javascript      : loading script set fld
>> (r:/tex/texmf-local/tex/context/base/java-fld.tex)
>> ! Undefined control sequence.
>> \dopresetfieldsymbol #1->\checkobjectreferences
>>                                                 \doifobjectfoundelse
>> {SYM}{#...
>> \dosetupfield ...tfieldsymbol \@@DriverFieldValue
>>                                                   \setbox \scratchbox
>> \hbox ...
>> \dofield ...abel ,\v!frame ,\v!horizontal ][][][]}
>>                                                   \iftrialtypesetting
>> \else ...
>> <to be read again>
>>                    \egroup
>> \globalcommacommand ...tackedfieldnumber ]\egroup
>>                                                   \bgroup
>> \globalprocesscommaitem ...globalcommacommand {#1}
>>                                                   \expandafter
>> \globalproces...
>> ....
>> l.43 \smashedvbox{\fieldstack[sequence]}
>>                                         %
>> ?
>>
>> every interactive element should produce this error, but i can also send
>> a test file.
> 
> 
> % engine=luatex
> 
> \starttext
> 
> \setupinteraction[state=start]
> 
> \chapter[first]{First}
> 
> test \in{chapter}[second]
> 
> \chapter[second]{Second}
> 
> test \in{chapter}[first]
> 
> \stoptext
> 
> works ok here; nothing was changed in that code
>
same here. try the attached (old) example. works with pdftex, breaks
with luatex.

> -----------------------------------------------------------------
>                                            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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> 

\setupoutput[pdftex]
\setupinteraction[state=start]
\setupcolors[state=start]

\starttext

\tracefieldstrue

\switchtobodyfont[96pt]

\def\FS#1{\framed[width=4cm,height=4cm,strut=no]{\red\bf#1}}%

\definesymbol [empty]   []

\definesymbol [one]     [\FS{1}]
\definesymbol [two]     [\FS{2}]
\definesymbol [three]   [\FS{3}]
\definesymbol [four]    [\FS{4}]
\definesymbol [five]    [\FS{5}]


\setupfield[interaction]
  [width=4cm,height=4cm,
%   frame=off,
   framecolor=blue,
   offset=none,% default offset causes different positioning of walk button and 
fieldstack
   clickin=JS(Walk_Field{sequence})]

\definefield[Walk][check][interaction][empty][empty]


\definefieldstack[sequence]
  [one,two,three,four,five]
  [frame=off,
   offset=none,% default offset causes different positioning of walk button and 
fieldstack
  ]


\defineproperty[interaction][layer][title=interaction, state=start]


\vbox{\normaloffinterlineskip
\smashedvbox{\fieldstack[sequence]}%
%
\startproperty[interaction]%
\field[Walk]
\stopproperty%
}

\blank[2cm]
\showfields

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

Reply via email to