ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: MKII & MKIV difference between \textrule
Date: Sat, 15 Sep 2012 00:12:27 +0200	[thread overview]
Message-ID: <CAG5iGsDeTjWtnmUczCV7t72Cmq6yj2GRYRRfMqSKvTrhi5Cn3w@mail.gmail.com> (raw)
In-Reply-To: <ADB07648-5EDF-4827-8F7C-B448BC6BBCA3@perucchi.org>


[-- Attachment #1.1: Type: text/plain, Size: 1512 bytes --]

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

>
> On 14 Sep 2012, at 13:26, Wolfgang Schuster <wolfgang.schuster@gmail.com>
> wrote:
>
> >
> > Am 14.09.2012 um 00:08 schrieb Alessandro Perucchi <
> alessandro@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

[-- Attachment #1.2: Type: text/html, Size: 2207 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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	other threads:[~2012-09-14 22:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-13 22:08 Alessandro Perucchi
2012-09-14 11:26 ` Wolfgang Schuster
2012-09-14 21:50   ` Alessandro Perucchi
2012-09-14 22:12     ` luigi scarso [this message]
2012-09-15  6:31       ` Alessandro Perucchi
2012-09-15  7:28     ` Wolfgang Schuster
2012-09-15 10:00       ` Alessandro Perucchi
2012-09-15 10:23         ` Sietse Brouwer
2012-09-16 10:39   ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAG5iGsDeTjWtnmUczCV7t72Cmq6yj2GRYRRfMqSKvTrhi5Cn3w@mail.gmail.com \
    --to=luigi.scarso@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).