![](https://secure.gravatar.com/avatar/d39338246f50cca667c8256c313d7cfd.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/d39338246f50cca667c8256c313d7cfd.jpg?s=120&d=mm&r=g)
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
participants (2)
-
Marco Patzer
-
Wolfgang Schuster