ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: John Culleton <john@wexfordpress.com>
Subject: Re: Non breaking small space
Date: Thu, 2 May 2002 10:12:00 -0400	[thread overview]
Message-ID: <200205021012.00082.john@wexfordpress.com> (raw)
In-Reply-To: <B8F4C41F.81FB%king@dircon.co.uk>

On Tuesday 30 April 2002 16:58, Nigel King wrote:
> In LaTeX there is \, which is a small space which does not break easily at
> the end of lines. It can be used as the space between say 10 and GHz.
> Obviously I could use units but that seems to be a bit of a sledgehammer to
> crack my nut. ConTeXt has |~| a small space but it breaks between lines. Is
> there any solution that I have missed.

Do you want it to break at eol or not?

You could try kerning, as in \kern .1667em (the definition of plain tex 
thinspace)

 Latex is based on TeX and the TeX primitives work.
You can even make it a macro as in:
\def\thinspace{\kern .1667 em} % (TeXBook p 352)

On the TeXBook p 96 it says that a kern is breakable if it is followed by 
glue. So to make it non-breakable try:

10\kern.1667em GHz.  

HTH 

John Culleton


  reply	other threads:[~2002-05-02 14:12 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-30 20:58 Nigel King
2002-05-02 14:12 ` John Culleton [this message]
2002-05-03 23:09   ` Nigel King
2002-05-06  0:09     ` Hans Hagen
2002-05-06 19:31       ` "LaTeX compatibility module" (was: Non breaking small space) Henning Hraban Ramm
2002-05-08  0:28         ` Idris Samawi Hamid
2002-05-08  8:59           ` Taco
2002-05-06  0:11   ` Non breaking small space Hans Hagen
2002-05-06 12:53     ` Eckhart Guthöhrlein
2002-05-06 12:58     ` John Culleton
2002-05-04 20:49 ` Patrick Gundlach
2002-05-05  0:20   ` Gamma bugs Idris Samawi Hamid
2002-05-05  1:46     ` defining environments Idris Samawi Hamid
2002-05-05 10:11       ` Henning Hraban Ramm
2002-05-05 11:32       ` Patrick Gundlach
2002-05-05 23:34     ` Gamma bugs Hans Hagen
2002-05-09 19:49 ` Non breaking small space 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=200205021012.00082.john@wexfordpress.com \
    --to=john@wexfordpress.com \
    /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).