Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Some countries use , instead of . in a decimal. Unfortunately, a 2D coordinate, for example (2,3,4), becomes ambiguous for readers.

How to avoid this?

share|improve this question

closed as off topic by Lev Bishop, Caramdir, Jake, lockstep, Joseph Wright Jun 10 '11 at 6:18

Questions on TeX - LaTeX Stack Exchange are expected to relate to TeX, LaTeX or related typesetting systems within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
a semicolon? perhaps –  Yan Zhou Jun 10 '11 at 0:24
    
Brazil uses colon as a decimal separator. We are told to use a semicolon when dealing with non-integer coordinates, e.g. (1,5 ; 2,5). EDIT: In some cases, people suppress the value separator, e.g. (1,5 2,5). –  Paulo Cereda Jun 10 '11 at 0:41
3  
This seems off-topic for this site. –  Lev Bishop Jun 10 '11 at 1:54
1  
@Altermundus: have you tried \ensuremath{\cdot} command? –  Crowley Jun 10 '11 at 5:10
1  
@Caramdir Yes I think it would be preferable to reformulate the question : Something like How to avoid confusion between special characters and delimiters or separators –  Alain Matthes Jun 10 '11 at 6:13

1 Answer 1

The only case where this question is not off-topic is the case where someone like a french tex's user tries to use a list for example in a \foreach list. When the ,is a separator you need to hide your math , inside a tex group {...}

Example

\foreach \n in {1,2,{2,718},3,{3,14}}

Now it's possible with the package numprint with babel and with siunitxto write numbers with dot and when you need to print the numbers to get the good syntax according to the country.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.