ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* math punctuation
@ 2001-09-05 16:09 Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2001-09-05 16:09 UTC (permalink / raw)


Hi,

Since math punctuation was on my todo list anyway, i added it to the core. 
Instead of the hard codes stuff, i made them proper math symbols.

By default we have now defined:

\startmathcollection[default]

   \definemathsymbol [mathperiod] [ord]   [mi] ["3A]
   \definemathsymbol [textperiod] [punct] [mi] ["3A]

   \definemathsymbol [mathcomma]  [ord]   [mi] ["3B]
   \definemathsymbol [textcomma]  [punct] [mi] ["3B]

\stopmathcollection

and:

\definemathpunctuation . mathperiod textperiod
\definemathpunctuation , mathcomma  textcomma

which means that

\enablemathpunctuation % can go into cont-sys.tex if needed

$(1,2) (1, 2) (1{,}2) \hbox {foo, bar}$

give the desired results.

This will be available in the next beta.

I think that adding ; and : also makes sense, but i first want to know what 
the french requirements are,

PS. For the real hackers among us: one can swap comma's and periods in math 
by saying

\definemathpunctuation . mathcomma  textperiod
\definemathpunctuation , mathperiod textcomma

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: math punctuation
@ 2001-09-05 20:52 Eckhart Guthöhrlein
  2001-09-06  6:50 ` Hans Hagen
  2001-09-06  7:54 ` Taco Hoekwater
  0 siblings, 2 replies; 4+ messages in thread
From: Eckhart Guthöhrlein @ 2001-09-05 20:52 UTC (permalink / raw)


At 18:09 05.09.2001 +0200, Hans Hagen wrote:

>PS. For the real hackers among us: one can swap comma's and periods in 
>math by saying
>
>\definemathpunctuation . mathcomma  textperiod
>\definemathpunctuation , mathperiod textcomma

Why should you? Well, I could imagine an existing input file with the wrong 
decimal sign, which could be changed in this way, provided all numbers are 
in math mode. If it could be of use for a normal user: What are you 
thinking of?

Eckhart


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-09-06  7:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-05 16:09 math punctuation Hans Hagen
2001-09-05 20:52 Eckhart Guthöhrlein
2001-09-06  6:50 ` Hans Hagen
2001-09-06  7:54 ` Taco Hoekwater

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).