ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Max Chernoff via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Max Chernoff <mseven@telus.net>
Subject: Re: thousand separator space
Date: Mon, 21 Nov 2022 15:08:08 -0700	[thread overview]
Message-ID: <c71a474a192661f4c1527c04b3dfeed7f8935dd3.camel@telus.net> (raw)
In-Reply-To: <2208a96d-11e7-4110-e145-b3c3473a8ed3@gmail.com>


Hi Jan,


> Why is there an additional space after the thousand separator in math mode?

Because something like

   ${\mathbb N} = \{1,2,3,4,\dots\}$
   
would look quite bad without any space between the numbers.

(The technical reason is that commas have the math class \mathpunct,
meaning that TeX automatically adds a space after them. Adding the
braces converts it to \mathord, which doesn't add any spaces.)

> And what can I do to get rid of the additional space?

The TeXbook recommends that you wrap the comma in curly braces

   $x = 1{,}000$
   
but there's probably a ConTeXt \setupxxx command that would have the same
effect. 

Many European languages use the comma as a decimal separator, so I'd
generally recommend using a thinspace (\,) instead of a comma as a
thousands separator to avoid confusion. 

Thanks,
-- Max
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2022-11-21 22:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-21 20:01 Jan Willem Flamma via ntg-context
2022-11-21 22:08 ` Max Chernoff via ntg-context [this message]
2022-11-22  7:58   ` Henning Hraban Ramm via ntg-context
2022-11-23 14:49     ` Jan Willem Flamma via ntg-context

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=c71a474a192661f4c1527c04b3dfeed7f8935dd3.camel@telus.net \
    --to=ntg-context@ntg.nl \
    --cc=mseven@telus.net \
    /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).