ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* extra spacing
@ 2002-12-10 10:25 Hans van der Meer
  2002-12-10 13:55 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Hans van der Meer @ 2002-12-10 10:25 UTC (permalink / raw)


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?

Hans van der Meer

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: extra spacing
  2002-12-10 10:25 extra spacing Hans van der Meer
@ 2002-12-10 13:55 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2002-12-10 13:55 UTC (permalink / raw)


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
-------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-12-10 13:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-10 10:25 extra spacing Hans van der Meer
2002-12-10 13:55 ` Hans Hagen

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).