Debian Codegraph @

texmf-dist/doc/latex/isonums/isonums.tex

raw
1 \documentclass[DIV=8, parskip=half, pagesize=auto]{scrartcl}
2
3 \usepackage{fixltx2e}
4 \usepackage{etex}
5 \usepackage{xspace}
6 \usepackage{lmodern}
7 \usepackage[T1]{fontenc}
8 \usepackage{textcomp}
9 \usepackage[utf8]{inputenc}
10 \usepackage{microtype}
11 \usepackage{hyperref}
12
13 \newcommand*{\mail}[1]{\href{mailto:#1}{\texttt{#1}}}
14 \newcommand*{\pkg}[1]{\textsf{#1}}
15 \newcommand*{\cs}[1]{\texttt{\textbackslash#1}}
16 \makeatletter
17 \newcommand*{\cmd}[1]{\cs{\expandafter\@gobble\string#1}}
18 \makeatother
19 \newcommand*{\opt}[1]{\texttt{#1}}
20 \newcommand*{\ZifferStrich}{\mbox{\textrm{-\kern0.1em-}}}
21
22 \addtokomafont{title}{\rmfamily}
23
24 \title{The \pkg{isonums} package\thanks{This manual corresponds to \pkg{isonums}~v1.0, dated~2007/12/31, based on \pkg{ziffer}~v2.2.}}
25 \author{M. Väth\\\mail{[email protected]}}
26 \date{2007/12/31}
27
28
29 \begin{document}
30
31 \maketitle
32
33 Adapted to handle English formatted numbers:\\
34 Luis Rivera, \mail{[email protected]}
35
36 This package provides the macros
37
38 \begin{tabular}{@{}l@{}l@{}}
39 \cmd{\ZifferAn} & (equivalent with \verb+\ZifferPunktAn \ZifferStrichAn +) \\
40 \cmd{\ZifferAus} & (equivalent with \verb+\ZifferPunktAus\ZifferStrichAus+) \\
41 \cmd{\ZifferPunktAn} \\
42 \cmd{\ZifferPunktAus} \\
43 \cmd{\ZifferStrichAn} \\
44 \cmd{\ZifferStrichAus}
45 \end{tabular}
46
47 If \cmd{\ZifferAn} was used, then in numbers in math-mode the following happens:
48
49 \begin{tabular}{@{}rl@{}}
50 `\texttt{.}' & is used as a `one-thousand separator' as common in Germany \\
51 `\texttt{,}' & is used as a decimal separator as common in Germany \\
52 `\verb+--+' & generates a \ZifferStrich\ with better spacing (e.\,g.\ in 1.000,\ZifferStrich)
53 \end{tabular}
54
55 You may still use the symbols `\texttt{.}' `\texttt{,}' and `\texttt{-}' in other context in math mode.
56
57 The first two conversions are switched on by default, the last conversion has
58 to be switched on explicitly (this has been changed in v2.1):
59 You may switch on/off the conversions with
60
61 \begin{tabular}{@{}ll@{}}
62 \cmd{\ZifferPunktAn}/\cmd{\ZifferPunktAus} & (for the first two conversions) \\
63 respectively \\
64 \cmd{\ZifferStrichAn}/\cmd{\ZifferStrichAus} & (for the last conversion).
65 \end{tabular}
66
67 The reason why the last conversion is not on by default (and why it might be
68 necessary to [temporarily] switch off a conversion) is that certain packages
69 (in particular, newer versions of \pkg{amsmath}) cause problems with it.
70
71 There were some discussions which should be the correct output of the
72 above conversions (in particular, of `\verb+--+').
73 If you do not like my choice: You may customize (i.\,e.\ redefine) the macros
74 \cmd{\ZifferLeer} and \cmd{\ZifferStrich}
75 after loading the package to produce the `one-thousand separator'
76 respectively the~`\ZifferStrich'.
77
78 All above command-names are in German, because I had expected that this
79 package is only needed for German texts. Meanwhile, I learned that also
80 other countries use this strange convention for numbers. However, for
81 downward compatibility, I decided to keep the name conventions anyway
82 (after all, the name of the package is in German anyway).
83
84 \medskip
85
86 The extension options (\opt{euro}, \opt{anglo}) define the input format, so that all numbers
87 in math mode are displayed in ISO--31--0 format, regardless of input format.
88 The commands \cmd{\EuroZiffer} and \cmd{\AngloZiffer} make local changes within the document body.
89 I wrote these extensions as I use the decimal point consistently and I found
90 convenient to make conversions to all numbers simply by adjusting a command line
91 in the whole document.--- Luis.
92
93 \end{document}