[NTG-context] \setupmathematics oddity

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Sun Nov 20 22:49:52 CET 2022

Alan Bowen via ntg-context schrieb am 18.11.2022 um 23:48:
> The following
> \setupmathematics[autopunctuation={all,semicolon}]
> %\setupmathematics[autopunctuation={all, semicolon}]
> %\setupmathematics[autopunctuation={all,semicolon,colon}]
> \starttext
> \startformula
> 0,0;2,0,35,17,40,41\textdegree{} \cdot 365;15 \cdot 40 = 
> 2,9;23,14\textdegree{}.
> \stopformula
> \stoptext
> works as it should (no space after the “;” or the “,”).
> With the second and third versions of \setupmathematics there is an 
> unwanted space after each punctuation mark.

Even though it seems like the autopunctuation key accepts a list of 
values this isn't the case
at the moment. Only values from the following list are valid arguments 
for the key:

- yes
- no
- all
- comma
- yes,semicolon
- comma,semicolon
- all,semicolon

The reason for this is that values like "all,semicolon" are treated as 
keyword and the comma
is part of the keyword, this means you can't change the order of the 
words and even spaces
after the comma make the argument invalid.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20221120/2d7f04b8/attachment.htm>

More information about the ntg-context mailing list