![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------