[NTG-context] \blackrule and margin

Otared Kavian otared at gmail.com
Tue Feb 23 13:54:59 CET 2021


Hi Uschi,

You may add \dontleavehmode at the right place as in the following:

\setuppapersize[A8,landscape]
\setuplayout[leftmargin=2.5cm,
             leftmargindistance=0.2cm,
             backspace=2.9cm,
             width=4cm]
\showframe
\starttext
\margintext{\hairline\\{Me}}\dontleavehmode\hairline
\startformula
a^n + b^n = c^n.
\stopformula
\stoptext

Best regards: Otared

> On 23 Feb 2021, at 11:28, Ursula Hermann <ursula.hermann at univie.ac.at> wrote:
> 
> Dear Pablo!
> 
> I have done some changes. How can I get both hairlines in the same height: 
> 
> \setuppapersize[A8,landscape]
> \setuplayout[leftmargin=2.5cm,
>              leftmargindistance=0.2cm,
>              backspace=2.9cm,
>              width=4cm]
> \showframe
> \starttext
> \margintext{\hairline\\{Me}}
> \hairline
> \startformula
> a^n + b^n = c^n.
> \stopformula
> \stoptext
> 
> Thank you
> Uschi 
> 
> 
> 
> Von: ntg-context <ntg-context-bounces at ntg.nl> im Auftrag von Pablo Rodriguez <oinos at gmx.es>
> Gesendet: Freitag, 19. Februar 2021 16:41
> An: ntg-context at ntg.nl
> Betreff: Re: [NTG-context] \blackrule and margin
>  
> On 2/19/21 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. 
> 
> Hi Uschi,
> 
> I don’t know whether this is similar to whay you might intend:
> 
> \setuppapersize[A8,landscape]
> \setuplayout[leftmargin=2.5cm,
>              leftmargindistance=0.2cm,
>              backspace=2.9cm,
>              width=4cm]
> \showframe
> \starttext
> \blackrule
> \margintext{\blackrule[color=black, height=0.5ex, width=1cm]\\Me}
> \startformula
> a^n + b^n = c^n.
> \stopformula
> \stoptext
> 
> BTW, it isn’t also clear to me whether the formula is part of your
> document or not.
> 
> Just in case it helps,
> 
> Pablo
> --
> http://www.ousia.tk
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________



More information about the ntg-context mailing list