On Fri, Sep 14, 2012 at 11:50 PM, Alessandro Perucchi <
alessan...@perucchi.org> wrote:

>
> On 14 Sep 2012, at 13:26, Wolfgang Schuster <wolfgang.schus...@gmail.com>
> wrote:
>
> >
> > Am 14.09.2012 um 00:08 schrieb Alessandro Perucchi <
> alessan...@perucchi.org>:
> >
> >> Hello,
> >>
> >> In my experimentation, I've found that in mkii and mkiv the behavior of
> \textrule and \setuptextrule are different...
> >>
> >> What I did was quite simple:
> >>
> >> \textrule{Testing head}
> >> blah blah blah
> >> \textrule
> >>
> >> in mkii the text in well centered between the lines.
> >> But in mkiv the bottom line is too near the text, and I need to add
> something like \blank[halfline] to have a similar behavior as mkii.
> >
> > There is a vertical skip missing in the MkIV version of the macros.
> >
> > pack-mrl.mkiv
> >
> > \def\pack_textrule_following#1%
> >  {\doifelsenothing{#1}
> > -    {\nointerlineskip
> > +
>  
> {\vskip\dimexpr\strutdp+.5ex\ifdim\prevdepth>\strutdp\else\ifdim\prevdepth>\zeropoint-\prevdepth\fi\fi\relax
> > +     \nointerlineskip
> >      \dontleavehmode\vbox
> >        {\color[\directtextrulesparameter\c!rulecolor]
> >
> {\hrule\s!depth\directtextrulesparameter\c!rulethickness\s!height\zeropoint\s!width\availablehsize}}}
> >     {\pack_textrule_with_text{#1}}%
> >   \ifvmode
> >     \prevdepth\zeropoint
> >   \fi}
>
>
> I've tried to patch pack-mrl.mkiv and I still get the error of spacing
> before the second \textrule.
>
> have you regenerated the format ?

-- 
luigi
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to