From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: question about the layer.
Date: Tue, 28 May 2013 22:41:30 +0200 [thread overview]
Message-ID: <F97AED62-9A7B-4AA9-8FA4-F4A2BD141E10@gmail.com> (raw)
In-Reply-To: <8A7711AF-C626-4E25-9D99-E05951DF5AF8@me.com>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2013-05-28 20:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-28 13:08 Jeong Dal
2013-05-28 20:41 ` Wolfgang Schuster [this message]
2013-05-29 8:42 Jeong Dal
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=F97AED62-9A7B-4AA9-8FA4-F4A2BD141E10@gmail.com \
--to=schuster.wolfgang@gmail.com \
--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).