![](https://secure.gravatar.com/avatar/755c9d886016029291ecbb4832c579dd.jpg?s=120&d=mm&r=g)
Hi ConTeXters, How can I get ConteXt to typeset numbers as it should be done in french in which we use a comma and not a point to separate units and decimals ? That is when I write \mathematics{5,3} I want to have 5,3 and not 5, 3 (with a small space between the comma and the 3), as it is when I use the english separator, a point. Cheers, Seb.
![](https://secure.gravatar.com/avatar/6af06dcf5f958fe4ec149408292d6acd.jpg?s=120&d=mm&r=g)
Hi Sebastian, Ii can not explain why one gets the strange spacing. However there is a command \Digits, where you get precisely what you want. Please have a look at the enclosed code. Willi
![](https://secure.gravatar.com/avatar/d205a3c0d4cae4b532e4f0c6d15cf40c.jpg?s=120&d=mm&r=g)
On Sun, May 11, 2003 at 05:19:13PM +0200, Sebastian Rooks wrote:
How can I get ConteXt to typeset numbers as it should be done in french in which we use a comma and not a point to separate units and decimals ? That is when I write \mathematics{5,3} I want to have 5,3 and not 5, 3 (with a small space between the comma and the 3), as it is when I use the english separator, a point.
Try \enablemathpunctuation and then write 5,3 for a decimal sign and f(x, y) if the comma is used as a list seperator. Search the list archive for subject "math punctuation", Hans added this some time ago. If you can't find it, I can forward the relevant messages to you. -- Eckhart
![](https://secure.gravatar.com/avatar/755c9d886016029291ecbb4832c579dd.jpg?s=120&d=mm&r=g)
Thank you all of you for your answers, all of them works ! I think that I will go with \enablemathpunctuation, which seems to handle both the text and math cases without any added special mark everywhere in the text. Bye, Seb. Eckhart Guthöhrlein wrote:
On Sun, May 11, 2003 at 05:19:13PM +0200, Sebastian Rooks wrote:
How can I get ConteXt to typeset numbers as it should be done in french in which we use a comma and not a point to separate units and decimals ? That is when I write \mathematics{5,3} I want to have 5,3 and not 5, 3 (with a small space between the comma and the 3), as it is when I use the english separator, a point.
Try \enablemathpunctuation and then write 5,3 for a decimal sign and f(x, y) if the comma is used as a list seperator. Search the list archive for subject "math punctuation", Hans added this some time ago. If you can't find it, I can forward the relevant messages to you.
![](https://secure.gravatar.com/avatar/331902f4bde5e73f4eeac8719040822f.jpg?s=120&d=mm&r=g)
Sunday, May 11, 2003 Sebastian Rooks wrote: SR> Thank you all of you for your answers, all of them works ! SR> I think that I will go with \enablemathpunctuation, which seems to SR> handle both the text and math cases without any added special mark SR> everywhere in the text. I think that setting the language should also set these kind of options. Hans? -- Giuseppe "Oblomov" Bilotta
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
At 23:39 11/05/2003 +0200, you wrote:
Sunday, May 11, 2003 Sebastian Rooks wrote:
SR> Thank you all of you for your answers, all of them works ! SR> I think that I will go with \enablemathpunctuation, which seems to SR> handle both the text and math cases without any added special mark SR> everywhere in the text.
I think that setting the language should also set these kind of options. Hans?
i dunno in what respect math depends on a language but it would be fun to have language dependent math; before doing that some discussion is needed 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 ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
![](https://secure.gravatar.com/avatar/331902f4bde5e73f4eeac8719040822f.jpg?s=120&d=mm&r=g)
Monday, May 12, 2003 Hans Hagen wrote: HH> At 23:39 11/05/2003 +0200, you wrote:
Sunday, May 11, 2003 Sebastian Rooks wrote:
SR> Thank you all of you for your answers, all of them works ! SR> I think that I will go with \enablemathpunctuation, which seems to SR> handle both the text and math cases without any added special mark SR> everywhere in the text.
I think that setting the language should also set these kind of options. Hans?
HH> i dunno in what respect math depends on a language but it would be fun to HH> have language dependent math; before doing that some discussion is needed Right :) As far as I know, most European languages (that is, except for English) use the dot to separate thousands and the comma to separate integer part from decimals. So setting this math option for European (non-Anglo-saxon) languages *would* make sense. It should probably fit together with the lang-mat module I've been sparsely working at, where common function names (like sin, cos, tg) are given "local" names (like: sen, cos, tan in Italian). -- Giuseppe "Oblomov" Bilotta
![](https://secure.gravatar.com/avatar/755c9d886016029291ecbb4832c579dd.jpg?s=120&d=mm&r=g)
As far as I know, most European languages (that is, except for English) use the dot to separate thousands and the comma to separate integer part from decimals.
In french thousand are separated by a space, and not by a dot.
So setting this math option for European (non-Anglo-saxon) languages *would* make sense. It should probably fit together with the lang-mat module I've been sparsely working at, where common function names (like sin, cos, tg) are given "local" names (like: sen, cos, tan in Italian).
That would be great ! (and in case of need, frenchies are using sin, cos and tan ;-) ) Seb.
![](https://secure.gravatar.com/avatar/331902f4bde5e73f4eeac8719040822f.jpg?s=120&d=mm&r=g)
Thursday, May 15, 2003 Sebastian Rooks wrote:
As far as I know, most European languages (that is, except for English) use the dot to separate thousands and the comma to separate integer part from decimals.
SR> In french thousand are separated by a space, and not by a dot. Oh. Didn't know that :) (Actually I've seen a thin space used in some Italian books, too --and if you want my Very Personal Opinion, it's more legible, except in the few cases where it may generate confusion ...)
So setting this math option for European (non-Anglo-saxon) languages *would* make sense. It should probably fit together with the lang-mat module I've been sparsely working at, where common function names (like sin, cos, tg) are given "local" names (like: sen, cos, tan in Italian).
SR> That would be great ! (and in case of need, frenchies are SR> using sin, cos and tan ;-) ) Good to know :) -- Giuseppe "Oblomov" Bilotta
![](https://secure.gravatar.com/avatar/5a39f1335b6eff433673ed987859fb24.jpg?s=120&d=mm&r=g)
As far as I know, most European languages (that is, except for English) use the dot to separate thousands and the comma to separate integer part from decimals. SR> In french thousand are separated by a space, and not by a dot. Oh. Didn't know that :) (Actually I've seen a thin space used in some Italian books, too --and if you want my Very Personal Opinion, it's more legible, except in the few cases where it may generate confusion ...)
I think the dot is only a typewriter workaround, it should always be a "spatium" (small space, about 1/4 of font size).
SR> That would be great ! (and in case of need, frenchies are SR> using sin, cos and tan ;-) )
germans also. Grüßlis vom Hraban! -- http://www.fiee.net/texnique/
![](https://secure.gravatar.com/avatar/4b4ced3073feb2d1288a7744c747e62b.jpg?s=120&d=mm&r=g)
On Thu, 15 May 2003, Giuseppe Bilotta wrote:
SR> In french thousand are separated by a space, and not by a dot.
Oh. Didn't know that :)
More details you didn't know: Finnish separates thousands with a space (in ConTeXt I'd use "\," to make this space, I guess - haven't written anything real in Finnish yet) and uses comma for decimals. The recommendation for Swedish is exactly the same: groups of three and a decimal comma. i.e. 1 000 000 (one million) 6 000,3 (six thousand and three tenths) Use in Norwegian is not so clear, but space seems to be the recommended option.
SR> That would be great ! (and in case of need, frenchies are SR> using sin, cos and tan ;-) )
Good to know :)
Finnish uses these "standard" versions, too, and as far as I know, so do all the Scandinavian languages. I haven't actively studied math in other than my mother tongue... My ten eurocents, Mari from Finland
![](https://secure.gravatar.com/avatar/6af1f724a401c9f6f746a973f33ff595.jpg?s=120&d=mm&r=g)
Hi,
SR> In french thousand are separated by a space, and not by a dot.
Same in Germany. Don't know about the other german speaking countries. Every operating system I know has a mapping "Location <--> some settings" where "some settings" is language, decimal seperator, thousands seperator, date format, input encoding :) (keyboard) ... So imo this won't be a bad idea to integrate into ConTeXt. Patrick
![](https://secure.gravatar.com/avatar/ffd198e142577bf411d5bf0189275f07.jpg?s=120&d=mm&r=g)
On donderdag, mei 15, 2003, at 10:23 Europe/Amsterdam, Patrick Gundlach wrote:
Hi,
SR> In french thousand are separated by a space, and not by a dot.
Same in Germany. Don't know about the other german speaking countries.
Every operating system I know has a mapping "Location <--> some settings" where "some settings" is language, decimal seperator, thousands seperator, date format, input encoding :) (keyboard) ...
So imo this won't be a bad idea to integrate into ConTeXt.
and this is very system dependent. Integrating would be hard. Besides, I never use the standard dutch settings, since they are confusing: comma as the decimal separator, a period for the thousands. I usually do not separate the thousands at all (or with a thin space) and use comma or period for the decimals. Maarten It isn't true unless it makes you laugh, but you don't understand it until it makes you cry.
![](https://secure.gravatar.com/avatar/6af1f724a401c9f6f746a973f33ff595.jpg?s=120&d=mm&r=g)
Hello out there,
Every operating system I know has a mapping "Location <--> some settings" where "some settings" is language, decimal seperator, thousands seperator, date format, input encoding :) (keyboard) ...
So imo this won't be a bad idea to integrate into ConTeXt.
and this is very system dependent. Integrating would be hard.
It looks as if I am confusing all people including myself: I just wanted to express that it is not a bad idea to select the decimal seperator (and other things) when saying \mainlanguage[somelang]. I don't think of getting the system preferences. Patrick
![](https://secure.gravatar.com/avatar/d205a3c0d4cae4b532e4f0c6d15cf40c.jpg?s=120&d=mm&r=g)
On Mon, May 12, 2003 at 05:57:41PM +0200, Hans Hagen wrote:
At 23:39 11/05/2003 +0200, you wrote:
Sunday, May 11, 2003 Sebastian Rooks wrote:
SR> Thank you all of you for your answers, all of them works ! SR> I think that I will go with \enablemathpunctuation, which seems to SR> handle both the text and math cases without any added special mark SR> everywhere in the text.
I think that setting the language should also set these kind of options. Hans?
i dunno in what respect math depends on a language but it would be fun to have language dependent math; before doing that some discussion is needed
As far as I have observed, the use of a comma is still preferred in Germany as the decimal sign. If any, a small space is used in German as a thousands seperator; I haven't seen a point for this purpose for a long time. This complies with international standards, see below. Of course I have to admit that English texts don't care about standards and use the point as a decimal sign, sometimes even the comma as a decimal seperator - ugh! O.k., this will probably not change. (Hopefully we can at least get rid of gallons and inches some day.) Excerpt from ISO 31-0 ... 3.3.1 Numbers should generally be printed in roman (upright) type. To facilitate the reading of numbers with many digits, these may be seperated into suitable groups, preferably of three, counting from the decimal sign towards the left and the right; the groups should be seperated by a small space, and never by a comma or a point, nor by any other means. 3.3.2 Decimal sign The decimal sign is a comma on the line. ... -- Eckhart
![](https://secure.gravatar.com/avatar/178537b38d41da9137e5dc3231557708.jpg?s=120&d=mm&r=g)
Sebastian Rooks
Hi ConTeXters, How can I get ConteXt to typeset numbers as it should be done in french in which we use a comma and not a point to separate units and decimals ? That is when I write \mathematics{5,3} I want to have 5,3 and not 5, 3 (with a small space between the comma and the 3), as it is when I use the english separator, a point. Cheers,
Normally TeX inserts som space after the comma so for example the tuple $(a,b,c)$ will look right. To kill the space, just type 3{,}5 /Emil -- Emil Hedevang Lohse http://home.imf.au.dk/emil/ Alle spørgsmål er lige dumme. Og spørgsmålet "Kan ænder flyve?" er ikke dumt.
participants (10)
-
Eckhart Guthöhrlein
-
Emil Hedevang Lohse
-
Giuseppe Bilotta
-
Hans Hagen
-
Henning Hraban Ramm
-
Maarten Sneep
-
Mari Voipio
-
Patrick Gundlach
-
Sebastian Rooks
-
Willi Egger