* Presets in collectors
@ 2012-11-09 17:18 Marco Patzer
2012-11-10 7:30 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Marco Patzer @ 2012-11-09 17:18 UTC (permalink / raw)
To: context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Presets in collectors
2012-11-09 17:18 Presets in collectors Marco Patzer
@ 2012-11-10 7:30 ` Wolfgang Schuster
2012-11-10 11:26 ` Marco Patzer
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2012-11-10 7:30 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 09.11.2012 um 18:18 schrieb Marco Patzer <homerow@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Presets in collectors
2012-11-10 7:30 ` Wolfgang Schuster
@ 2012-11-10 11:26 ` Marco Patzer
0 siblings, 0 replies; 3+ messages in thread
From: Marco Patzer @ 2012-11-10 11:26 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-11-10 11:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-09 17:18 Presets in collectors Marco Patzer
2012-11-10 7:30 ` Wolfgang Schuster
2012-11-10 11:26 ` Marco Patzer
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).