* [NTG-context] Re: [External] Extra space in numbers
2024-07-16 5:01 [NTG-context] Extra space in numbers Shiv Shankar Dayal
@ 2024-07-15 23:50 ` Rogers, Michael K
2024-07-16 0:57 ` Hans Hagen
2024-07-16 0:48 ` [NTG-context] " Hans Hagen
1 sibling, 1 reply; 6+ messages in thread
From: Rogers, Michael K @ 2024-07-15 23:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 397 bytes --]
Hi,
Braces around the comma, $10{,}000$, works for me. It’s the plain TeX way. If there’s a way to set up mathematics in ConTeXt to do this, perhaps someone else will fill us in.
Michael
On Jul 15, 2024, at 10:01 PM, Shiv Shankar Dayal <shivshankar.dayal@gmail.com> wrote:
Suppose I have $10,000$ then in the output there is extra space after comma. How can I get rid of it?
[-- Attachment #1.2: Type: text/html, Size: 1582 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* [NTG-context] Re: Extra space in numbers
2024-07-16 5:01 [NTG-context] Extra space in numbers Shiv Shankar Dayal
2024-07-15 23:50 ` [NTG-context] Re: [External] " Rogers, Michael K
@ 2024-07-16 0:48 ` Hans Hagen
2024-07-16 8:32 ` Shiv Shankar Dayal
1 sibling, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2024-07-16 0:48 UTC (permalink / raw)
To: ntg-context
On 7/16/2024 7:01 AM, Shiv Shankar Dayal wrote:
> Dear Lits,
>
> Suppose I have $10,000$ then in the output there is extra space after
> comma. How can I get rid of it?
\setupmathematics[autopunctuation=yes]
$10,000$
$10, 000$
no | yes | all | comma | {yes,semicolon} | {all,semicolon}
see math manual for all kinds of control
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* [NTG-context] Re: [External] Extra space in numbers
2024-07-15 23:50 ` [NTG-context] Re: [External] " Rogers, Michael K
@ 2024-07-16 0:57 ` Hans Hagen
0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2024-07-16 0:57 UTC (permalink / raw)
To: ntg-context
On 7/16/2024 1:50 AM, Rogers, Michael K wrote:
> Hi,
> Braces around the comma, $10{,}000$, works for me. It’s the plain TeX
> way. If there’s a way to set up mathematics in ConTeXt to do this,
> perhaps someone else will fill us in.
in lmtx { } in math is just grouping, so no ordinary math atom is
created; also, digits have their own class which is hoe we control
inter-atom spacing
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* [NTG-context] Extra space in numbers
@ 2024-07-16 5:01 Shiv Shankar Dayal
2024-07-15 23:50 ` [NTG-context] Re: [External] " Rogers, Michael K
2024-07-16 0:48 ` [NTG-context] " Hans Hagen
0 siblings, 2 replies; 6+ messages in thread
From: Shiv Shankar Dayal @ 2024-07-16 5:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 148 bytes --]
Dear Lits,
Suppose I have $10,000$ then in the output there is extra space after
comma. How can I get rid of it?
--
Respect,
Shiv Shankar Dayal
[-- Attachment #1.2: Type: text/html, Size: 376 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* [NTG-context] Re: Extra space in numbers
2024-07-16 0:48 ` [NTG-context] " Hans Hagen
@ 2024-07-16 8:32 ` Shiv Shankar Dayal
2024-07-16 9:22 ` Hans Hagen
0 siblings, 1 reply; 6+ messages in thread
From: Shiv Shankar Dayal @ 2024-07-16 8:32 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1470 bytes --]
Much thanks, Hans. I am curious why this is not default behavior?
On Tue, Jul 16, 2024 at 6:20 AM Hans Hagen <j.hagen@xs4all.nl> wrote:
> On 7/16/2024 7:01 AM, Shiv Shankar Dayal wrote:
> > Dear Lits,
> >
> > Suppose I have $10,000$ then in the output there is extra space after
> > comma. How can I get rid of it?
> \setupmathematics[autopunctuation=yes]
>
> $10,000$
>
> $10, 000$
>
> no | yes | all | comma | {yes,semicolon} | {all,semicolon}
>
> see math manual for all kinds of control
>
> Hans
>
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
>
> ___________________________________________________________________________________
>
--
Respect,
Shiv Shankar Dayal
[-- Attachment #1.2: Type: text/html, Size: 2615 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* [NTG-context] Re: Extra space in numbers
2024-07-16 8:32 ` Shiv Shankar Dayal
@ 2024-07-16 9:22 ` Hans Hagen
0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2024-07-16 9:22 UTC (permalink / raw)
To: ntg-context
On 7/16/2024 10:32 AM, Shiv Shankar Dayal wrote:
> Much thanks, Hans. I am curious why this is not default behavior?
if could be(come) but we're not sure how it affects existing documents
tex has not really a concept of space and in math even less but in
luametatex we carry around some more info so there we can actually plug
into that and act upon it, meaning that in
1, 2
meaning
atom(1) atom(,) atom(2)
in our case the middle one among other things knows that it was followed
by a space or not. Also, in (1,2) one actually might want the space so
soem additional (lua) processing can be enabled to deal with that too.
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-07-16 9:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-16 5:01 [NTG-context] Extra space in numbers Shiv Shankar Dayal
2024-07-15 23:50 ` [NTG-context] Re: [External] " Rogers, Michael K
2024-07-16 0:57 ` Hans Hagen
2024-07-16 0:48 ` [NTG-context] " Hans Hagen
2024-07-16 8:32 ` Shiv Shankar Dayal
2024-07-16 9:22 ` 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).