[NTG-context] framedtext

Hans Hagen pragma at wxs.nl
Tue Mar 23 19:00:38 CET 2010


On 23-3-2010 13:34, Hans van der Meer wrote:
> I experience the following behaviour of framedtext in relation to
> inright and inleft.
> With \startframedtext[offset=value] the positioning of left and right
> margin inserts shifts with the size of 'value'.
>
> The next example shows the shift to the right of L2 and R2 (both mkii
> and mkiv). Change the offset to see the margin notes L2/R2 shift.
> \starttext
> \showframe[text,margin,edge]
> ABC
> \inright{\framed[width=10mm,height=5mm]{R1}}
> \inleft{\framed[width=10mm,height=5mm]{L1}}
> \startframedtext[offset=2cm]
> XYZ
> \inright{\framed[width=10mm,height=5mm]{R2}}
> \inleft{\framed[width=10mm,height=5mm]{L2}}
> \stopframedtext
> \stoptext
>
> Pictured:
> ...L1.|...................|.R1
> ......|.L2................|.....R2
> ......|...................|
> ......^...................^
> ^ = frame lines of showpage
>
> I wonder if this is correct behaviour. The margins are imho fixed areas,
> defined as the areas on the left/right of the textframe. One would
> expect the margin texts put just there, not influenced by something that
> happens to be placed in the text.
> Or am I amiss?

indeed ... inleft and inright use vadjust and that is somewhat special

i will come up with an alternative in mkiv

maybe \margintitle{...} works ok (delays till a paragraph)


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list