ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \setupmathematics oddity
@ 2022-11-18 22:48 Alan Bowen via ntg-context
  2022-11-19 10:46 ` Henning Hraban Ramm via ntg-context
  2022-11-20 21:49 ` Wolfgang Schuster via ntg-context
  0 siblings, 2 replies; 3+ messages in thread
From: Alan Bowen via ntg-context @ 2022-11-18 22:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Alan Bowen


[-- Attachment #1.1: Type: text/plain, Size: 508 bytes --]

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.

Alan

[-- Attachment #1.2: Type: text/html, Size: 1322 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

___________________________________________________________________________________
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] 3+ messages in thread

* Re: \setupmathematics oddity
  2022-11-18 22:48 \setupmathematics oddity Alan Bowen via ntg-context
@ 2022-11-19 10:46 ` Henning Hraban Ramm via ntg-context
  2022-11-20 21:49 ` Wolfgang Schuster via ntg-context
  1 sibling, 0 replies; 3+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2022-11-19 10:46 UTC (permalink / raw)
  To: Alan Bowen via ntg-context; +Cc: Henning Hraban Ramm

Am 18.11.22 um 23:48 schrieb Alan Bowen via ntg-context:
> 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.

Oh, it’s a *space oddity*! :D (couldn’t resist)

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] 3+ messages in thread

* Re: \setupmathematics oddity
  2022-11-18 22:48 \setupmathematics oddity Alan Bowen via ntg-context
  2022-11-19 10:46 ` Henning Hraban Ramm via ntg-context
@ 2022-11-20 21:49 ` Wolfgang Schuster via ntg-context
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2022-11-20 21:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Alan Bowen via ntg-context
  Cc: Wolfgang Schuster


[-- Attachment #1.1: Type: text/plain, Size: 1074 bytes --]

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.

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 2090 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2022-11-20 21:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-18 22:48 \setupmathematics oddity Alan Bowen via ntg-context
2022-11-19 10:46 ` Henning Hraban Ramm via ntg-context
2022-11-20 21:49 ` Wolfgang Schuster 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).