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
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
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 -----------------------------------------------------------------
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 -----------------------------------------------------------------
Much thanks, Hans. I am curious why this is not default behavior?
On Tue, Jul 16, 2024 at 6:20 AM Hans Hagen
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
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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Rogers, Michael K
-
Shiv Shankar Dayal