From: Henning Hraban Ramm via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Henning Hraban Ramm <texml@fiee.net>
Subject: [NTG-context] viewer layers (optional content groups, OCG)
Date: Mon, 19 Jun 2023 20:41:18 +0200 [thread overview]
Message-ID: <30a2f8bb-2e10-8801-3660-e6cfcec4197e@fiee.net> (raw)
Checking viewer layers:
* \setupviewerlayer doesn’t work; e.g. "state=stop" only works if I put
it in \defineviewerlayer
* visible=no has no effect
* what are the options tag/name supposed to do?
(https://wiki.contextgarden.net/Viewer_Layers)
* known problem: only Acrobat supports JS to control OCGs
(\overlayrollbutton in the MWE)
Hraban
\setupinteraction[state=start]% needed for JS
\defineviewerlayer[Gebuesch][
state=stop,
]
\defineviewerlayer[Versteck]
\setupviewerlayer[Versteck][ % doesn’t work
state=stop,
]
\starttext
Hier fängt der Wald an.
\startviewerlayer[Gebuesch]
Hier versteckt sich ein Wolf...
\stopviewerlayer
Bäume, Bäume, Bäume...
\viewerlayer[Gebuesch]{... und ein Rotkehlchen}
\startviewerlayer[Versteck]Rumpelwicht\stopviewerlayer
\defineoverlay[MitVersteck]
[{\overlayrollbutton[VideLayer{Versteck}][HideLayer{Versteck}]}]
\framed[background=MitVersteck]{Kummst du mul kuckn?}
\stoptext
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2023-06-19 18:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-19 18:41 Henning Hraban Ramm via ntg-context [this message]
2023-06-22 16:07 ` Hans Hagen via ntg-context
2023-06-23 18:21 ` Pablo Rodriguez via ntg-context
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=30a2f8bb-2e10-8801-3660-e6cfcec4197e@fiee.net \
--to=ntg-context@ntg.nl \
--cc=texml@fiee.net \
/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).