[NTG-context] wrong vertical spacing in latest beta

Hans Hagen pragma at wxs.nl
Thu Apr 16 21:51:58 CEST 2015


On 4/16/2015 6:50 PM, Pablo Rodriguez wrote:
> Hans,
>
> this sample:
>
>      \showgrid
>      \setupbodyfont[30pt]
>      \starttext
>      {\tfa\setupinterlinespace \ConTeXt\par}\\
>      {\tfxx\setupinterlinespace Author\par}\\
>      {\tfxx\setupinterlinespace\currentdate\par}\\
>      {\tf\setupinterlinespace url\par}
>      \stoptext
>
> With either latest beta or beta from  2015.03.25 22:13, last line in the
> sample is on grid line number 3.
>
> With stable beta from TL14 (2014.05.21 22:04), last line from sample is
> after grid line 6.
>
> I’m afraid it might be a bug.

hm, more likely a fix (prevdepth or so)

\startbuffer[a]
     \ruledvbox{x\tfa \setupinterlinespace \strut \ConTeXt     \par 
\strut x\par}\blank
     \ruledvbox{x\tfxx\setupinterlinespace \strut Author       \par 
\strut x\par}\blank
     \ruledvbox{x\tfxx\setupinterlinespace \strut \currentdate \par 
\strut x\par}\blank
     \ruledvbox{x\tf  \setupinterlinespace \strut url          \par 
\strut x\par}\blank
\stopbuffer

\startbuffer[b]
     \ruledvbox{x\tfa \setupinterlinespace        \ConTeXt     \par 
x\par}\blank
     \ruledvbox{x\tfxx\setupinterlinespace        Author       \par 
x\par}\blank
     \ruledvbox{x\tfxx\setupinterlinespace        \currentdate \par 
x\par}\blank
     \ruledvbox{x\tf  \setupinterlinespace        url          \par 
x\par}\blank
\stopbuffer

\starttext
     \showstruts
     \getbuffer[a]
     \page
     \getbuffer[b]
\stoptext

you can use use \begstrut ... \endstrut in such local situations

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


More information about the ntg-context mailing list