From 566f5207d7e3cafb0633d31277067336ccd9cca7 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 22 May 2009 23:51:44 +0000 Subject: move generic english documents out of texmf-doc git-svn-id: svn://tug.org/texlive/trunk@13396 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/generic/FAQ-en/html/FAQ-dec_comma.html | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-dec_comma.html (limited to 'Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-dec_comma.html') diff --git a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-dec_comma.html b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-dec_comma.html new file mode 100644 index 00000000000..8c4bc8f9ae9 --- /dev/null +++ b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-dec_comma.html @@ -0,0 +1,41 @@ + +UK TeX FAQ -- question label dec_comma + +

The comma as a decimal separator

+

TeX embodies the British/American cultural convention of using a +period as the separator between the whole number and the decimal +fraction part of a decimal number. Other cultures use a comma as +separator, but if you use a comma in maths mode you get a small space +after it; this space makes a comma that is used as a decimal separator +look untidy. +

A simple solution to this problem, in maths mode, is to type +3{,}14 in place of 3,14. While such a +technique may produce the right results, it is plainly not a +comfortable way to undertake any but the most trivial amounts of +typing numbers. +

Therefore, if you need to use commas as decimal separator, you will +probably welcome macro support. There are two packages that +can help relieve the tedium: icomma and ziffer. +

Icomma ensures that there will be no extra space after a +comma, unless you type a space after it (as in f(x, y) — in +the absence of the package, you don’t need that space), in which case +the usual small space after the comma appears. Ziffer is +specifically targeted at the needs of those typesetting German, but +covers the present need, as well as providing the double-minus sign +used in German (and other languages) for the empty ‘cents’ part of an +amount of currency. +

The numprint package provides a command +\numprint{number} that prints its argument according to +settings you give it, or according to settings chosen to match the +language you have selected in babel. The formatting works +equally well in text or maths. The command is very flexible (it can also +group the digits of very ‘long’ numbers), but is inevitably less +convenient than icomma or ziffer if you are typing a +lot of numbers. +

+
icomma.sty
Distributed as part of macros/latex/contrib/was (gzipped tar, browse) +
numprint.sty
macros/latex/contrib/numprint (gzipped tar, browse) +
ziffer.sty
macros/latex/contrib/ziffer (gzipped tar, browse) +
+

This question on the Web: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=dec_comma + -- cgit v1.2.3