* question about the layer.
@ 2013-05-28 13:08 Jeong Dal
2013-05-28 20:41 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Jeong Dal @ 2013-05-28 13:08 UTC (permalink / raw)
To: ntg-context
Dear Wolfgang,
I read your detailed explanation about the difference between "overlay" and "layer".
Here is your sample code using layer.
\starttext
\definelayer[test]
\setlayer[test][x=3cm,y=6cm]{ONE}
\setlayer[test][x=8cm,y=2cm]{TWO}
\setlayer[test][x=2cm,y=9cm]{THREE}
\flushlayer[test]
\stoptext
It shows ONE, TWO, and THREE in the same page.
I'd like to show each word one by one when I click, so I tested the following code.
\setupinteraction[state=start]
\usemodule[pre-60]
\starttext
\definelayer[test1]
\definelayer[test2]
\definelayer[test3]
\setlayer[test1][x=3cm,y=6cm]{ONE}
\setlayer[test2][x=8cm,y=2cm]{TWO}
\setlayer[test3][x=2cm,y=9cm]{THREE}
\StartSteps
\flushlayer[test1] \FlushStep
\flushlayer[test2] \FlushStep
\flushlayer[test3] \FlushStep
\StopSteps
\stoptext
This code produces 3 page output one word per each page. There is no need to click the mouse.
I may misunderstand about the layer.
However, is there a way to show each word one by one in the same page when I click.
Best regards,
Thank you.
Dalyoung
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: question about the layer.
2013-05-28 13:08 question about the layer Jeong Dal
@ 2013-05-28 20:41 ` Wolfgang Schuster
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2013-05-28 20:41 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 28.05.2013 um 15:08 schrieb Jeong Dal <haksan@me.com>:
> Dear Wolfgang,
>
> I read your detailed explanation about the difference between "overlay" and "layer".
>
> Here is your sample code using layer.
>
> \starttext
>
> \definelayer[test]
>
> \setlayer[test][x=3cm,y=6cm]{ONE}
> \setlayer[test][x=8cm,y=2cm]{TWO}
> \setlayer[test][x=2cm,y=9cm]{THREE}
>
> \flushlayer[test]
>
> \stoptext
>
> It shows ONE, TWO, and THREE in the same page.
>
> I'd like to show each word one by one when I click, so I tested the following code.
>
> \setupinteraction[state=start]
> \usemodule[pre-60]
> \starttext
> \definelayer[test1]
> \definelayer[test2]
> \definelayer[test3]
> \setlayer[test1][x=3cm,y=6cm]{ONE}
> \setlayer[test2][x=8cm,y=2cm]{TWO}
> \setlayer[test3][x=2cm,y=9cm]{THREE}
> \StartSteps
> \flushlayer[test1] \FlushStep
> \flushlayer[test2] \FlushStep
> \flushlayer[test3] \FlushStep
> \StopSteps
> \stoptext
>
> This code produces 3 page output one word per each page. There is no need to click the mouse.
> I may misunderstand about the layer.
>
> However, is there a way to show each word one by one in the same page when I click.
\setupinteraction[state=start]
\usemodule[pre-60]
\definelayer[test]
\starttext
\StartSteps
\setlayer[test][x=3cm,y=6cm]{ONE}\FlushStep
\setlayer[test][x=8cm,y=2cm]{TWO}\FlushStep
\setlayer[test][x=2cm,y=9cm]{THREE}\FlushStep
\StopSteps
\flushlayer[test]
\stoptext
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: question about the layer.
@ 2013-05-29 8:42 Jeong Dal
0 siblings, 0 replies; 3+ messages in thread
From: Jeong Dal @ 2013-05-29 8:42 UTC (permalink / raw)
To: ntg-context
Dear Wolfgang,
Thank you for your solution.
It works well.
Best regards,
Dalyoung
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-05-29 8:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-28 13:08 question about the layer Jeong Dal
2013-05-28 20:41 ` Wolfgang Schuster
2013-05-29 8:42 Jeong Dal
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).