Re: [NTG-context] Baseline and framed

2016-07-06 Thread Fabrice Couvreur
The following macro places the title right \unexpanded\def\HeadTitle#1#2% {\framed [frame=off, width=broad, align={broad,nothyphenated,left}] {#1\blank#2}} 2016-07-06 23:22 GMT+02:00 Fabrice Couvreur : > I wish the chapter title on right of the

Re: [NTG-context] Baseline and framed

2016-07-06 Thread Fabrice Couvreur
I wish the chapter title on right of the page. The numbering of the chapters is fixed at 0, why ? thank you, Fabrice ​ \unexpanded\def\HeadTitle#1#2% {\vbox \bgroup \setupframed[offset=0.5em,frame=off] \inframed[width=fit,align=right]{#1}% \inframed[width=fit,align=right]{#2}%

Re: [NTG-context] Baseline and framed

2016-07-06 Thread Fabrice Couvreur
Thank you Hans, the code would be : \unexpanded\def\HeadTitle#1#2% {\hbox to \hsize \bgroup \hfill \setupframed[offset=0.5em,frame=off] \inframed[width=fit,align=left,frame=off]{\darkred#1}% \inframed[width=fit,align=right,leftframe=on,rulethickness=4pt,framecolor=darkred]{#2}%

Re: [NTG-context] Baseline and framed

2016-07-06 Thread Hans Hagen
On 7/6/2016 1:37 PM, Fabrice Couvreur wrote: Hello, In the manual, there is the macro below. Why theword "Matrice" is not on the same baseline as the number "1" ? thank you, Fabrice \unexpanded\def\HeadTitle#1#2% {\hbox to \hsize \bgroup \setupframed[height=1cm,offset=0.5em,frame=on]

[NTG-context] Baseline and framed

2016-07-06 Thread Fabrice Couvreur
Hello, In the manual, there is the macro below. Why the word "Matrice" is not on the same baseline as the number "1" ? thank you, Fabrice \unexpanded\def\HeadTitle#1#2% {\hbox to \hsize \bgroup \setupframed[height=1cm,offset=0.5em,frame=on] \framed[width=fit,align=left]{\darkred#1}%