* Re: Question to covers [not found] <20180728081230.GA31599@akela.mendelu.cz> @ 2018-07-28 9:15 ` Henning Hraban Ramm 2018-07-28 10:01 ` Henning Hraban Ramm 0 siblings, 1 reply; 4+ messages in thread From: Henning Hraban Ramm @ 2018-07-28 9:15 UTC (permalink / raw) To: Tomas Hala, mailing list for ConTeXt users Am 2018-07-28 um 10:12 schrieb Tomas Hala <tomas.hala@mendelu.cz>: > 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 ___________________________________________________________________________________ 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] 4+ messages in thread
* Re: Question to covers 2018-07-28 9:15 ` Question to covers Henning Hraban Ramm @ 2018-07-28 10:01 ` Henning Hraban Ramm 2018-07-28 10:30 ` Wolfgang Schuster 0 siblings, 1 reply; 4+ messages in thread From: Henning Hraban Ramm @ 2018-07-28 10:01 UTC (permalink / raw) To: mailing list for ConTeXt users Am 2018-07-28 um 11:15 schrieb Henning Hraban Ramm <texml@fiee.net>: > Am 2018-07-28 um 10:12 schrieb Tomas Hala <tomas.hala@mendelu.cz>: >> 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 ___________________________________________________________________________________ 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] 4+ messages in thread
* Re: Question to covers 2018-07-28 10:01 ` Henning Hraban Ramm @ 2018-07-28 10:30 ` Wolfgang Schuster 2018-07-28 11:03 ` Viewer layers (was: Question to covers) Henning Hraban Ramm 0 siblings, 1 reply; 4+ messages in thread From: Wolfgang Schuster @ 2018-07-28 10:30 UTC (permalink / raw) To: mailing list for ConTeXt users, Henning Hraban Ramm Henning Hraban Ramm schrieb am 28.07.18 um 12:01: > Am 2018-07-28 um 11:15 schrieb Henning Hraban Ramm <texml@fiee.net>: > >> Am 2018-07-28 um 10:12 schrieb Tomas Hala <tomas.hala@mendelu.cz>: >>> 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?). You have to put the viewerlayer command within the the \setlayer argument. Wolfgang ___________________________________________________________________________________ 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] 4+ messages in thread
* Re: Viewer layers (was: Question to covers) 2018-07-28 10:30 ` Wolfgang Schuster @ 2018-07-28 11:03 ` Henning Hraban Ramm 0 siblings, 0 replies; 4+ messages in thread From: Henning Hraban Ramm @ 2018-07-28 11:03 UTC (permalink / raw) To: mailing list for ConTeXt users Am 2018-07-28 um 12:30 schrieb Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>: >> 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=viewerlayer 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 ___________________________________________________________________________________ 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] 4+ messages in thread
end of thread, other threads:[~2018-07-28 11:03 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <20180728081230.GA31599@akela.mendelu.cz> 2018-07-28 9:15 ` Question to covers Henning Hraban Ramm 2018-07-28 10:01 ` Henning Hraban Ramm 2018-07-28 10:30 ` Wolfgang Schuster 2018-07-28 11:03 ` Viewer layers (was: Question to covers) Henning Hraban Ramm
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).