[NTG-context] (no subject)

Otared Kavian otared at gmail.com
Sat Jul 16 11:28:59 CEST 2016


Hi Fabrice,

Indeed you can place your float a little bit higher in th emargin, as in the example below, by using the keyword « high ».

Best regrads: Otared K.
% begin fabrice-inmargin.tex
\setuplayout
  [width=13cm,
   rightmargin=5cm]

\setupbodyfont[pagella,11pt]

\definefloat
   [recipe]
   [figure]
 
\setupfloat
   [recipe]
   [default={rightmargin,none,high}]

\setupframed
  [frame=on,
   width=\rightmarginwidth,
   align=justify,
   offset=2pt,
   location=low,
   rulethickness=1pt,
   framecolor=darkred,
   corner=00]

\showgrid
\showframe

\starttext

A\\ B \\ C
\placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}}

\input ward.tex

\setupfloat
   [recipe]
   [default={rightmargin,none,low}]

A\\ B \\ C
\placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}}

\stoptext
% end fabrice-inmargin.tex

> On 16 Jul 2016, at 00:44, Fabrice Couvreur <fabrice1.couvreur at gmail.com> wrote:
> 
> Hi Kavian (your first name ?)
> Thank you for your suggestion but it is still a little problem: why the baseline of the framed is the thirdA and not the first ?
> thank you,
> Fabrice
> 
> \useMPlibrary [dum]
> 
> \setuplayout
>   [width=13cm,
>    rightmargin=5cm]
>   
> 
> \setupbodyfont[pagella,11pt]
> 
> \definefloat
>    [recipe]
>    [figure]
>  
> \setupfloat
>    [recipe]
>    [default={rightmargin,none}]
> 
> \setupframed
>   [frame=on,
>    width=\rightmarginwidth,
>    align=justify,
>    offset=2pt,
>    location=low,
>    rulethickness=1pt,
>    framecolor=darkred,
>    corner=00]
> 
> \starttext
> 
> \showframe
> 
> 
> A\\A\\A
> \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}}
> 
> 
> 
> \stoptext



More information about the ntg-context mailing list