Debian Codegraph @

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

raw
1 \documentclass[DIV=9, fontsize=14pt, parskip=full, 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{microtype}
10 \usepackage[unicode=true]{hyperref}
11
12 \newcommand*{\pkg}[1]{\textsf{#1}}
13 \newcommand*{\cs}[1]{\texttt{\textbackslash#1}}
14 \makeatletter
15 \newcommand*{\cmd}[1]{\cs{\expandafter\@gobble\string#1}}
16 \makeatother
17
18 \addtokomafont{title}{\rmfamily}
19 \topsep=\dimexpr0.8ex - \parskip\relax
20
21 \title{The \pkg{comma} package\thanks{This manual corresponds to \pkg{comma}~v1.2, dated~1997/12/15.}}
22 \author{David Carlisle}
23 \date{1997/12/15}
24
25
26 \begin{document}
27
28 \maketitle
29
30 This package provides a means of producing numbers with a separator
31 (by default a comma) every three digits.
32
33 Given a \LaTeX\ counter (eg \texttt{section})
34 %
35 \begin{verbatim}
36 \renewcommand\thesection{\commaform{section}}
37 \end{verbatim}
38 %
39 If \texttt{section} is 12345, \cmd{\thesection} will now print as 12,345
40
41 If you want something other than a comma, for instance a thin
42 space, or a full word space, redefine \cmd{\commaformtoken}, for instance
43 %
44 \begin{verbatim}
45 \renewcommand\commaformtoken{\,}
46 \renewcommand\commaformtoken{ }
47 \end{verbatim}
48
49 \end{document}