summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/fmtcount/fc-frlargenum.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-09-25 22:58:08 +0000
committerKarl Berry <karl@freefriends.org>2012-09-25 22:58:08 +0000
commit5972810af729299af222498461a459998df88906 (patch)
treef32df205f6b61c129fda672be1edd763854cafc8 /Master/texmf-dist/doc/latex/fmtcount/fc-frlargenum.tex
parentd21e43ac989ba93e0f327fc32fd99f3b1c3f0c6e (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/fc-frlargenum.tex')
-rw-r--r--Master/texmf-dist/doc/latex/fmtcount/fc-frlargenum.tex128
1 files changed, 128 insertions, 0 deletions
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}