ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: extra spacing
Date: Tue, 10 Dec 2002 14:55:33 +0100	[thread overview]
Message-ID: <5.1.0.14.1.20021210145308.00a04540@server-1> (raw)
In-Reply-To: <B3E17BBA-0C29-11D7-B710-003065568054@science.uva.nl>

At 11:25 AM 12/10/2002 +0100, you wrote:
>With math followed by a \crlf extra spacing is introduced in the math.
>For example:
>                 Test
>                 \crlf
>                 (1) inverse $b\rightarrow b^{-1}$
>                 \crlf
>                 (2) inverse $b\rightarrow b^{-1}$\hfill\null
>                 \crlf
>                 (3) inverse $b\rightarrow b^{-1}$
>
>In line (1) extra white is introduced around the white arrow.
>In line (2) the fix is given, allthough not a problem ii is a nuisance.
>In line (3) one sees it is the \crlf that lets the math expand because 
>here no extra white.
>
>Is this a feature or has this phenomenon escaped attention hitherto?

it's always hard to tell what is a feature, somehow there is quite some 
stretch around the arrow in math

the \crlf macro has to work ok in ragged(left|center|right) and i guess 
that you're using a ragged right text

you may try the following definition (case 3 \hfil added):

\unexpanded \def\crlf
   {\ifhmode\unskip\else\strut\fi\ifcase\raggedstatus\hfil\or\or\or\hfil\fi\break} 


let me know if this breaks other alignments

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

      reply	other threads:[~2002-12-10 13:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-10 10:25 Hans van der Meer
2002-12-10 13:55 ` Hans Hagen [this message]

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=5.1.0.14.1.20021210145308.00a04540@server-1 \
    --to=pragma@wxs.nl \
    --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).