* thousand separator space
@ 2022-11-21 20:01 Jan Willem Flamma via ntg-context
2022-11-21 22:08 ` Max Chernoff via ntg-context
0 siblings, 1 reply; 4+ messages in thread
From: Jan Willem Flamma via ntg-context @ 2022-11-21 20:01 UTC (permalink / raw)
To: ntg-context; +Cc: Jan Willem Flamma
Dear list,
Two silly short questions.
Why is there an additional space after the thousand separator in math mode?
And what can I do to get rid of the additional space?
\starttext
1,000
\blank
$1,000$
\stoptext
Kind regards,
Jan Willem Flamma
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: thousand separator space
2022-11-21 20:01 thousand separator space Jan Willem Flamma via ntg-context
@ 2022-11-21 22:08 ` Max Chernoff via ntg-context
2022-11-22 7:58 ` Henning Hraban Ramm via ntg-context
0 siblings, 1 reply; 4+ messages in thread
From: Max Chernoff via ntg-context @ 2022-11-21 22:08 UTC (permalink / raw)
To: ntg-context; +Cc: Max Chernoff
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: thousand separator space
2022-11-21 22:08 ` Max Chernoff via ntg-context
@ 2022-11-22 7:58 ` Henning Hraban Ramm via ntg-context
2022-11-23 14:49 ` Jan Willem Flamma via ntg-context
0 siblings, 1 reply; 4+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2022-11-22 7:58 UTC (permalink / raw)
To: ntg-context; +Cc: Henning Hraban Ramm
Am 21.11.22 um 23:08 schrieb Max Chernoff via ntg-context:
> 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.
Use \digits:
https://wiki.contextgarden.net/Command/digits
Hraban
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: thousand separator space
2022-11-22 7:58 ` Henning Hraban Ramm via ntg-context
@ 2022-11-23 14:49 ` Jan Willem Flamma via ntg-context
0 siblings, 0 replies; 4+ messages in thread
From: Jan Willem Flamma via ntg-context @ 2022-11-23 14:49 UTC (permalink / raw)
To: ntg-context; +Cc: Jan Willem Flamma
Thank you both.
On 22-11-2022 08:58, Henning Hraban Ramm via ntg-context wrote:
> Am 21.11.22 um 23:08 schrieb Max Chernoff via ntg-context:
>
>> 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.
>
> Use \digits:
> https://wiki.contextgarden.net/Command/digits
>
> Hraban
>
> ___________________________________________________________________________________
>
> 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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-11-23 14:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-21 20:01 thousand separator space Jan Willem Flamma via ntg-context
2022-11-21 22:08 ` Max Chernoff via ntg-context
2022-11-22 7:58 ` Henning Hraban Ramm via ntg-context
2022-11-23 14:49 ` Jan Willem Flamma via ntg-context
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).