diff options
author | Karl Berry <karl@freefriends.org> | 2010-02-23 00:27:32 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-02-23 00:27:32 +0000 |
commit | 41a7ada80719f4f4cce32f15d40553c4f0b98e59 (patch) | |
tree | 6911b30d6937fd2dcac996f190516cd37fad2c7f /Master/texmf-dist/doc | |
parent | 2bde0cef55deb13172e07c4e37e7f2289fe1f6b7 (diff) |
comma update (22feb10)
git-svn-id: svn://tug.org/texlive/trunk@17159 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r-- | Master/texmf-dist/doc/latex/comma/comma.pdf | bin | 0 -> 157472 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/comma/comma.tex | 49 |
2 files changed, 49 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/comma/comma.pdf b/Master/texmf-dist/doc/latex/comma/comma.pdf Binary files differnew file mode 100644 index 00000000000..8a9e930d34f --- /dev/null +++ b/Master/texmf-dist/doc/latex/comma/comma.pdf diff --git a/Master/texmf-dist/doc/latex/comma/comma.tex b/Master/texmf-dist/doc/latex/comma/comma.tex new file mode 100644 index 00000000000..41760a7b54a --- /dev/null +++ b/Master/texmf-dist/doc/latex/comma/comma.tex @@ -0,0 +1,49 @@ +\documentclass[DIV=9, fontsize=14pt, parskip=full, pagesize=auto]{scrartcl} + +\usepackage{fixltx2e} +\usepackage{etex} +\usepackage{xspace} +\usepackage{lmodern} +\usepackage[T1]{fontenc} +\usepackage{textcomp} +\usepackage{microtype} +\usepackage[unicode=true]{hyperref} + +\newcommand*{\pkg}[1]{\textsf{#1}} +\newcommand*{\cs}[1]{\texttt{\textbackslash#1}} +\makeatletter +\newcommand*{\cmd}[1]{\cs{\expandafter\@gobble\string#1}} +\makeatother + +\addtokomafont{title}{\rmfamily} +\topsep=\dimexpr0.8ex - \parskip\relax + +\title{The \pkg{comma} package\thanks{This manual corresponds to \pkg{comma}~v1.2, dated~1997/12/15.}} +\author{David Carlisle} +\date{1997/12/15} + + +\begin{document} + +\maketitle + +This package provides a means of producing numbers with a separator +(by default a comma) every three digits. + +Given a \LaTeX\ counter (eg \texttt{section}) +% +\begin{verbatim} +\renewcommand\thesection{\commaform{section}} +\end{verbatim} +% +If \texttt{section} is 12345, \cmd{\thesection} will now print as 12,345 + +If you want something other than a comma, for instance a thin +space, or a full word space, redefine \cmd{\commaformtoken}, for instance +% +\begin{verbatim} +\renewcommand\commaformtoken{\,} +\renewcommand\commaformtoken{ } +\end{verbatim} + +\end{document} |