summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-10-24 23:51:23 +0000
committerKarl Berry <karl@freefriends.org>2010-10-24 23:51:23 +0000
commitb825cb134198cb32fb898588af07b41508d6b961 (patch)
tree42becf1269fd14d9442411b65412d368fc4e00a0
parent04619e858364afd7d195d2d63c1ae2156e46b659 (diff)
sepnum own pkg + doc (24oct10)
git-svn-id: svn://tug.org/texlive/trunk@20186 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/sepnum/sepnum-doc.pdfbin0 -> 351503 bytes
-rw-r--r--Master/texmf-dist/doc/latex/sepnum/sepnum-doc.tex123
-rw-r--r--Master/texmf-dist/tex/latex/sepnum/sepnum.sty (renamed from Master/texmf-dist/tex/latex/ltxmisc/sepnum.sty)0
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check2
-rw-r--r--Master/tlpkg/tlpsrc/collection-latexrecommended.tlpsrc1
-rw-r--r--Master/tlpkg/tlpsrc/sepnum.tlpsrc0
6 files changed, 125 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/sepnum/sepnum-doc.pdf b/Master/texmf-dist/doc/latex/sepnum/sepnum-doc.pdf
new file mode 100644
index 00000000000..ac1835de25e
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/sepnum/sepnum-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/sepnum/sepnum-doc.tex b/Master/texmf-dist/doc/latex/sepnum/sepnum-doc.tex
new file mode 100644
index 00000000000..0a5ce06bb4c
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/sepnum/sepnum-doc.tex
@@ -0,0 +1,123 @@
+\documentclass[pagesize=auto, fontsize=12pt, DIV=11, parskip=half]{scrartcl}
+
+\usepackage{fixltx2e}
+\usepackage{etex}
+\usepackage{lmodern}
+\usepackage[T1]{fontenc}
+\usepackage{textcomp}
+\usepackage[svgnames]{xcolor}
+\usepackage{listings}
+\usepackage{microtype}
+\usepackage{hyperref}
+
+\newcommand*{\mail}[1]{\href{mailto:#1}{\texttt{#1}}}
+\newcommand*{\pkg}[1]{\textsf{#1}}
+\newcommand*{\cs}[1]{\texttt{\textbackslash#1}}
+\makeatletter
+\newcommand*{\cmd}[1]{\cs{\expandafter\@gobble\string#1}}
+\makeatother
+\newcommand*{\meta}[1]{\textlangle\textsl{#1}\textrangle}
+\newcommand*{\marg}[1]{\texttt{\{}\meta{#1}\texttt{\}}}
+
+\addtokomafont{title}{\rmfamily}
+
+\lstset{%
+ language=[LaTeX]TeX,%
+ columns=flexible,%
+ upquote=true,%
+ numbers=left,%
+ basicstyle=\ttfamily,%
+ keywordstyle=\color{Navy},%
+ commentstyle=\color{DimGray},%
+ stringstyle=\color{SeaGreen},%
+ numberstyle=\scriptsize\color{SlateGray}%
+}
+
+\title{The \pkg{sepnum} package\thanks{This manual corresponds to \pkg{sepnum}~v2.0, dated~1996/09/05.}}
+\subtitle{Separated numbers}
+\author{Bernd Raichle\thanks{\mail{Raichle@Informatik.Uni-Stuttgart.de}}}
+\date{1996/09/05}
+
+
+\begin{document}
+
+\maketitle
+
+\begin{abstract}
+ \noindent
+ This package provides a means of formatting numbers
+ with (a) a decimal separator different of the default (`.')
+ and (b) a separator (default `,') every three digits.
+
+ First version of this package was posted to the newsgroup
+ `\texttt{de.comp.tex}' November 6th, 1995 (as `\pkg{printnum.sty}').
+\end{abstract}
+
+
+\section{Licensing condition}
+
+This program may be redistributed and/or modified under the terms
+of the \LaTeX\ Project Public License, either version~1.0 of this
+license, or (at your option) any later version.
+The latest version of this license is in \href{http://ctan.org/macros/latex/base/lppl.txt}{\texttt{CTAN:macros/latex/base/lppl.txt}}.
+
+
+\section{Usage}
+
+The macro
+%
+\begin{quote}
+ \cmd{\sepnum}\marg{c}\marg{sbc}\marg{sac}\marg{number}
+\end{quote}
+%
+produces the \meta{number} with the decimal point replaced by \meta{c}
+and the separator \meta{sbc} every three digits in the integer part,
+the separator \meta{sac} every three digits in the fractional part
+of \meta{number}. \cmd{\sepnum} is \emph{fully expandable} and \emph{not} fragile,
+unless one of \meta{c}, \meta{sbc}, or \meta{sac} is.
+
+\minisec{Example:}
+%
+\begin{itemize}
+\item a non realistic example to show the capabilities of \cmd{\sepnum} \\
+ \verb|\sepnum{,}{*}{-}{1234.5678}| $\Rightarrow$ 1*234,567-8
+\item to print a number inserting small spaces each three digits \\
+ \verb|\sepnum{.}{\,}{\,}{1234.5678}| $\Rightarrow$ 1\,234.567\,8
+\end{itemize}
+
+
+Additionally this package provides
+%
+\begin{quote}
+ \cmd{\sepnumform}\marg{c}\marg{sbc}\marg{sac}\marg{\LaTeX-counter}
+\end{quote}
+%
+to use \cmd{\sepnum} with a \LaTeX\ counter.
+
+
+\minisec{Example (with a decimal comma in the print form \cmd{\the\meta{counter}}):}
+%
+\begin{lstlisting}
+\newcounter{money}
+\renewcommand{\themoney}{\sepnumform{,}{.}{}{money}}
+
+\setcounter{money}{-1000}
+You have \themoney{} left.
+\end{lstlisting}
+%
+(For compatibility with `\pkg{printnum.sty}', the macros
+\cmd{\printnum}\marg{number} and \cmd{\print\-numKomma}\slash\cmd{\printnumTrenner}
+still exist.)
+
+
+\section{See also}
+
+\begin{itemize}
+\item Package ``\pkg{comma.sty}'' by David Carlisle which provides
+ similar features for integers only, i.\,e.\ it misses support
+ for the decimal point/comma in fixed point numbers.
+\item Package ``\pkg{numprint.sty}'' by Harald Harders supporting
+ formatting of numbers given as \texttt{1234e5} in addition.
+\end{itemize}
+
+\end{document}
diff --git a/Master/texmf-dist/tex/latex/ltxmisc/sepnum.sty b/Master/texmf-dist/tex/latex/sepnum/sepnum.sty
index 5d81c61680e..5d81c61680e 100644
--- a/Master/texmf-dist/tex/latex/ltxmisc/sepnum.sty
+++ b/Master/texmf-dist/tex/latex/sepnum/sepnum.sty
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index e2b7f5f35bb..df06148379a 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -285,7 +285,7 @@ my @TLP_working = qw(
sageep sansmath sauerj sauterfonts savefnmark savesym savetrees scale
scalebar schemabloc scientificpaper sciposter screenplay script sdrt
secdot section sectionbox sectsty selectp semantic semaphor
- seminar semioneside
+ seminar semioneside sepnum
seqsplit setspace seuthesis sf298 sffms sfg sfheaders
sfmath sgame shadbox shade shadethm shapepar
shipunov shorttoc show2e showdim showexpl showlabels shuffle
diff --git a/Master/tlpkg/tlpsrc/collection-latexrecommended.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexrecommended.tlpsrc
index 4eefa337e8f..a582a68d5d0 100644
--- a/Master/tlpkg/tlpsrc/collection-latexrecommended.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-latexrecommended.tlpsrc
@@ -39,6 +39,7 @@ depend rotating
depend sansmath
depend section
depend seminar
+depend sepnum
depend setspace
depend subfig
depend thumbpdf
diff --git a/Master/tlpkg/tlpsrc/sepnum.tlpsrc b/Master/tlpkg/tlpsrc/sepnum.tlpsrc
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/sepnum.tlpsrc