diff options
author | Karl Berry <karl@freefriends.org> | 2012-09-25 22:58:08 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-09-25 22:58:08 +0000 |
commit | 5972810af729299af222498461a459998df88906 (patch) | |
tree | f32df205f6b61c129fda672be1edd763854cafc8 /Master/texmf-dist/doc/latex/fmtcount | |
parent | d21e43ac989ba93e0f327fc32fd99f3b1c3f0c6e (diff) |
fmtcount (25sep12)
git-svn-id: svn://tug.org/texlive/trunk@27805 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/fmtcount')
-rw-r--r-- | Master/texmf-dist/doc/latex/fmtcount/CHANGES | 14 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/fmtcount/README | 13 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/fmtcount/fc-frlargenum.tex | 128 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/fmtcount/fc-lang.tex | 9 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/fmtcount/fc-samp.tex | 4 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/fmtcount/fmtcount-manual.html | 708 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/fmtcount/fmtcount.pdf | bin | 144823 -> 542352 bytes |
7 files changed, 157 insertions, 719 deletions
diff --git a/Master/texmf-dist/doc/latex/fmtcount/CHANGES b/Master/texmf-dist/doc/latex/fmtcount/CHANGES index 2bf2c037047..5b44dcb0cd2 100644 --- a/Master/texmf-dist/doc/latex/fmtcount/CHANGES +++ b/Master/texmf-dist/doc/latex/fmtcount/CHANGES @@ -1,5 +1,19 @@ fmtcount package versions: +Version 2.0: + + * fcprefix.sty, fcnumparser.sty added by Vincent Belaïche + + * fmtcount.sty now loads etoolbox + + * Minor corrections to fc-spanish.def (corrections provided by + Fernando Maldonado Millán) + + * Minor corrections to fc-german.def (corrections provided by + Dominik Waßenhoven) + + * Fixed bug in OrdinalstringMgerman etc + Version 1.31: * fixed unwanted space in \decimalnum diff --git a/Master/texmf-dist/doc/latex/fmtcount/README b/Master/texmf-dist/doc/latex/fmtcount/README index fa6dd14ad0c..6379b920313 100644 --- a/Master/texmf-dist/doc/latex/fmtcount/README +++ b/Master/texmf-dist/doc/latex/fmtcount/README @@ -1,14 +1,15 @@ -LaTeX Package : fmtcount v 1.31 +LaTeX Package : fmtcount v2.0 -Last Modified : 2 October 2009 +Last Modified : 2012-06-18 -Author : Nicola Talbot +Author : Nicola Talbot and Vincent Belaïche Files : fmtcount.dtx - documented source file fmtcount.ins - installation script fmtcount.perl - latex2html style file - fc-samp.tex - sample files - fc-lang.tex / + fc-samp.tex \ + fc-lang.tex - sample files + fc-frlargenum.tex / The package fmtcount.sty provides commands that display the value of a LaTeX counter in a variety @@ -49,4 +50,4 @@ This material is subject to the LaTeX Project Public License. See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html for the details of that license. -http://theoval.cmp.uea.ac.uk/~nlct/ +http://www.dickimaw-books.com/ diff --git a/Master/texmf-dist/doc/latex/fmtcount/fc-frlargenum.tex b/Master/texmf-dist/doc/latex/fmtcount/fc-frlargenum.tex new file mode 100644 index 00000000000..cd5134b37c4 --- /dev/null +++ b/Master/texmf-dist/doc/latex/fmtcount/fc-frlargenum.tex @@ -0,0 +1,128 @@ +\documentclass{article} +\usepackage[french]{babel} +\usepackage{fmtcount} +\usepackage{array} +\usepackage{amsmath} +\usepackage{xcolor} +\usepackage[T1]{fontenc} +\newcommand*\formatterundertest[1]{} +\makeatletter +\newcommand*{\printrow}[2]{% + \def\@tempa{#1}% + \ifx\@tempa\@empty\else + \texttt{\textbackslash fmtsetoptions\{french=\{#1\}\}}\newline + \fmtcountsetoptions{french={#1}}% + \fi + \begin{tabular}{@{}>{\raggedleft\arraybackslash}p{\dimexpr0.3\linewidth-\tabcolsep}>{\raggedright\arraybackslash}p{\dimexpr0.7\linewidth-\tabcolsep}@{}}% + #2&$\rangle$\formatterundertest{#2}$\langle$\\\hline + \end{tabular}\newline + \def\@tempb{% + \ifx\@tempa\space + \expandafter\@gobble + \fi + }% + \futurelet\@tempa\@tempb +} +\def\fc@frenchoptions@submillion@dos{$\bullet$\-$\bullet$} +\def\fc@frenchoptions@supermillion@dos{$\star$\-$\star$} + +\makeatother +\newcommand*\test{\noindent +\printrow{all plural}{1} +\printrow{}{2} +\printrow{}{3} +\printrow{}{4} +\printrow{}{5} +\printrow{}{6} +\printrow{}{7} +\printrow{}{8} +\printrow{}{9} +\printrow{}{10} +\printrow{}{11} +\printrow{}{12} +\printrow{}{13} +\printrow{}{14} +\printrow{}{15} +\printrow{}{16} +\printrow{}{17} +\printrow{}{18} +\printrow{}{19} +\printrow{}{20} +\printrow{}{21} +\printrow{}{22} +\printrow{}{29} +\printrow{scale=long}{1 000 000 000 000 000 000 000 000 000 000 000 000 000} +\printrow{scale=short}{1 000 000 000 000 000 000 000 000 000 000 000 000 000} +\printrow{scale=recursive}{1 000 000 000 000 000 000 000 000 000 000 000 000 000} +\printrow{}{1 000 000 000 000 000 000 000 000 000 000 000 000} +\printrow{}{1 000 000 000 000 000 000 000 000 000 000 000} +\printrow{}{1 000 000 000 000 000 000 000 000 000 000} +\printrow{scale=long}{2 000 000 000 000 000 000 000 000 000 000 000 000 000} +\printrow{scale=short}{2 000 000 000 000 000 000 000 000 000 000 000 000 000} +\printrow{scale=recursive}{2 000 000 000 000 000 000 000 000 000 000 000 000 000} +\printrow{}{2 000 000 000 000 000 000 000 000 000 000 000 000} +\printrow{}{2 000 000 000 000 000 000 000 000 000 000 000} +\printrow{}{2 000 000 000 000 000 000 000 000 000 000} +\printrow{}{156 404 724 555 428 769 499 217 321 941} +\printrow{}{4 171 764 135 702 262 349 567 001 574 584} +\printrow{}{97 415 427 916 562 250 398 973 107 371 704} +\printrow{}{80} +\printrow{}{81} +\printrow{}{21} +\printrow{}{31} +\printrow{}{200} +\printrow{}{201} +\printrow{}{200 000} +\printrow{}{200 000 000} +\printrow{}{201 000 000} +\printrow{}{80 000} +\printrow{}{80 000 000} +\printrow{}{81 000} +\printrow{}{81 000 000} +\printrow{all plural,mil plural=multiple}{1000} +\printrow{}{2000} +\printrow{}{1001} +\printrow{}{2001} +\printrow{}{1900} +\printrow{}{2012} +\printrow{}{900} +\printrow{all plural,mil plural=multiple,mil plural mark=s}{2000} +} + +\begin{document} + +\section{\textbackslash numberstringnum\{\#1\}} +\def\formatterundertest#1{\numberstringnum{#1}} +\test + +\section{\textbackslash numberstringnum\{\#1\}[f]} +\def\formatterundertest#1{\numberstringnum{#1}[f]} +\test + +\section{\textbackslash ordinalstringnum\{\#1\}} +\def\formatterundertest#1{\ordinalstringnum{#1}} +\test + +\section{\textbackslash ordinalstringnum\{\#1\}[f]} +\def\formatterundertest#1{\ordinalstringnum{#1}[f]} +\test + +\section{\textbackslash Numberstringnum\{\#1\}} +\def\formatterundertest#1{\Numberstringnum{#1}} +\test + +\section{\textbackslash Numberstringnum\{\#1\}[f]} +\def\formatterundertest#1{\Numberstringnum{#1}[f]} +\test + +\section{\textbackslash Ordinalstringnum\{\#1\}} +\def\formatterundertest#1{\Ordinalstringnum{#1}} +\test + +\section{\textbackslash Ordinalstringnum\{\#1\}[f]} +\def\formatterundertest#1{\Ordinalstringnum{#1}[f]} +\test + + + +\end{document} diff --git a/Master/texmf-dist/doc/latex/fmtcount/fc-lang.tex b/Master/texmf-dist/doc/latex/fmtcount/fc-lang.tex index 7a580a65cda..b2e52ba4164 100644 --- a/Master/texmf-dist/doc/latex/fmtcount/fc-lang.tex +++ b/Master/texmf-dist/doc/latex/fmtcount/fc-lang.tex @@ -1,9 +1,12 @@ % This is an interactive script. Run it through \LaTeX - % and enter appropriate responses. (This won't work with + % and enter appropriate responses. (This won't work with % LaTeX2HTML \documentclass[a4paper]{article} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} + \usepackage[french,english,spanish,portuges,ngerman,italian]{babel} \usepackage{fmtcount} @@ -256,14 +259,14 @@ Current language: Italian. \stepcounter{endval} \begin{ttfamily} -\noindent +\noindent \makebox[0.25in][c]{N} \makebox[0.5in][c]{ordinal}\quad \stringtype \par \myctr=\value{startval} \loop -\noindent +\noindent \setcounter{N}{\myctr} \makebox[0.25in][r]{\arabic{N}} \makebox[0.5in][r]{\ordinal{N}[\gender]}\quad diff --git a/Master/texmf-dist/doc/latex/fmtcount/fc-samp.tex b/Master/texmf-dist/doc/latex/fmtcount/fc-samp.tex index 7ca4d1c57f5..3730f0cf28b 100644 --- a/Master/texmf-dist/doc/latex/fmtcount/fc-samp.tex +++ b/Master/texmf-dist/doc/latex/fmtcount/fc-samp.tex @@ -19,10 +19,10 @@ \begin{document} \section{Displaying the value of a counter} -\label{ex} +\label{ex} \begin{ttfamily} -\noindent +\noindent \makebox[0.75in][c]{decimal} \makebox[0.75in][c]{hexadecimal} \makebox[0.75in][c]{ordinal} diff --git a/Master/texmf-dist/doc/latex/fmtcount/fmtcount-manual.html b/Master/texmf-dist/doc/latex/fmtcount/fmtcount-manual.html deleted file mode 100644 index 6b9887eafde..00000000000 --- a/Master/texmf-dist/doc/latex/fmtcount/fmtcount-manual.html +++ /dev/null @@ -1,708 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> - -<!--Converted with LaTeX2HTML 2002 (1.67) -original version by: Nikos Drakos, CBLU, University of Leeds -* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan -* with significant contributions from: - Jens Lippmann, Marek Rouchal, Martin Wilck and others --> -<HTML> -<HEAD> -<TITLE>fmtcount.sty v1.31: Displaying the Values of LaTeX Counters</TITLE> -<META NAME="description" CONTENT="fmtcount.sty v1.31: Displaying the Values of LaTeX Counters"> -<META NAME="keywords" CONTENT="fmtcount-manual"> -<META NAME="resource-type" CONTENT="document"> -<META NAME="distribution" CONTENT="global"> - -<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> -<META NAME="Generator" CONTENT="LaTeX2HTML v2002"> -<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> - - -</HEAD> - -<BODY > - -<P> - - <H1 ALIGN="CENTER">fmtcount.sty v1.31: Displaying the Values of -LaTeX Counters</H1> -<P ALIGN="CENTER"><STRONG>Nicola L.C. Talbot -<BR> -<BR> -School of Computing Sciences -<BR> -University of East Anglia -<BR> -Norwich. NR4 7TJ. -<BR> -United Kingdom. -<BR> <TT><A NAME="tex2html1" - HREF="http://theoval.cmp.uea.ac.uk/~nlct/">http://theoval.cmp.uea.ac.uk/~nlct/</A></TT></STRONG></P> -<P ALIGN="CENTER"><STRONG>2nd October 2009</STRONG></P> - <BR> - -<H2><A NAME="SECTION00010000000000000000"> -Contents</A> -</H2> -<!--Table of Contents--> - -<UL> -<LI><A NAME="tex2html17" - HREF="fmtcount-manual.html#SECTION00020000000000000000">Introduction</A> -<LI><A NAME="tex2html18" - HREF="fmtcount-manual.html#SECTION00030000000000000000">Installation</A> -<LI><A NAME="tex2html19" - HREF="fmtcount-manual.html#SECTION00040000000000000000">Available Commands</A> -<LI><A NAME="tex2html20" - HREF="fmtcount-manual.html#SECTION00050000000000000000">Package Options</A> -<LI><A NAME="tex2html21" - HREF="fmtcount-manual.html#SECTION00060000000000000000">Multilingual Support</A> -<LI><A NAME="tex2html22" - HREF="fmtcount-manual.html#SECTION00070000000000000000">Configuration File fmtcount.cfg</A> -<LI><A NAME="tex2html23" - HREF="fmtcount-manual.html#SECTION00080000000000000000">LaTeX2HTML style</A> -<LI><A NAME="tex2html24" - HREF="fmtcount-manual.html#SECTION00090000000000000000">Acknowledgements</A> -<LI><A NAME="tex2html25" - HREF="fmtcount-manual.html#SECTION000100000000000000000">Troubleshooting</A> -</UL> -<!--End of Table of Contents--> -<H1><A NAME="SECTION00020000000000000000"> -Introduction</A> -</H1> -The <TT>fmtcount</TT> package provides commands to display -the values of LaTeX counters in a variety of formats. It also -provides equivalent commands for actual numbers rather than -counter names. Limited multilingual support is available. -Currently, there is only support for English, French (including -Belgian and Swiss variations), Spanish, Portuguese, German and -Italian. - -<P> - -<H1><A NAME="SECTION00030000000000000000"> -Installation</A> -</H1> - -<P> -This package is distributed with the files <TT>fmtcount.dtx</TT> -and <TT>fmtcount.ins</TT>. To extract the code do: -<PRE> -latex fmtcount.ins -</PRE> -This will create the files <TT>fmtcount.sty</TT> and -<TT>fmtcount.perl</TT>, along with several <TT>.def</TT> files. -Place <TT>fmtcount.sty</TT> and the <TT>.def</TT> files somewhere -where LaTeX will find them (e.g. -<TT>texmf/tex/latex/fmtcount/</TT>) and place <TT>fmtcount.perl</TT> -somewhere where LaTeX2HTML -will find it (e.g. <TT>latex2html/styles</TT>). Remember to refresh -the TeX database (using <TT>texhash</TT> or <TT>mktexlsr</TT> -under Linux, for -other operating systems check the manual.) - -<P> - -<H1><A NAME="SECTION00040000000000000000"> -Available Commands</A> -</H1> - -<P> -The commands can be divided into two categories: those that -take the name of a counter as the argument, and those -that take a number as the argument. - -<P> - -<P> -<TT>\ordinal{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> -This will print the value of a LaTeX counter <I>counter</I> as an -ordinal, where the macro - -<P> -<TT>\fmtord{</TT><EM>text</EM><TT>}</TT> -<P> -is used to format the st, nd, rd, th bit. By default the ordinal is -formatted as a superscript, if the package option <TT>level</TT> is -used, it is level with the text. For example, if the current section -is 3, then <code>\ordinal{section}</code> will produce the output: -3<SUP>rd</SUP>. Note that the optional argument <I>gender</I> -occurs <I>at the end</I>. This argument may only take one of -the following values: <TT>m</TT> (masculine), <TT>f</TT> -(feminine) or <TT>n</TT> (neuter.) If <I>gender</I> is omitted, -or if the given gender has no meaning in the current language, -<TT>m</TT> is assumed. - -<P> -<B>Notes:</B> - -<OL> -<LI>the <TT>memoir</TT> class also defines a command called -<TT>\ordinal</TT> which takes a number as an argument instead of a -counter. In order to overcome this incompatiblity, if you want -to use the <TT>fmtcount</TT> package with the <TT>memoir</TT> class -you should use <TT>\FCordinal</TT> to access -<TT>fmtcount</TT>'s version of <TT>\ordinal</TT>, and use -<TT>\ordinal</TT> to use <TT>memoir</TT>'s version of that command. - -<P> -</LI> -<LI>As with all commands which have an optional argument as the -last argument, if the optional argument is omitted, any spaces -following the final argument will be ignored. Whereas, if the -optional argument is present, any spaces following the optional -argument won't be ignored. so <code>\ordinal{section} !</code> -will produce: 3<SUP>rd</SUP>! whereas - <code>\ordinal{section}[m] !</code> will produce: -3<SUP>rd</SUP> ! -</LI> -</OL> - -<P> - -<P> -<TT>\ordinalnum{</TT><EM>n</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> -This is like <TT>\ordinal</TT> but takes an actual number rather than a -counter as the argument. For example: <code>\ordinalnum{3}</code> will -produce: 3<SUP>rd</SUP>. - -<P> - -<P> -<TT>\numberstring{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> -This will print the value of <I>counter</I> as text. E.g. <code>\numberstring{section}</code> will produce: three. The optional -argument is the same as that for <TT>\ordinal</TT>. - -<P> - -<P> -<TT>\Numberstring{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> -This does the same as <TT>\numberstring</TT>, but with initial letters in -uppercase. For example, <code>\Numberstring{section}</code> will produce: -Three. - -<P> - -<P> -<TT>\NUMBERstring{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> -This does the same as <TT>\numberstring</TT>, but converts the string to -upper case. Note that -<code>\MakeUppercase{\NUMBERstring{</code><I>counter</I><code>}}</code> doesn't -work, due to the way that <TT>\MakeUppercase</TT> expands its -argument<A NAME="tex2html2" - HREF="#foot518"><SUP>1</SUP></A>. - -<P> - -<P> -<TT>\numberstringnum{</TT><EM>n</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> - -<P> -<TT>\Numberstringnum{</TT><EM>n</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> - -<P> -<TT>\NUMBERstringnum{</TT><EM>n</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> -Theses macros work like -<TT>\numberstring</TT>, <TT>\Numberstring</TT> and <TT>\NUMBERstring</TT>, -respectively, but take an actual number -rather than a counter as the argument. For example: -<code>\Numberstringnum{105}</code> will produce: One Hundred and Five. - -<P> - -<P> -<TT>\ordinalstring{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> -This will print the value of <I>counter</I> as a textual ordinal. -E.g. <code>\ordinalstring{section}</code> will produce: third. The -optional argument is the same as that for <TT>\ordinal</TT>. - -<P> - -<P> -<TT>\Ordinalstring{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> -This does the same as <TT>\ordinalstring</TT>, but with initial letters in -uppercase. For example, <code>\Ordinalstring{section}</code> will produce: -Third. - -<P> - -<P> -<TT>\ORDINALstring{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> -This does the same as <TT>\ordinalstring</TT>, but with all words in upper -case (see previous note about <TT>\MakeUppercase</TT>). - -<P> - -<P> -<TT>\ordinalstringnum{</TT><EM>n</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> - -<P> -<TT>\Ordinalstringnum{</TT><EM>n</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> - -<P> -<TT>\ORDINALstringnum{</TT><EM>n</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> -These macros work like <TT>\ordinalstring</TT>, <TT>\Ordinalstring</TT> and -<TT>\ORDINALstring</TT>, respectively, but take an actual number rather -than a counter as the argument. For example, -<code>\ordinalstringnum{3}</code> will produce: third. - -<P> -As from version 1.09, textual representations can be stored for -later use. This overcomes the problems encountered when you -attempt to use one of the above commands in <TT>\edef</TT>. - -<P> -Each of the following commands takes a label as the first argument, -the other arguments are as the analogous commands above. These -commands do not display anything, but store the textual -representation. This can later be retrieved using - -<P> -<TT>\FMCuse{</TT><EM>label</EM><TT>}</TT> -<P> -Note: with <TT>\storeordinal</TT> and <TT>\storeordinalnum</TT>, the -only bit that doesn't get expanded is <TT>\fmtord</TT>. So, for -example, <code>\storeordinalnum{mylabel}{3}</code> will be stored as -<code>3\relax \fmtord{rd}</code>. - -<P> - -<P> -<TT>\storeordinal{</TT><EM>label</EM><TT>}{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> - -<P> -<TT>\storeordinalstring{</TT><EM>label</EM><TT>}{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> - -<P> -<TT>\storeOrdinalstring{</TT><EM>label</EM><TT>}{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> - -<P> - -<P> -<TT>\storeORDINALstring{</TT><EM>label</EM><TT>}{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> - -<P> -<TT>\storenumberstring{</TT><EM>label</EM><TT>}{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> - -<P> -<TT>\storeNumberstring{</TT><EM>label</EM><TT>}{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> - -<P> -<TT>\storeNUMBERstring{</TT><EM>label</EM><TT>}{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> - -<P> -<TT>\storeordinalnum{</TT><EM>label</EM><TT>}{</TT><EM>number</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> - -<P> -<TT>\storeordinalstring{</TT><EM>label</EM><TT>}{</TT><EM>number</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> - -<P> -<TT>\storeOrdinalstringnum{</TT><EM>label</EM><TT>}{</TT><EM>number</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> - -<P> -<TT>\storeORDINALstringnum{</TT><EM>label</EM><TT>}{</TT><EM>number</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> - -<P> -<TT>\storenumberstring{</TT><EM>label</EM><TT>}{</TT><EM>number</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> - -<P> -<TT>\storeNumberstring{</TT><EM>label</EM><TT>}{</TT><EM>number</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> - -<P> -<TT>\storeNUMBERstring{</TT><EM>label</EM><TT>}{</TT><EM>number</EM><TT>}[</TT><EM>gender</EM><TT>]</TT> -<P> - -<P> - -<P> -<TT>\binary{</TT><EM>counter</EM><TT>}</TT> -<P> -This will print the -value of <I>counter</I> as a binary number. -E.g. <code>\binary{section}</code> will produce: 11. The declaration - -<P> -<TT>\padzeroes[</TT><EM>n</EM><TT>]</TT> -<P> -will ensure numbers are written to <I>n</I> digits, padding with -zeroes if necessary. E.g. <code>\padzeroes[8]\binary{section}</code> -will produce: 00000011. The default value for <I>n</I> is 17. - -<P> - -<P> -<TT>\binary{</TT><EM>n</EM><TT>}</TT> -<P> -This is like <TT>\binary</TT> but takes an actual number rather than a -counter as the argument. For example: <code>\binarynum{5}</code> will -produce: 101. - -<P> - -<P> -<TT>\octal{</TT><EM>counter</EM><TT>}</TT> -<P> -This will print the value of <I>counter</I> as an octal number. For -example, if you have a counter called, say <TT>mycounter</TT>, and -you set the value to 125, then <code>\octal{mycounter}</code> will produce: -177. Again, the number will be padded with zeroes if necessary, -depending on whether <TT>\padzeroes</TT> has been used. - -<P> - -<P> -<TT>\octalnum{</TT><EM>n</EM><TT>}</TT> -<P> -This is like <TT>\octal</TT> but takes an actual number rather than a -counter as the argument. For example: <code>\octalnum{125}</code> will -produce: 177. - -<P> - -<P> -<TT>\hexadecimal{</TT><EM>counter</EM><TT>}</TT> -<P> -This will print the value of <I>counter</I> as a hexadecimal number. -Going back to the counter used in the previous example, -<code>\hexadecimal{mycounter}</code> will produce: 7d. Again, the number -will be padded with zeroes if necessary, depending on whether -<TT>\padzeroes</TT> has been used. - -<P> - -<P> -<TT>\Hexadecimal{</TT><EM>counter</EM><TT>}</TT> -<P> -This does the same thing, but uses uppercase characters, e.g. <code>\Hexadecimal{mycounter}</code> will produce: 7D. - -<P> - -<P> -<TT>\hexadecimalnum{</TT><EM>n</EM><TT>}</TT> -<P> - -<P> -<TT>\Hexadecimalnum{</TT><EM>n</EM><TT>}</TT> -<P> -These are like <TT>\hexadecimal</TT> and <TT>\Hexadecimal</TT> -but take an actual number rather than a counter as the -argument. For example: <code>\hexadecimalnum{125}</code> will -produce: 7d, and <code>\Hexadecimalnum{125}</code> will -produce: 7D. - -<P> - -<P> -<TT>\decimal{</TT><EM>counter</EM><TT>}</TT> -<P> -This is similar to <TT>\arabic</TT> but the number can be padded with -zeroes depending on whether <TT>\padzeroes</TT> has been used. For -example: <code>\padzeroes[8]\decimal{section}</code> will produce: -00000005. - -<P> - -<P> -<TT>\decimalnum{</TT><EM>n</EM><TT>}</TT> -<P> -This is like <TT>\decimal</TT> but takes an actual number rather than a -counter as the argument. For example: -<code>\padzeroes[8]\decimalnum{5}</code> will produce: 00000005. - -<P> - -<P> -<TT>\aaalph{</TT><EM>counter</EM><TT>}</TT> -<P> -This will print the value of <I>counter</I> as: a b ... z aa bb -... zz etc. For example, <code>\aaalpha{mycounter}</code> will -produce: uuuuu if <TT>mycounter</TT> is set to 125. - -<P> - -<P> -<TT>\AAAlph{</TT><EM>counter</EM><TT>}</TT> -<P> -This does the same thing, but uses uppercase characters, e.g. <code>\AAAlph{mycounter}</code> will produce: UUUUU. - -<P> - -<P> -<TT>\aaalphnum{</TT><EM>n</EM><TT>}</TT> -<P> - -<P> -<TT>\AAAlphnum{</TT><EM>n</EM><TT>}</TT> -<P> -These macros are like <TT>\aaalph</TT> and <TT>\AAAlph</TT> -but take an actual number rather than a counter as the -argument. For example: <code>\aaalphnum{125}</code> will -produce: uuuuu, and <code>\AAAlphnum{125}</code> will -produce: UUUUU. - -<P> - -<P> -<TT>\abalph{</TT><EM>counter</EM><TT>}</TT> -<P> -This will print the value of <I>counter</I> as: a b ... z aa ab -... az etc. For example, <code>\abalpha{mycounter}</code> will -produce: du if <TT>mycounter</TT> is set to 125. - -<P> - -<P> -<TT>\ABAlph{</TT><EM>counter</EM><TT>}</TT> -<P> -This does the same thing, but uses uppercase characters, e.g. <code>\ABAlph{mycounter}</code> will produce: DU. - -<P> - -<P> -<TT>\abalphnum{</TT><EM>n</EM><TT>}</TT> -<P> - -<P> -<TT>\ABAlphnum{</TT><EM>n</EM><TT>}</TT> -<P> -These macros are like <TT>\abalph</TT> and <TT>\ABAlph</TT> -but take an actual number rather than a counter as the -argument. For example: <code>\abalphnum{125}</code> will -produce: du, and <code>\ABAlphnum{125}</code> will -produce: DU. - -<P> - -<H1><A NAME="SECTION00050000000000000000"> -Package Options</A> -</H1> - -<P> -The following options can be passed to this package: - -<P> -<TABLE CELLPADDING=3> -<TR><TD ALIGN="LEFT"><TT>raise</TT></TD> -<TD ALIGN="LEFT">make ordinal st,nd,rd,th appear as superscript</TD> -</TR> -<TR><TD ALIGN="LEFT"><TT>level</TT></TD> -<TD ALIGN="LEFT">make ordinal st,nd,rd,th appear level with rest of -text</TD> -</TR> -</TABLE> - -<P> -These can also be set using the command: - -<P> - -<P> -<TT>\fmtcountsetoptions</TT><code>{fmtord=</code><I>type</I><code>}</code> -<P> -where <I>type</I> is either <TT>level</TT> or -<TT>raise</TT>. - -<P> - -<H1><A NAME="SECTION00060000000000000000"> -Multilingual Support</A> -</H1> - -<P> -Version 1.02 of the <TT>fmtcount</TT> package now has -limited multilingual support. The following languages are -implemented: English, Spanish, Portuguese, French, French (Swiss) -and French (Belgian). German support was added in version -1.1.<A NAME="tex2html3" - HREF="#foot463"><SUP>2</SUP></A>Italian support was added in version 1.31.<A NAME="tex2html4" - HREF="#foot464"><SUP>3</SUP></A> -<P> -The package checks to see if the command <TT>\l@</TT><I>language</I> is -defined<A NAME="tex2html5" - HREF="#foot519"><SUP>4</SUP></A>, -and will load the code for those languages. The commands -<TT>\ordinal</TT>, <TT>\ordinalstring</TT> and <TT>\numberstring</TT> (and their -variants) will then be formatted in the currently selected language. - -<P> -If the French language is selected, the French (France) version -will be used by default (e.g. soxiante-dix for 70). To -select the Swiss or Belgian variants (e.g. septente for 70) use: -<code>\fmtcountsetoptions{french=</code><I>dialect</I><code>}</code> -where <I>dialect</I> is either <TT>swiss</TT> or <TT>belgian</TT>. -You can also use this command to change the action of -<TT>\ordinal</TT>. -<code>\fmtcountsetoptions{abbrv=true}</code> to produce ordinals -of the form 2<SUP>e</SUP> or -<code>\fmtcountsetoptions{abbrv=false}</code> to produce ordinals -of the form 2<SUP>eme</SUP> (default). - -<P> -The <TT>french</TT> and <TT>abbrv</TT> settings only have an -effect if the French language has been defined. - -<P> -The male gender for all languages is used by default, however the -feminine or neuter forms can be obtained by passing <TT>f</TT> or -<TT>n</TT> as an optional argument to <TT>\ordinal</TT>, -<TT>\ordinalnum</TT> etc. For example: -<code>\numberstring{section}[f]</code>. Note that the optional argument -comes <I>after</I> the compulsory argument. If a gender is -not defined in a given language, the masculine version will -be used instead. - -<P> -Let me know if you find any spelling mistakes (has been known -to happen in English, let alone other languages with which I'm not so -familiar.) If you want to add support for another language, -you will need to let me know how to form the numbers and ordinals -from 0 to 99999 in that language for each gender. - -<P> - -<H1><A NAME="SECTION00070000000000000000"> -Configuration File <TT>fmtcount.cfg</TT></A> -</H1> - -<P> -You can save your preferred default settings to a file called -<TT>fmtcount.cfg</TT>, and place it on the TeX path. These -settings will then be loaded by the <TT>fmtcount</TT> -package. - -<P> -Note that if you are using the <TT>datetime</TT> package, -the <TT>datetime.cfg</TT> configuration file will override -the <TT>fmtcount.cfg</TT> configuration file. -For example, if <TT>datetime.cfg</TT> has the line: -<PRE> -\renewcommand{\fmtord}[1]{\textsuperscript{\underline{#1}}} -</PRE> -and if <TT>fmtcount.cfg</TT> has the line: -<PRE> -\fmtcountsetoptions{fmtord=level} -</PRE> -then the former definition of <TT>\fmtord</TT> will take -precedence. - -<P> - -<H1><A NAME="SECTION00080000000000000000"> -LaTeX2HTML style</A> -</H1> - -<P> -The LaTeX2HTML style file <TT>fmtcount.perl</TT> is provided. -The following limitations apply: - -<P> - -<UL> -<LI><TT>\padzeroes</TT> only has an effect in the preamble. - -<P> -</LI> -<LI>The configuration file -<TT>fmtcount.cfg</TT> is currently ignored. (This is because -I can't work out the correct code to do this. If you -know how to do this, please let me know.) You can however -do: -<PRE> -\usepackage{fmtcount} -\html{\input{fmtcount.cfg}} -</PRE> -This, I agree, is an unpleasant cludge. - -<P> -</LI> -</UL> - -<P> - -<H1><A NAME="SECTION00090000000000000000"> -Acknowledgements</A> -</H1> - -<P> -I would like to thank my mother for the French and Portuguese -support and my Spanish dictionary for the Spanish support. -Thank you to K. H. Fricke for providing me with the German -translations and to Edoardo Pasca for providing me with the -Italian translations. - -<P> - -<H1><A NAME="SECTION000100000000000000000"> -Troubleshooting</A> -</H1> - -<P> -There is a FAQ available at: -<TT><A NAME="tex2html6" - HREF="http://theoval.cmp.uea.ac.uk/~nlct/latex/packages/faq/">http://theoval.cmp.uea.ac.uk/~nlct/latex/packages/faq/</A></TT>. - -<P> -<BR><HR><H4>Footnotes</H4> -<DL> -<DT><A NAME="foot518">... -argument</A><A - HREF="fmtcount-manual.html#tex2html2"><SUP>1</SUP></A></DT> -<DD>See all the various postings to -<TT>comp.text.tex</TT> about <TT>\MakeUppercase</TT> - -</DD> -<DT><A NAME="foot463">... -1.1.</A><A - HREF="fmtcount-manual.html#tex2html3"><SUP>2</SUP></A></DT> -<DD>Thanks to K. H. Fricke for supplying the information. - -</DD> -<DT><A NAME="foot464">... 1.31.</A><A - HREF="fmtcount-manual.html#tex2html4"><SUP>3</SUP></A></DT> -<DD>Thanks to -Edoardo Pasca for supplying the information. - -</DD> -<DT><A NAME="foot519">... -defined</A><A - HREF="fmtcount-manual.html#tex2html5"><SUP>4</SUP></A></DT> -<DD>this will be true if you have loaded <TT>babel</TT> - -</DD> -</DL> -<BR><HR> -<ADDRESS> -<A href="http://theoval.cmp.uea.ac.uk/~nlct/">Nicola L. C. Talbot</A>. -<A HREF="http://www.cmp.uea.ac.uk/">School of Computing Sciences</A>. -<A HREF="http://www.uea.ac.uk/">University of East Anglia.</A> -Last Modified: 2009-10-02 -</ADDRESS> -</BODY> -</HTML> diff --git a/Master/texmf-dist/doc/latex/fmtcount/fmtcount.pdf b/Master/texmf-dist/doc/latex/fmtcount/fmtcount.pdf Binary files differindex 8448794662c..1d5a705eacc 100644 --- a/Master/texmf-dist/doc/latex/fmtcount/fmtcount.pdf +++ b/Master/texmf-dist/doc/latex/fmtcount/fmtcount.pdf |