ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] viewer layers (optional content groups, OCG)
@ 2023-06-19 18:41 Henning Hraban Ramm via ntg-context
  2023-06-22 16:07 ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2023-06-19 18:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Henning Hraban Ramm

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-06-23 18:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-19 18:41 [NTG-context] viewer layers (optional content groups, OCG) Henning Hraban Ramm via ntg-context
2023-06-22 16:07 ` Hans Hagen via ntg-context
2023-06-23 18:21   ` Pablo Rodriguez via ntg-context

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).