Re: [NTG-context] thousand separator space
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 ___
Re: [NTG-context] thousand separator space
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 ___
Re: [NTG-context] thousand separator space
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 ___
[NTG-context] thousand separator space
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 ___