[NTG-context] \fieldstack

2011-06-25 Thread Wolfgang Schuster
Hi, fieldstack based animations result in a broken PDF document. \setupinteraction[state=start] \starttext \definesymbol[one][\tt 1] \definesymbol[two][\tt 2] \definefieldstack[some][one,two] \defineoverlay[some][\overlaybutton{Walk{some}}] \framed[frame=off,background={foreground,some

Re: [NTG-context] \fieldstack

2011-06-25 Thread Hans Hagen
On 25-6-2011 1:59, Wolfgang Schuster wrote: \setupinteraction[state=start] \starttext \definesymbol[one][\tt 1] \definesymbol[two][\tt 2] \definefieldstack[some][one,two] \defineoverlay[some][\overlaybutton{Walk{some}}] \framed[frame=off,background={foreground,some}]{\fieldstack[some

Re: [NTG-context] \fieldstack with mkiv

2010-02-14 Thread Hans Hagen
On 13-2-2010 11:45, Peter Münster wrote: \setupinteraction[state=start] \definesymbol[step1][AAA] \definesymbol[step2][BBB] \definefieldstack[test][step1, step2] \starttext \fieldstack[test] Just click \goto{here}[JS(Walk_Field{test})] to walk through the fieldstack! \goto{(restart)}[JS

Re: [NTG-context] \fieldstack with mkiv

2010-02-14 Thread Wolfgang Schuster
Am 14.02.10 14:32, schrieb Hans Hagen: On 13-2-2010 11:45, Peter Münster wrote: \setupinteraction[state=start] \definesymbol[step1][AAA] \definesymbol[step2][BBB] \definefieldstack[test][step1, step2] \starttext \fieldstack[test] Just click \goto{here}[JS(Walk_Field{test})] to walk through

Re: [NTG-context] \fieldstack with mkiv

2010-02-14 Thread Hans Hagen
On 14-2-2010 17:45, Wolfgang Schuster wrote: Am 14.02.10 14:32, schrieb Hans Hagen: On 13-2-2010 11:45, Peter Münster wrote: \setupinteraction[state=start] \definesymbol[step1][AAA] \definesymbol[step2][BBB] \definefieldstack[test][step1, step2] \starttext \fieldstack[test] Just click \goto

Re: [NTG-context] \fieldstack with mkiv

2010-02-14 Thread Wolfgang Schuster
Am 14.02.10 19:16, schrieb Hans Hagen: new attempt the stepper did now work but why are the symbol names shown on the terminal here is a example from another file with more symbols (the symbols have the names 'go!symbol!...') fonts : using map file: lm-math

Re: [NTG-context] \fieldstack with mkiv

2010-02-14 Thread Hans Hagen
On 14-2-2010 20:12, Wolfgang Schuster wrote: Am 14.02.10 19:16, schrieb Hans Hagen: new attempt the stepper did now work but why are the symbol names shown on the terminal here is a example from another file with more symbols (the symbols have the names 'go!symbol!...') fonts : using map

[NTG-context] \fieldstack with mkiv

2010-02-13 Thread Peter Münster
Hello, What is needed to get \fieldstack working in mkiv? The following example works with mkii, but not with mkiv: \setupinteraction[state=start] \definesymbol[step1][AAA] \definesymbol[step2][BBB] \definefieldstack[test][step1, step2] \starttext \fieldstack[test] Just click \goto{here}[JS

Re: [NTG-context] Weird Fieldstack problem

2007-06-11 Thread Zhichu Chen
Hi Aditya, In my situation, I can't use buffer conveniently. So is there an easy way to \includeMPgraphic recurrently? I've tried \newcount\steps repeat the following block several times \advance\steps\plusone \startuseMPgraphics{step\the\steps} . .

[NTG-context] Weird Fieldstack problem

2007-06-08 Thread Zhichu Chen
draw (2cm,2cm)--(2cm,0); \stopMPdrawing \definesymbol[bb][\getMPdrawing] \startMPdrawing draw (0,0)--(2cm,0); \stopMPdrawing \definesymbol[cc][\getMPdrawing] \definefieldstack[somemap][aa,bb,cc][height=fit,width=fit,frame=on] \fieldstack[somemap] \goto{here} [JS(Walk_Field{somemap})] \stoptext

Re: [NTG-context] Weird Fieldstack problem

2007-06-08 Thread Aditya Mahajan
=on] \fieldstack[somemap] \goto{here} [JS(Walk_Field{somemap})] \stoptext == It seems that the fieldstack does not work. Is there anything wrong? I haven't tested this, but I think that all elements in the fieldstack should have the same bounding box. Look at the widget manual, where

Re: [NTG-context] Weird Fieldstack problem

2007-06-08 Thread Zhichu Chen
] \definefieldstack[somemap][aa,bb,cc][height=fit,width=fit,frame=on] \fieldstack[somemap] \goto{here} [JS(Walk_Field{somemap})] \stoptext == It seems that the fieldstack does not work. Is there anything wrong? I haven't tested this, but I think that all elements

Re: [NTG-context] Weird Fieldstack problem

2007-06-08 Thread Aditya Mahajan
Quoting Zhichu Chen [EMAIL PROTECTED]: Hi Aditya, Actually, they should have the same boundingbox, the first MPdrawing environment draws a line from (0,0) to (2cm,2cm) and the sequence MPdrawing environments just add two lines that are in the previous boundingbox. I know what's happening

Re: [NTG-context] Any idea about copy or clone fieldstack?

2006-10-19 Thread Peter Rolf
add something like \smashedhbox{\color[white]\YOURCLOCKFONT 0123456789:} to your document. This is all untested, so don't expect too much... But let me know if it works ;) Then I turned to use field stacks. I use MetaPost to draw some needles and use JS to set_Field the fieldstack

Re: [NTG-context] Any idea about copy or clone fieldstack?

2006-10-19 Thread Zhichu Chen
Thank you very much Peter On 10/19/06, Peter Rolf [EMAIL PROTECTED] wrote: Hi Chen,Have you tried the method described on page 402-403 of the Acrobat_javascript_ Scripting Reference ( AcroJS.pdf, 27.06.2005)? Search forUse of arbitrary fonts.If I understand it right, all you need is the *right

[NTG-context] Any idea about copy or clone fieldstack?

2006-10-17 Thread Zhichu Chen
don't know the font, and I don't know how to embed the font into pdf fileand make JS knows it. Then I turned to use field stacks. I use MetaPost to draw some needles and use JS to set_Field the fieldstack to the correct frame. But when I want to display the second clock, it seems that I should write

Re: [NTG-context] Fieldstack Walk

2006-04-22 Thread Peter Rolf
, 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

Re: [NTG-context] Fieldstack Walk

2006-04-19 Thread Peter Rolf
Thanks Sanjoy for pointing this out. Both problems are still *unfixed* (beta from 17.04). Unfortunately fixing them doesn't solve my problem. I'll try it again later. Maybe I was to tired yesterday to solve this and the error is on my side... Greets, Peter Sanjoy Mahajan wrote: there are still

Re: [NTG-context] Fieldstack Walk

2006-04-19 Thread Sanjoy Mahajan
From:Peter Rolf [EMAIL PROTECTED] Both problems are still *unfixed* (beta from 17.04). The one I pointed out doesn't have an obvious solution since (I think) the reserveobjnum spacing change breaks with pdftex 1.30 but is needed with pdftex 1.21. I guess the magic line could be wrapped in a

[NTG-context] Fieldstack Walk

2006-04-18 Thread Michal Kvasnička
Good morning. I use a fieldstack in my presentation. I'd like to go to the next frame when I click on the figure. I tried this: \definefieldstack[fgolds3] [sgolds1,sgolds3a,sgolds3b,sgolds3c,sgolds3] [frame=off,clickin=JS(Walk_Field{fgolds3})] \definesymbol[sgolds1][{\externalfigure[golds1

Re: [NTG-context] Fieldstack Walk

2006-04-18 Thread Peter Rolf
Michal Kvasnička wrote: Good morning. I use a fieldstack in my presentation. I'd like to go to the next frame when I click on the figure. I tried this: \definefieldstack[fgolds3] [sgolds1,sgolds3a,sgolds3b,sgolds3c,sgolds3] [frame=off,clickin=JS(Walk_Field{fgolds3})] \definesymbol

Re: [NTG-context] Fieldstack Walk

2006-04-18 Thread Peter Rolf
Hi Michal, Michal Kvasnička wrote: Hi Peter, thank for your answer, but it doesn't help. First, it seems the order is not important in ConTeXt. Second, the fieldstack works well. I can even make it walk with \goto{...}[JS(Walk_Field{fgolds3})]. The only thing that doesn't work is that I

Re: [NTG-context] Fieldstack Walk

2006-04-18 Thread Michal Kvasnička
Good afternoon. Many thanks, this solves the problem -- at least partially. The frames are `walking' now, but new problems appeared. I found that when I set `clickin=...', it is set it automatically to `clickout' as well, so one mouse click runs the JavaScript code twice. So I've set it this

Re: [NTG-context] Fieldstack Walk

2006-04-18 Thread Peter Rolf
it is invoked by \goto{...}[JS(...)], it works well. Moreover, it does different things at AdobeReader 7.x under Linux, and Acrobat 4.x under Windoze. Can you help me to solve it? Mhh, looks like you are going new ways with making the fieldstack interactive (maybe not intended?). Sorry, but I can't

Re: [NTG-context] Fieldstack Walk

2006-04-18 Thread Peter Rolf
, since when it is invoked by \goto{...}[JS(...)], it works well. Moreover, it does different things at AdobeReader 7.x under Linux, and Acrobat 4.x under Windoze. Can you help me to solve it? Mhh, looks like you are going new ways with making the fieldstack interactive (maybe not intended