Re: [NTG-context] Question to covers
Am 2018-07-28 um 10:12 schrieb Tomas Hala
Hi Hraban, Wolfgang and Hans, nobody else reacted so I am writing
Better keep this on the list.
Thanks to Hraban for the code and Wolfgang for its revision, it's a good material how to work with layers, measures (I'll inspire by it) etc.
You’re welcome.
1. Is a ConTeXt layer accepted as a whole in commercial Acrobat, or is it visible as a heap of small objects? Or is it "only" better for more comfortable manipulation in ConTeXt?
I don’t understand the question. A ConTeXt layer is not a PDF layer. All the objects are manipulatable in Acrobat Pro (or another PDF editor), there’s no grouping on the PDF level.
2. Is better to write it as much as possible at ConTeXt level (as Hraban or Wolfgang did), or is better to write it in lua? There is more than dozen measures... Also more computations are required and they are different for different kinds of covers (book bindings).
I guess it’s a matter of taste. Of course calculations are easier in Lua, but in my image placement macros I struggled a lot with numbers vs. measures/dimensions, regardless if in Lua or on the TeX level. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
Am 2018-07-28 um 11:15 schrieb Henning Hraban Ramm
Am 2018-07-28 um 10:12 schrieb Tomas Hala
: 1. Is a ConTeXt layer accepted as a whole in commercial Acrobat, or is it visible as a heap of small objects? Or is it "only" better for more comfortable manipulation in ConTeXt?
I don’t understand the question. A ConTeXt layer is not a PDF layer. All the objects are manipulatable in Acrobat Pro (or another PDF editor), there’s no grouping on the PDF level.
If you need PDF layers, there are "viewer layers" in ConTeXt: \defineviewerlayer[Ebene] \setupviewerlayer[Ebene][ state=start, visible=no, title=Test, ] \starttext Text \startviewerlayer[Ebene] {\bfa TOP SECRET} \stopviewerlayer More Text \stoptext AFAIK completely undocumented, I found them at http://source.contextgarden.net/tex/context/base/mkiv/attr-lay.mkiv while tracking effects/properties (where these were implemented first). While the example above works, I don’t get viewer layers in my current project, must investigate... And then, if the combination of ConTeXt layers and viewer layers works (\setlayer within \start/stopviewerlayer?). Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
Henning Hraban Ramm schrieb am 28.07.18 um 12:01:
Am 2018-07-28 um 11:15 schrieb Henning Hraban Ramm
: 1. Is a ConTeXt layer accepted as a whole in commercial Acrobat, or is it visible as a heap of small objects? Or is it "only" better for more comfortable manipulation in ConTeXt? I don’t understand the question. A ConTeXt layer is not a PDF layer. All the objects are manipulatable in Acrobat Pro (or another PDF editor),
Am 2018-07-28 um 10:12 schrieb Tomas Hala
: there’s no grouping on the PDF level. If you need PDF layers, there are "viewer layers" in ConTeXt: \defineviewerlayer[Ebene] \setupviewerlayer[Ebene][ state=start, visible=no, title=Test, ]
\starttext
Text
\startviewerlayer[Ebene] {\bfa TOP SECRET} \stopviewerlayer
More Text
\stoptext
AFAIK completely undocumented, I found them at http://source.contextgarden.net/tex/context/base/mkiv/attr-lay.mkiv while tracking effects/properties (where these were implemented first).
While the example above works, I don’t get viewer layers in my current project, must investigate... And then, if the combination of ConTeXt layers and viewer layers works (\setlayer within \start/stopviewerlayer?).
You have to put the viewerlayer command within the the \setlayer argument. Wolfgang
Am 2018-07-28 um 12:30 schrieb Wolfgang Schuster
AFAIK completely undocumented, I found them at http://source.contextgarden.net/tex/context/base/mkiv/attr-lay.mkiv while tracking effects/properties (where these were implemented first).
While the example above works, I don’t get viewer layers in my current project, must investigate... And then, if the combination of ConTeXt layers and viewer layers works (\setlayer within \start/stopviewerlayer?).
You have to put the viewerlayer command within the the \setlayer argument.
Thank you! I just found it in http://source.contextgarden.net/tex/context/base/mkiv/meta-ini.mkiv?search=v... Also created a wiki page: http://wiki.contextgarden.net/Viewer_Layers I still don’t get layers working in my big project. Thought it might be "scope=global", but that didn’t help. Are there any settings that might influence viewer layers? Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
participants (2)
-
Henning Hraban Ramm
-
Wolfgang Schuster