ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Peter Rolf <indiego@gmx.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: luatex and interaction
Date: Tue, 07 Aug 2007 21:39:30 +0200	[thread overview]
Message-ID: <46B8CA72.4050606@gmx.net> (raw)
In-Reply-To: <46B8C6C4.1070809@wxs.nl>

[-- Attachment #1: Type: text/plain, Size: 2522 bytes --]

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


[-- Attachment #2: walkfield.tex --]
[-- Type: text/plain, Size: 1062 bytes --]

\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

[-- Attachment #3: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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	other threads:[~2007-08-07 19:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-07 15:42 Peter Rolf
2007-08-07 19:23 ` Hans Hagen
2007-08-07 19:39   ` Peter Rolf [this message]
2007-08-07 20:23     ` Hans Hagen
2007-08-07 20:38       ` Peter Rolf
2008-04-07  9:59 Jean Magnan de Bornier
2008-04-07 12:25 ` Taco Hoekwater
2008-04-08 11:32   ` Jean Magnan de Bornier
2008-04-08 11:39     ` Taco Hoekwater
2008-04-08 12:22       ` Jean Magnan de Bornier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46B8CA72.4050606@gmx.net \
    --to=indiego@gmx.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).