[NTG-context] \blackrule and margin

Hans Hagen j.hagen at xs4all.nl
Fri Feb 19 17:31:14 CET 2021


On 2/19/2021 4:02 PM, Ursula Hermann wrote:
> Dear List,
> i have the little following example:
> 
> \setuppapersize[A8,landscape]
> \setuplayout[leftmargin=2.5cm,
>               leftmargindistance=0.2cm,
>               backspace=2.9cm,
>               width=4cm]
> \showframe
> \starttext
> \blackrule
> \margintext{Me}
> \blackrule[color=black, height=0.5ex, width=1cm]
> \stoptext
> \startformula
> a^n + b^n = c^n.
> \stopformula
> \stoptext
> What i want is a\blackrule over the margintext, but i do not get what I 
> wantend.
\definemargindata  [MyInMargin][inleft]
\definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=fit]

\starttext
     \inmargin[][topframe=on,bottomframe=on,rulethickness=1pt,width=fit]{Me}
     \startformula
     a^n + b^n = c^n.
     \stopformula
     \blank[3*big]
     \MyInMargin{You}
     \startformula
     a^n + b^n = c^n.
     \stopformula
\stoptext


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


More information about the ntg-context mailing list