[NTG-context] wrong vertical spacing in latest beta

Pablo Rodriguez oinos at gmx.es
Thu Apr 16 22:20:11 CEST 2015


On 04/16/2015 09:51 PM, Hans Hagen wrote:
> On 4/16/2015 6:50 PM, Pablo Rodriguez wrote:
>> [...]
>> 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

Many thanks for your help, Hans.

I have seen strut in the past, but I’m afraid that I don’t know what it
may be or what I can use it for (besides your sample).

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk


More information about the ntg-context mailing list