ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \high and \low trouble
@ 2000-05-24  8:10 Peter Jander
  2000-05-24  8:54 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Jander @ 2000-05-24  8:10 UTC (permalink / raw)


<color><param>0100,0100,0100</param>Hi,

I  noticed that the \high{} and \low{} commands produce some 
strange results when they are typeset at the beginning on a line.

For example:

\starttext

ok \low{1}

\low{2}not good

\hairline\high{3}G

\stoptext<FontFamily><param>Courier New</param>

<FontFamily><param>Arial</param>Here the 1 will be ok, whereas there seems to be  a \crlf inserted 
after the 2 and 3.

Does this happen to anyone else or is it just my installation of 
Context? I am running ver 2000.3.30 fmt 2000.5.9 english.

Thanks for any ideas,

Peter

<nofill>
Peter Jander                       Tel ++44 (0)23 8059 2194
Optoelectronics Research Centre    Fax ++44 (0)23 8059 3142
University of Southampton
Southampton SO17 1BJ
United Kingdom


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

* Re: \high and \low trouble
  2000-05-24  8:10 \high and \low trouble Peter Jander
@ 2000-05-24  8:54 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2000-05-24  8:54 UTC (permalink / raw)
  Cc: ntg-context

At 08:10 AM 5/24/2000 GMT, Peter Jander wrote:

>I  noticed that the \high{} and \low{} commands produce some  strange
>results when they are typeset at the beginning on a line.
>For example:
>
>\starttext
>ok \low{1}
>\low{2}not good
>
>\hairline\high{3}G
>\stoptext
>
>Here the 1 will be ok, whereas there seems to be  a \crlf inserted  after
>the 2 and 3.
>
>Does this happen to anyone else or is it just my installation of  Context?
>I am running ver 2000.3.30 fmt 2000.5.9 english.

This is related to the way tex enters hmode. One way out is prefixing with
\noindent or \indent or (dangerous) \leavevmode. Long ago it has taken me
quite some time to find out that \dontleavehmode is the most acceptable,
since it still obeys indentation, and does not spoil whitespace. 

For the moment, add this to your local cont-new.tex file: 

\let\normalhigh\high \def\high{\dontleavehmode\normalhigh}
\let\normalhigh\low  \def\low {\dontleavehmode\normallow }
\let\normalhigh\lohi \def\lohi{\dontleavehmode\normallohi}

Hans 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------


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

end of thread, other threads:[~2000-05-24  8:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-24  8:10 \high and \low trouble Peter Jander
2000-05-24  8:54 ` 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).