Re: [NTG-context] Presets in collectors
2012-11-10 Wolfgang Schuster: The collector macros aren’t based on layers. I don't know why I thought they were. What is the correct way to place a collector mid aligend underneath another? I manage to place them underneath left aligned using location={right, bottom}, corner=bottom and mid aligned as in the example below. However, I prefer not to adjust the distance manually. \setupbodyfont [12pt] \definecollector [mycollector] \setcollector [mycollector] {\framed[align=normal]{\input khatt-en\par}} %% this is the desired output, but without the manual adjustment \setcollector [mycollector] [location=bottom, corner=middle, %% voffset=.5\layerheight, %% no effect voffset=.8cm] {\framed[width=5cm,align=normal]{\input ward\par}} \flushcollector [mycollector] \starttext\null\stoptext Intuitively I would expect the following to work, but I guess the `middle` syntax is not supported or I am using it in the wrong way. \setcollector [mycollector] [corner={middle, bottom}, location={middle, bottom}] {\framed[width=5cm,align=normal]{\input ward\par}} Marco ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Presets in collectors
Hi! Is there a reason that presets don't work with collectors? Collectors are based on layers and that's what presets are made for, right? Bug or feature? \definecollector [mycollector] [width=\textwidth] \setcollector [mycollector] {\framed[width=5cm,height=2cm]{Foo}} \setcollector [mycollector] [preset=rightbottom]%% not recognized %% [corner={right, bottom}, %% works %% location={left, top}] {\framed{Bar}} \flushcollector [mycollector] \starttext\null\stoptext Marco ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Presets in collectors
Am 09.11.2012 um 18:18 schrieb Marco Patzer home...@lavabit.com: Hi! Is there a reason that presets don't work with collectors? Collectors are based on layers and that's what presets are made for, right? Bug or feature? The collector macros aren’t based on layers. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___