* Fwd: issue: multiple viewer layers
[not found] <CANJfosGOB7SLzH+eamnj4ELqEx=SZCBp3Wm0rH=Pq6_jSfdXzw@mail.gmail.com>
@ 2019-01-07 14:37 ` User 19087
2019-01-07 18:10 ` Hans Hagen
2019-01-09 5:46 ` User 19087
0 siblings, 2 replies; 3+ messages in thread
From: User 19087 @ 2019-01-07 14:37 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 1242 bytes --]
Layers are not properly closed when using more than one layer, so that each
layer subsumes all subsequent content. Tested in Adobe Reader 11. I first
mentioned this at https://tex.stackexchange.com/a/467005/174577, so I'm
basically rehashing all the examples:
When \showallmakeup is enabled, all content after \viewerlayer[print]
belongs to that layer:
\defineviewerlayer[print][state=stop,printable=yes,]
\showallmakeup
\starttext
\viewerlayer[print]{One} more.
\samplefile{knuth}
\stoptext
The same problem as above, demonstrated with \start...stopviewerlayer
rather than \viewerlayer:
\defineviewerlayer[print][state=stop,printable=yes,]
\showallmakeup
\starttext
\startviewerlayer[print]
And then:
\stopviewerlayer
\samplefile{knuth}
\stoptext
Rather than two independent layers, the print layer (along with other
content) belongs to the view layer. So hiding the view layer hides all
content in this document:
[view]
--- first
--- \samplefile{knuth}
--- [print]
------ second
\defineviewerlayer[print][state=stop,printable=yes,]
\defineviewerlayer[view][state=start,printable=no,]
\starttext
\startviewerlayer[view]{first}
\samplefile{knuth}
\startviewerlayer[print]{second}
\stoptext
[-- Attachment #1.2: Type: text/html, Size: 1575 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Fwd: issue: multiple viewer layers
2019-01-07 14:37 ` Fwd: issue: multiple viewer layers User 19087
@ 2019-01-07 18:10 ` Hans Hagen
2019-01-09 5:46 ` User 19087
1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2019-01-07 18:10 UTC (permalink / raw)
To: mailing list for ConTeXt users, User 19087
On 1/7/2019 3:37 PM, User 19087 wrote:
> Layers are not properly closed when using more than one layer, so that
> each layer subsumes all subsequent content. Tested in Adobe Reader 11. I
> first mentioned this at https://tex.stackexchange.com/a/467005/174577,
> so I'm basically rehashing all the examples:
>
> When \showallmakeup is enabled, all content after \viewerlayer[print]
> belongs to that layer:
probably because it gets applied at a different stage ... but it's a
tracing feature so normally not used with other layers
> \defineviewerlayer[print][state=stop,printable=yes,]
> \defineviewerlayer[view][state=start,printable=no,]
> \starttext
> \startviewerlayer[view]{first}
> \samplefile{knuth}
> \startviewerlayer[print]{second}
> \stoptext
missing \stop's there .. the next at first sight looks ok here so what
version are you running?
\nopdfcompression
\defineviewerlayer[one]
\defineviewerlayer[two]
\noheaderandfooterlines
\starttext
\startlines
BEFORE LAYER
\startviewerlayer[one]
INSIDE LAYER ONE
\startviewerlayer[two]
INSIDE LAYER ONE AND TWO
\stopviewerlayer
INSIDE LAYER ONE
\stopviewerlayer
AFTER LAYER
\stoplines
\stoptext
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: issue: multiple viewer layers
2019-01-07 14:37 ` Fwd: issue: multiple viewer layers User 19087
2019-01-07 18:10 ` Hans Hagen
@ 2019-01-09 5:46 ` User 19087
1 sibling, 0 replies; 3+ messages in thread
From: User 19087 @ 2019-01-09 5:46 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 102 bytes --]
You're right, my example was broken. With \stops it works as intended, as
does your example.
Thanks,
[-- Attachment #1.2: Type: text/html, Size: 158 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-01-09 5:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CANJfosGOB7SLzH+eamnj4ELqEx=SZCBp3Wm0rH=Pq6_jSfdXzw@mail.gmail.com>
2019-01-07 14:37 ` Fwd: issue: multiple viewer layers User 19087
2019-01-07 18:10 ` Hans Hagen
2019-01-09 5:46 ` User 19087
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).