Fwd: issue: multiple viewer layers
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
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 -----------------------------------------------------------------
You're right, my example was broken. With \stops it works as intended, as does your example. Thanks,
participants (2)
-
Hans Hagen
-
User 19087