summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/fmtcount
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-12 23:55:56 +0000
committerKarl Berry <karl@freefriends.org>2006-01-12 23:55:56 +0000
commit6c7621f5f97859c7bec9827d2756a9da8195fd04 (patch)
tree67e3925bb54d7351dd49244aa5f5ad096e5bc76f /Master/texmf-dist/tex/latex/fmtcount
parent0fed233a8ca0ae49664e2115038508db416e65f1 (diff)
fmtcount
git-svn-id: svn://tug.org/texlive/trunk@926 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/fmtcount')
-rw-r--r--Master/texmf-dist/tex/latex/fmtcount/fc-english.def406
-rw-r--r--Master/texmf-dist/tex/latex/fmtcount/fc-french.def960
-rw-r--r--Master/texmf-dist/tex/latex/fmtcount/fc-portuges.def582
-rw-r--r--Master/texmf-dist/tex/latex/fmtcount/fc-spanish.def701
-rw-r--r--Master/texmf-dist/tex/latex/fmtcount/fmtcount.sty487
5 files changed, 3136 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/fmtcount/fc-english.def b/Master/texmf-dist/tex/latex/fmtcount/fc-english.def
new file mode 100644
index 00000000000..6cdb240e170
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/fmtcount/fc-english.def
@@ -0,0 +1,406 @@
+%%
+%% This is file `fc-english.def',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% fmtcount.dtx (with options: `fc-english.def,package')
+%% Copyright (C) 2005 Nicola Talbot, all rights reserved.
+%% If you modify this file, you must change its name first.
+%% You are NOT ALLOWED to distribute this file alone. You are NOT
+%% ALLOWED to take money for the distribution or use of either this
+%% file or a changed version, except for a nominal charge for copying
+%% etc.
+%% \CharacterTable
+%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%% Digits \0\1\2\3\4\5\6\7\8\9
+%% Exclamation \! Double quote \" Hash (number) \#
+%% Dollar \$ Percent \% Ampersand \&
+%% Acute accent \' Left paren \( Right paren \)
+%% Asterisk \* Plus \+ Comma \,
+%% Minus \- Point \. Solidus \/
+%% Colon \: Semicolon \; Less than \<
+%% Equals \= Greater than \> Question mark \?
+%% Commercial at \@ Left bracket \[ Backslash \\
+%% Right bracket \] Circumflex \^ Underscore \_
+%% Grave accent \` Left brace \{ Vertical bar \|
+%% Right brace \} Tilde \~}
+\ProvidesFile{fc-english}[2005/04/29]
+\newcommand{\@ordinalMenglish}[1]{%
+\@orgargctr=#1\relax
+\@ordinalctr=#1%
+\@modulo{\@ordinalctr}{100}%
+\ifnum\@ordinalctr=11
+\the\@orgargctr\fmtord{th}%
+\else
+\ifnum\@ordinalctr=12
+\the\@orgargctr\fmtord{th}%
+\else
+\ifnum\@ordinalctr=13
+\the\@orgargctr\fmtord{th}%
+\else
+\@modulo{\@ordinalctr}{10}%
+\ifcase\@ordinalctr
+\the\@orgargctr\fmtord{th}% case 0
+\or \the\@orgargctr\fmtord{st}% case 1
+\or \the\@orgargctr\fmtord{nd}% case 2
+\or \the\@orgargctr\fmtord{rd}% case 3
+\else
+\the\@orgargctr\fmtord{th}% default case
+\fi
+\fi
+\fi
+\fi
+}
+\let\@ordinalFenglish=\@ordinalMenglish
+\providecommand{\andname}{and}
+
+\newcommand{\@@unitstringenglish}[1]{%
+\ifcase#1\relax
+zero%
+\or one%
+\or two%
+\or three%
+\or four%
+\or five%
+\or six%
+\or seven%
+\or eight%
+\or nine%
+\fi
+}
+
+\newcommand{\@@tenstringenglish}[1]{%
+\ifcase#1\relax
+\or ten%
+\or twenty%
+\or thirty%
+\or forty%
+\or fifty%
+\or sixty%
+\or seventy%
+\or eighty%
+\or ninety%
+\fi
+}
+
+\newcommand{\@@teenstringenglish}[1]{%
+\ifcase#1\relax
+ten%
+\or eleven%
+\or twelve%
+\or thirteen%
+\or fourteen%
+\or fifteen%
+\or sixteen%
+\or seventeen%
+\or eighteen%
+\or nineteen%
+\fi
+}
+
+\newcommand{\@@Unitstringenglish}[1]{%
+\ifcase#1\relax
+Zero%
+\or One%
+\or Two%
+\or Three%
+\or Four%
+\or Five%
+\or Six%
+\or Seven%
+\or Eight%
+\or Nine%
+\fi
+}
+
+\newcommand{\@@Tenstringenglish}[1]{%
+\ifcase#1\relax
+\or Ten%
+\or Twenty%
+\or Thirty%
+\or Forty%
+\or Fifty%
+\or Sixty%
+\or Seventy%
+\or Eighty%
+\or Ninety%
+\fi
+}
+
+\newcommand{\@@Teenstringenglish}[1]{%
+\ifcase#1\relax
+Ten%
+\or Eleven%
+\or Twelve%
+\or Thirteen%
+\or Fourteen%
+\or Fifteen%
+\or Sixteen%
+\or Seventeen%
+\or Eighteen%
+\or Nineteen%
+\fi
+}
+
+\newcommand{\@@numberstringenglish}[1]{%
+\ifnum#1>99999
+\PackageError{fmtcount}{Out of range}%
+{This macro only works for values less than 100000}%
+\else
+\ifnum#1<0
+\PackageError{fmtcount}{Negative numbers not permitted}%
+{This macro does not work for negative numbers, however
+you can try typing "minus" first, and then pass the modulus of
+this number}%
+\fi
+\fi
+\@strctr=#1\relax \divide\@strctr by 1000\relax
+\ifnum\@strctr>9
+\divide\@strctr by 10
+\ifnum\@strctr>1
+\@tenstring{\@strctr}%
+\@strctr=#1 \divide\@strctr by 1000\relax
+\@modulo{\@strctr}{10}%
+\ifnum\@strctr>0 -\@unitstring{\@strctr}\fi
+\else
+\@strctr=#1\relax
+\divide\@strctr by 1000
+\@modulo{\@strctr}{10}%
+\@teenstring{\@strctr}%
+\fi
+\ \@thousand%
+\else
+\ifnum\@strctr>0 \@unitstring{\@strctr}\ \@thousand\fi
+\fi
+\@strctr=#1\relax \@modulo{\@strctr}{1000}%
+\divide\@strctr by 100
+\ifnum\@strctr>0
+\ifnum#1>1000 \ \fi\@unitstring{\@strctr}\ \@hundred%
+\fi
+\@strctr=#1\relax \@modulo{\@strctr}{100}%
+\ifnum#1>100 \ifnum\@strctr>0 \ \andname\ \fi\fi
+\ifnum\@strctr>19
+\divide\@strctr by 10
+\@tenstring{\@strctr}%
+\@strctr=#1\relax \@modulo{\@strctr}{10}%
+\ifnum\@strctr>0
+-\@unitstring{\@strctr}%
+\fi
+\else
+\ifnum\@strctr<10
+\ifnum\@strctr=0
+\ifnum#1<100 \@unitstring{\@strctr}\fi
+\else
+\@unitstring{\@strctr}%
+\fi
+\else
+\@modulo{\@strctr}{10}%
+\@teenstring{\@strctr}%
+\fi
+\fi
+}
+
+\newcommand{\@numberstringMenglish}[1]{%
+\let\@unitstring=\@@unitstringenglish
+\let\@teenstring=\@@teenstringenglish
+\let\@tenstring=\@@tenstringenglish
+\def\@hundred{hundred}\def\@thousand{thousand}%
+\@@numberstringenglish{#1}}
+
+\let\@numberstringFenglish=\@numberstringMenglish
+
+\newcommand{\@NumberstringMenglish}[1]{%
+\let\@unitstring=\@@Unitstringenglish
+\let\@teenstring=\@@Teenstringenglish
+\let\@tenstring=\@@Tenstringenglish
+\def\@hundred{Hundred}\def\@thousand{Thousand}%
+\@@numberstringenglish{#1}}
+
+\let\@NumberstringFenglish=\@NumberstringMenglish
+\newcommand{\@@unitthstringenglish}[1]{%
+\ifcase#1\relax
+zeroth%
+\or first%
+\or second%
+\or third%
+\or fourth%
+\or fifth%
+\or sixth%
+\or seventh%
+\or eighth%
+\or ninth%
+\fi
+}
+
+\newcommand{\@@tenthstringenglish}[1]{%
+\ifcase#1\relax
+\or tenth%
+\or twentieth%
+\or thirtieth%
+\or fortieth%
+\or fiftieth%
+\or sixtieth%
+\or seventieth%
+\or eightieth%
+\or ninetieth%
+\fi
+}
+
+\newcommand{\@@teenthstringenglish}[1]{%
+\ifcase#1\relax
+tenth%
+\or eleventh%
+\or twelfth%
+\or thirteenth%
+\or fourteenth%
+\or fifteenth%
+\or sixteenth%
+\or seventeenth%
+\or eighteenth%
+\or nineteenth%
+\fi
+}
+
+\newcommand{\@@Unitthstringenglish}[1]{%
+\ifcase#1\relax
+Zeroth%
+\or First%
+\or Second%
+\or Third%
+\or Fourth%
+\or Fifth%
+\or Sixth%
+\or Seventh%
+\or Eighth%
+\or Ninth%
+\fi
+}
+
+\newcommand{\@@Tenthstringenglish}[1]{%
+\ifcase#1\relax
+\or Tenth%
+\or Twentieth%
+\or Thirtieth%
+\or Fortieth%
+\or Fiftieth%
+\or Sixtieth%
+\or Seventieth%
+\or Eightieth%
+\or Ninetieth%
+\fi
+}
+
+\newcommand{\@@Teenthstringenglish}[1]{%
+\ifcase#1\relax
+Tenth%
+\or Eleventh%
+\or Twelfth%
+\or Thirteenth%
+\or Fourteenth%
+\or Fifteenth%
+\or Sixteenth%
+\or Seventeenth%
+\or Eighteenth%
+\or Nineteenth%
+\fi
+}
+
+\newcommand{\@@ordinalstringenglish}[1]{%
+\@strctr=#1\relax
+\ifnum#1>99999
+\PackageError{fmtcount}{Out of range}%
+{This macro only works for values less than 100000 (value given: \number\@strctr)}%
+\else
+\ifnum#1<0
+\PackageError{fmtcount}{Negative numbers not permitted}%
+{This macro does not work for negative numbers, however
+you can try typing "minus" first, and then pass the modulus of
+this number}%
+\fi
+\fi
+\@strctr=#1\relax \divide\@strctr by 1000\relax
+\ifnum\@strctr>9
+\divide\@strctr by 10
+\ifnum\@strctr>1\relax
+ \@tenstring{\@strctr}%
+ \@strctr=#1\relax
+ \divide\@strctr by 1000\relax
+ \@modulo{\@strctr}{10}%
+ \ifnum\@strctr>0 -\@unitstring{\@strctr}\fi
+\else
+ \@strctr=#1\relax \divide\@strctr by 1000\relax
+ \@modulo{\@strctr}{10}%
+ \@teenstring{\@strctr}%
+\fi
+\@strctr=#1\relax \@modulo{\@strctr}{1000}%
+\ifnum\@strctr=0\ \@thousandth\else\ \@thousand \fi
+\else
+\ifnum\@strctr>0\relax
+\@unitstring{\@strctr}%
+\@strctr=#1\relax \@modulo{\@strctr}{1000}%
+\ifnum\@strctr=0\ \@thousandth\else\ \@thousand\fi
+\fi
+\fi
+\@strctr=#1\relax \@modulo{\@strctr}{1000}%
+\divide\@strctr by 100
+\ifnum\@strctr>0
+\ifnum#1>1000 \ \fi\@unitstring{\@strctr}%
+\@strctr=#1\relax \@modulo{\@strctr}{100}%
+\ifnum\@strctr=0\ \@hundredth\else\ \@hundred\fi
+\fi
+\@strctr=#1\relax \@modulo{\@strctr}{100}%
+\ifnum#1>100 \ifnum\@strctr>0\ and \fi\fi
+\ifnum\@strctr>19
+\@tmpstrctr=\@strctr
+\divide\@strctr by 10
+\@modulo{\@tmpstrctr}{10}%
+\ifnum\@tmpstrctr=0 \@tenthstring{\@strctr}\else \@tenstring{\@strctr}\fi
+\@strctr=#1\relax \@modulo{\@strctr}{10}%
+\ifnum\@strctr>0
+-\@unitthstring{\@strctr}%
+\fi
+\else
+\ifnum\@strctr<10
+\ifnum\@strctr=0
+\ifnum#1<100 \@unitthstring{\@strctr}\fi
+\else
+\@unitthstring{\@strctr}%
+\fi
+\else
+\@modulo{\@strctr}{10}%
+\@teenthstring{\@strctr}%
+\fi
+\fi
+}
+
+\newcommand{\@ordinalstringMenglish}[1]{%
+\let\@unitthstring=\@@unitthstringenglish
+\let\@teenthstring=\@@teenthstringenglish
+\let\@tenthstring=\@@tenthstringenglish
+\let\@unitstring=\@@unitstringenglish
+\let\@teenstring=\@@teenstringenglish
+\let\@tenstring=\@@tenstringenglish
+\def\@hundred{hundred}\def\@thousand{thousand}%
+\def\@hundredth{hundredth}\def\@thousandth{thousandth}%
+\@@ordinalstringenglish{#1}}
+
+\let\@ordinalstringFenglish=\@ordinalstringMenglish
+
+\newcommand{\@OrdinalstringMenglish}[1]{%
+\let\@unitthstring=\@@Unitthstringenglish
+\let\@teenthstring=\@@Teenthstringenglish
+\let\@tenthstring=\@@Tenthstringenglish
+\let\@unitstring=\@@Unitstringenglish
+\let\@teenstring=\@@Teenstringenglish
+\let\@tenstring=\@@Tenstringenglish
+\def\@hundred{Hundred}\def\@thousand{Thousand}%
+\def\@hundredth{Hundredth}\def\@thousandth{Thousandth}%
+\@@ordinalstringenglish{#1}}
+
+\let\@OrdinalstringFenglish=\@OrdinalstringMenglish
+
+\endinput
+%%
+%% End of file `fc-english.def'.
diff --git a/Master/texmf-dist/tex/latex/fmtcount/fc-french.def b/Master/texmf-dist/tex/latex/fmtcount/fc-french.def
new file mode 100644
index 00000000000..2d962c670d4
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/fmtcount/fc-french.def
@@ -0,0 +1,960 @@
+%%
+%% This is file `fc-french.def',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% fmtcount.dtx (with options: `fc-french.def,package')
+%% Copyright (C) 2005 Nicola Talbot, all rights reserved.
+%% If you modify this file, you must change its name first.
+%% You are NOT ALLOWED to distribute this file alone. You are NOT
+%% ALLOWED to take money for the distribution or use of either this
+%% file or a changed version, except for a nominal charge for copying
+%% etc.
+%% \CharacterTable
+%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%% Digits \0\1\2\3\4\5\6\7\8\9
+%% Exclamation \! Double quote \" Hash (number) \#
+%% Dollar \$ Percent \% Ampersand \&
+%% Acute accent \' Left paren \( Right paren \)
+%% Asterisk \* Plus \+ Comma \,
+%% Minus \- Point \. Solidus \/
+%% Colon \: Semicolon \; Less than \<
+%% Equals \= Greater than \> Question mark \?
+%% Commercial at \@ Left bracket \[ Backslash \\
+%% Right bracket \] Circumflex \^ Underscore \_
+%% Grave accent \` Left brace \{ Vertical bar \|
+%% Right brace \} Tilde \~}
+\ProvidesFile{fc-french.def}[2005/04/29]
+\newcommand{\@@unitstringfrench}[1]{%
+\ifcase#1\relax
+zero%
+\or un%
+\or deux%
+\or trois%
+\or quatre%
+\or cinq%
+\or six%
+\or sept%
+\or huit%
+\or neuf%
+\fi
+}
+
+\newcommand{\@@unitstringFfrench}[1]{%
+\ifnum#1=1\relax
+une%
+\else\@@unitstringfrench{#1}%
+\fi
+}
+
+\newcommand{\@@tenstringfrench}[1]{%
+\ifcase#1\relax
+\or dix%
+\or vingt%
+\or trente%
+\or quarante%
+\or cinquante%
+\or soixante%
+\or septente%
+\or huitante%
+\or nonente%
+\or cent%
+\fi
+}
+
+\newcommand{\@@teenstringfrench}[1]{%
+\ifcase#1\relax
+dix%
+\or onze%
+\or douze%
+\or treize%
+\or quatorze%
+\or quinze%
+\or seize%
+\or dix-sept%
+\or dix-huit%
+\or dix-neuf%
+\fi
+}
+
+\newcommand{\@@seventiesfrench}[1]{%
+\@tenstring{6}%
+\ifnum#1=1\relax
+\ \@andname\
+\else
+-%
+\fi
+\@teenstring{#1}%
+}
+
+\newcommand{\@@eightiesfrench}[1]{%
+\@unitstring{4}-\@tenstring{2}%
+\ifnum#1>0
+-\@unitstring{#1}%
+\else
+s%
+\fi
+}
+
+\newcommand{\@@ninetiesfrench}[1]{%
+\@unitstring{4}-\@tenstring{2}-\@teenstring{#1}%
+}
+
+\newcommand{\@@seventiesfrenchswiss}[1]{%
+\@tenstring{7}%
+\ifnum#1=1\ \@andname\ \fi
+\ifnum#1>1-\fi
+\ifnum#1>0\@unitstring{#1}\fi
+}
+
+\newcommand{\@@eightiesfrenchswiss}[1]{%
+\@tenstring{8}%
+\ifnum#1=1\ \@andname\ \fi
+\ifnum#1>1-\fi
+\ifnum#1>0\@unitstring{#1}\fi
+}
+
+\newcommand{\@@ninetiesfrenchswiss}[1]{%
+\@tenstring{9}%
+\ifnum#1=1\ \@andname\ \fi
+\ifnum#1>1-\fi
+\ifnum#1>0\@unitstring{#1}\fi
+}
+
+\newcommand{\@@Unitstringfrench}[1]{%
+\ifcase#1\relax
+Zero%
+\or Un%
+\or Deux%
+\or Trois%
+\or Quatre%
+\or Cinq%
+\or Six%
+\or Sept%
+\or Huit%
+\or Neuf%
+\fi
+}
+
+\newcommand{\@@UnitstringFfrench}[1]{%
+\ifnum#1=1\relax
+Une%
+\else \@@Unitstringfrench{#1}%
+\fi
+}
+
+\newcommand{\@@Tenstringfrench}[1]{%
+\ifcase#1\relax
+\or Dix%
+\or Vingt%
+\or Trente%
+\or Quarante%
+\or Cinquante%
+\or Soixante%
+\or Septente%
+\or Huitante%
+\or Nonente%
+\or Cent%
+\fi
+}
+
+\newcommand{\@@Teenstringfrench}[1]{%
+\ifcase#1\relax
+Dix%
+\or Onze%
+\or Douze%
+\or Treize%
+\or Quatorze%
+\or Quinze%
+\or Seize%
+\or Dix-Sept%
+\or Dix-Huit%
+\or Dix-Neuf%
+\fi
+}
+
+\newcommand{\@numberstringMfrenchswiss}[1]{%
+\let\@unitstring=\@@unitstringfrench
+\let\@teenstring=\@@teenstringfrench
+\let\@tenstring=\@@tenstringfrench
+\let\@seventies=\@@seventiesfrenchswiss
+\let\@eighties=\@@eightiesfrenchswiss
+\let\@nineties=\@@ninetiesfrenchswiss
+\def\@hundred{cent}\def\@thousand{mille}%
+\def\@andname{et}%
+\@@numberstringfrench{#1}}
+
+\newcommand{\@numberstringMfrenchfrance}[1]{%
+\let\@unitstring=\@@unitstringfrench
+\let\@teenstring=\@@teenstringfrench
+\let\@tenstring=\@@tenstringfrench
+\let\@seventies=\@@seventiesfrench
+\let\@eighties=\@@eightiesfrench
+\let\@nineties=\@@ninetiesfrench
+\def\@hundred{cent}\def\@thousand{mille}%
+\def\@andname{et}%
+\@@numberstringfrench{#1}}
+
+\newcommand{\@numberstringMfrenchbelgian}[1]{%
+\let\@unitstring=\@@unitstringfrench
+\let\@teenstring=\@@teenstringfrench
+\let\@tenstring=\@@tenstringfrench
+\let\@seventies=\@@seventiesfrenchswiss
+\let\@eighties=\@@eightiesfrench
+\let\@nineties=\@@ninetiesfrench
+\def\@hundred{cent}\def\@thousand{mille}%
+\def\@andname{et}%
+\@@numberstringfrench{#1}}
+
+\let\@numberstringMfrench=\@numberstringMfrenchfrance
+
+\newcommand{\@numberstringFfrenchswiss}[1]{%
+\let\@unitstring=\@@unitstringFfrench
+\let\@teenstring=\@@teenstringfrench
+\let\@tenstring=\@@tenstringfrench
+\let\@seventies=\@@seventiesfrenchswiss
+\let\@eighties=\@@eightiesfrenchswiss
+\let\@nineties=\@@ninetiesfrenchswiss
+\def\@hundred{cent}\def\@thousand{mille}%
+\def\@andname{et}%
+\@@numberstringfrench{#1}}
+
+\newcommand{\@numberstringFfrenchfrance}[1]{%
+\let\@unitstring=\@@unitstringFfrench
+\let\@teenstring=\@@teenstringfrench
+\let\@tenstring=\@@tenstringfrench
+\let\@seventies=\@@seventiesfrench
+\let\@eighties=\@@eightiesfrench
+\let\@nineties=\@@ninetiesfrench
+\def\@hundred{cent}\def\@thousand{mille}%
+\def\@andname{et}%
+\@@numberstringfrench{#1}}
+
+\newcommand{\@numberstringFfrenchbelgian}[1]{%
+\let\@unitstring=\@@unitstringFfrench
+\let\@teenstring=\@@teenstringfrench
+\let\@tenstring=\@@tenstringfrench
+\let\@seventies=\@@seventiesfrenchswiss
+\let\@eighties=\@@eightiesfrench
+\let\@nineties=\@@ninetiesfrench
+\def\@hundred{cent}\def\@thousand{mille}%
+\def\@andname{et}%
+\@@numberstringfrench{#1}}
+
+\let\@numberstringFfrench=\@numberstringFfrenchfrance
+
+\newcommand{\@NumberstringMfrenchswiss}[1]{%
+\let\@unitstring=\@@Unitstringfrench
+\let\@teenstring=\@@Teenstringfrench
+\let\@tenstring=\@@Tenstringfrench
+\let\@seventies=\@@seventiesfrenchswiss
+\let\@eighties=\@@eightiesfrenchswiss
+\let\@nineties=\@@ninetiesfrenchswiss
+\def\@hundred{Cent}\def\@thousand{Mille}%
+\def\@andname{et}%
+\@@numberstringfrench{#1}}
+
+\newcommand{\@NumberstringMfrenchfrance}[1]{%
+\let\@unitstring=\@@Unitstringfrench
+\let\@teenstring=\@@Teenstringfrench
+\let\@tenstring=\@@Tenstringfrench
+\let\@seventies=\@@seventiesfrench
+\let\@eighties=\@@eightiesfrench
+\let\@nineties=\@@ninetiesfrench
+\def\@hundred{Cent}\def\@thousand{Mille}%
+\def\@andname{et}%
+\@@numberstringfrench{#1}}
+
+\newcommand{\@NumberstringMfrenchbelgian}[1]{%
+\let\@unitstring=\@@Unitstringfrench
+\let\@teenstring=\@@Teenstringfrench
+\let\@tenstring=\@@Tenstringfrench
+\let\@seventies=\@@seventiesfrenchswiss
+\let\@eighties=\@@eightiesfrench
+\let\@nineties=\@@ninetiesfrench
+\def\@hundred{Cent}\def\@thousand{Mille}%
+\def\@andname{et}%
+\@@numberstringfrench{#1}}
+
+\let\@NumberstringMfrench=\@NumberstringMfrenchfrance
+
+\newcommand{\@NumberstringFfrenchswiss}[1]{%
+\let\@unitstring=\@@UnitstringFfrench
+\let\@teenstring=\@@Teenstringfrench
+\let\@tenstring=\@@Tenstringfrench
+\let\@seventies=\@@seventiesfrenchswiss
+\let\@eighties=\@@eightiesfrenchswiss
+\let\@nineties=\@@ninetiesfrenchswiss
+\def\@hundred{Cent}\def\@thousand{Mille}%
+\def\@andname{et}%
+\@@numberstringfrench{#1}}
+
+\newcommand{\@NumberstringFfrenchfrance}[1]{%
+\let\@unitstring=\@@UnitstringFfrench
+\let\@teenstring=\@@Teenstringfrench
+\let\@tenstring=\@@Tenstringfrench
+\let\@seventies=\@@seventiesfrench
+\let\@eighties=\@@eightiesfrench
+\let\@nineties=\@@ninetiesfrench
+\def\@hundred{Cent}\def\@thousand{Mille}%
+\def\@andname{et}%
+\@@numberstringfrench{#1}}
+
+\newcommand{\@NumberstringFfrenchbelgian}[1]{%
+\let\@unitstring=\@@UnitstringFfrench
+\let\@teenstring=\@@Teenstringfrench
+\let\@tenstring=\@@Tenstringfrench
+\let\@seventies=\@@seventiesfrenchswiss
+\let\@eighties=\@@eightiesfrench
+\let\@nineties=\@@ninetiesfrench
+\def\@hundred{Cent}\def\@thousand{Mille}%
+\def\@andname{et}%
+\@@numberstringfrench{#1}}
+
+\let\@NumberstringFfrench=\@NumberstringFfrenchfrance
+
+\newcommand{\@ordinalstringMfrenchswiss}[1]{%
+\ifnum#1=1\relax
+premier%
+\else
+\let\@unitthstring=\@@unitthstringfrench
+\let\@unitstring=\@@unitstringfrench
+\let\@teenthstring=\@@teenthstringfrench
+\let\@teenstring=\@@teenstringfrench
+\let\@tenthstring=\@@tenthstringfrench
+\let\@tenstring=\@@tenstringfrench
+\let\@seventieths=\@@seventiethsfrenchswiss
+\let\@eightieths=\@@eightiethsfrenchswiss
+\let\@ninetieths=\@@ninetiethsfrenchswiss
+\let\@seventies=\@@seventiesfrenchswiss
+\let\@eighties=\@@eightiesfrenchswiss
+\let\@nineties=\@@ninetiesfrenchswiss
+\def\@hundredth{centi\`eme}\def\@hundred{cent}%
+\def\@thousandth{mili\`eme}\def\@thousand{mille}%
+\def\@andname{et}%
+\@@ordinalstringfrench{#1}%
+\fi}
+
+\newcommand{\@ordinalstringMfrenchfrance}[1]{%
+\ifnum#1=1\relax
+premier%
+\else
+\let\@unitthstring=\@@unitthstringfrench
+\let\@unitstring=\@@unitstringfrench
+\let\@teenthstring=\@@teenthstringfrench
+\let\@teenstring=\@@teenstringfrench
+\let\@tenthstring=\@@tenthstringfrench
+\let\@tenstring=\@@tenstringfrench
+\let\@seventieths=\@@seventiethsfrench
+\let\@eightieths=\@@eightiethsfrench
+\let\@ninetieths=\@@ninetiethsfrench
+\let\@seventies=\@@seventiesfrench
+\let\@eighties=\@@eightiesfrench
+\let\@nineties=\@@ninetiesfrench
+\let\@teenstring=\@@teenstringfrench
+\def\@hundredth{centi\`eme}\def\@hundred{cent}%
+\def\@thousandth{mili\`eme}\def\@thousand{mille}%
+\def\@andname{et}%
+\@@ordinalstringfrench{#1}%
+\fi}
+
+\newcommand{\@ordinalstringMfrenchbelgian}[1]{%
+\ifnum#1=1\relax
+premier%
+\else
+\let\@unitthstring=\@@unitthstringfrench
+\let\@unitstring=\@@unitstringfrench
+\let\@teenthstring=\@@teenthstringfrench
+\let\@teenstring=\@@teenstringfrench
+\let\@tenthstring=\@@tenthstringfrench
+\let\@tenstring=\@@tenstringfrench
+\let\@seventieths=\@@seventiethsfrenchswiss
+\let\@eightieths=\@@eightiethsfrench
+\let\@ninetieths=\@@ninetiethsfrenchswiss
+\let\@seventies=\@@seventiesfrench
+\let\@eighties=\@@eightiesfrench
+\let\@nineties=\@@ninetiesfrench
+\let\@teenstring=\@@teenstringfrench
+\def\@hundredth{centi\`eme}\def\@hundred{cent}%
+\def\@thousandth{mili\`eme}\def\@thousand{mille}%
+\def\@andname{et}%
+\@@ordinalstringfrench{#1}%
+\fi}
+
+\let\@ordinalstringMfrench=\@ordinalstringMfrenchfrance
+
+\newcommand{\@ordinalstringFfrenchswiss}[1]{%
+\ifnum#1=1\relax
+premi\`ere%
+\else
+\let\@unitthstring=\@@unitthstringfrench
+\let\@unitstring=\@@unitstringFfrench
+\let\@teenthstring=\@@teenthstringfrench
+\let\@teenstring=\@@teenstringfrench
+\let\@tenthstring=\@@tenthstringfrench
+\let\@tenstring=\@@tenstringfrench
+\let\@seventieths=\@@seventiethsfrenchswiss
+\let\@eightieths=\@@eightiethsfrenchswiss
+\let\@ninetieths=\@@ninetiethsfrenchswiss
+\let\@seventies=\@@seventiesfrenchswiss
+\let\@eighties=\@@eightiesfrenchswiss
+\let\@nineties=\@@ninetiesfrenchswiss
+\def\@hundredth{centi\`eme}\def\@hundred{cent}%
+\def\@thousandth{mili\`eme}\def\@thousand{mille}%
+\def\@andname{et}%
+\@@ordinalstringfrench{#1}%
+\fi}
+
+\newcommand{\@ordinalstringFfrenchfrance}[1]{%
+\ifnum#1=1\relax
+premi\`ere%
+\else
+\let\@unitthstring=\@@unitthstringfrench
+\let\@unitstring=\@@unitstringFfrench
+\let\@teenthstring=\@@teenthstringfrench
+\let\@teenstring=\@@teenstringfrench
+\let\@tenthstring=\@@tenthstringfrench
+\let\@tenstring=\@@tenstringfrench
+\let\@seventieths=\@@seventiethsfrench
+\let\@eightieths=\@@eightiethsfrench
+\let\@ninetieths=\@@ninetiethsfrench
+\let\@seventies=\@@seventiesfrench
+\let\@eighties=\@@eightiesfrench
+\let\@nineties=\@@ninetiesfrench
+\let\@teenstring=\@@teenstringfrench
+\def\@hundredth{centi\`eme}\def\@hundred{cent}%
+\def\@thousandth{mili\`eme}\def\@thousand{mille}%
+\def\@andname{et}%
+\@@ordinalstringfrench{#1}%
+\fi}
+
+\newcommand{\@ordinalstringFfrenchbelgian}[1]{%
+\ifnum#1=1\relax
+premi\`ere%
+\else
+\let\@unitthstring=\@@unitthstringfrench
+\let\@unitstring=\@@unitstringFfrench
+\let\@teenthstring=\@@teenthstringfrench
+\let\@teenstring=\@@teenstringfrench
+\let\@tenthstring=\@@tenthstringfrench
+\let\@tenstring=\@@tenstringfrench
+\let\@seventieths=\@@seventiethsfrenchswiss
+\let\@eightieths=\@@eightiethsfrench
+\let\@ninetieths=\@@ninetiethsfrench
+\let\@seventies=\@@seventiesfrench
+\let\@eighties=\@@eightiesfrench
+\let\@nineties=\@@ninetiesfrench
+\let\@teenstring=\@@teenstringfrench
+\def\@hundredth{centi\`eme}\def\@hundred{cent}%
+\def\@thousandth{mili\`eme}\def\@thousand{mille}%
+\def\@andname{et}%
+\@@ordinalstringfrench{#1}%
+\fi}
+
+\let\@ordinalstringFfrench=\@ordinalstringFfrenchfrance
+
+\newcommand{\@OrdinalstringMfrenchswiss}[1]{%
+\ifnum#1=1\relax
+Premi\`ere%
+\else
+\let\@unitthstring=\@@Unitthstringfrench
+\let\@unitstring=\@@Unitstringfrench
+\let\@teenthstring=\@@Teenthstringfrench
+\let\@teenstring=\@@Teenstringfrench
+\let\@tenthstring=\@@Tenthstringfrench
+\let\@tenstring=\@@Tenstringfrench
+\let\@seventieths=\@@seventiethsfrenchswiss
+\let\@eightieths=\@@eightiethsfrenchswiss
+\let\@ninetieths=\@@ninetiethsfrenchswiss
+\let\@seventies=\@@seventiesfrenchswiss
+\let\@eighties=\@@eightiesfrenchswiss
+\let\@nineties=\@@ninetiesfrenchswiss
+\def\@hundredth{Centi\`eme}\def\@hundred{Cent}%
+\def\@thousandth{Mili\`eme}\def\@thousand{Mille}%
+\def\@andname{et}%
+\@@ordinalstringfrench{#1}%
+\fi}
+
+\newcommand{\@OrdinalstringMfrenchfrance}[1]{%
+\ifnum#1=1\relax
+Premi\`ere%
+\else
+\let\@unitthstring=\@@Unitthstringfrench
+\let\@unitstring=\@@Unitstringfrench
+\let\@teenthstring=\@@Teenthstringfrench
+\let\@teenstring=\@@Teenstringfrench
+\let\@tenthstring=\@@Tenthstringfrench
+\let\@tenstring=\@@Tenstringfrench
+\let\@seventieths=\@@seventiethsfrench
+\let\@eightieths=\@@eightiethsfrench
+\let\@ninetieths=\@@ninetiethsfrench
+\let\@seventies=\@@seventiesfrench
+\let\@eighties=\@@eightiesfrench
+\let\@nineties=\@@ninetiesfrench
+\let\@teenstring=\@@Teenstringfrench
+\def\@hundredth{Centi\`eme}\def\@hundred{Cent}%
+\def\@thousandth{Mili\`eme}\def\@thousand{Mille}%
+\def\@andname{et}%
+\@@ordinalstringfrench{#1}%
+\fi}
+
+\newcommand{\@OrdinalstringMfrenchbelgian}[1]{%
+\ifnum#1=1\relax
+Premi\`ere%
+\else
+\let\@unitthstring=\@@Unitthstringfrench
+\let\@unitstring=\@@Unitstringfrench
+\let\@teenthstring=\@@Teenthstringfrench
+\let\@teenstring=\@@Teenstringfrench
+\let\@tenthstring=\@@Tenthstringfrench
+\let\@tenstring=\@@Tenstringfrench
+\let\@seventieths=\@@seventiethsfrenchswiss
+\let\@eightieths=\@@eightiethsfrench
+\let\@ninetieths=\@@ninetiethsfrench
+\let\@seventies=\@@seventiesfrench
+\let\@eighties=\@@eightiesfrench
+\let\@nineties=\@@ninetiesfrench
+\let\@teenstring=\@@Teenstringfrench
+\def\@hundredth{Centi\`eme}\def\@hundred{Cent}%
+\def\@thousandth{Mili\`eme}\def\@thousand{Mille}%
+\def\@andname{et}%
+\@@ordinalstringfrench{#1}%
+\fi}
+
+\let\@OrdinalstringMfrench=\@OrdinalstringMfrenchfrance
+
+\newcommand{\@OrdinalstringFfrenchswiss}[1]{%
+\ifnum#1=1\relax
+Premi\`ere%
+\else
+\let\@unitthstring=\@@Unitthstringfrench
+\let\@unitstring=\@@UnitstringFfrench
+\let\@teenthstring=\@@Teenthstringfrench
+\let\@teenstring=\@@Teenstringfrench
+\let\@tenthstring=\@@Tenthstringfrench
+\let\@tenstring=\@@Tenstringfrench
+\let\@seventieths=\@@seventiethsfrenchswiss
+\let\@eightieths=\@@eightiethsfrenchswiss
+\let\@ninetieths=\@@ninetiethsfrenchswiss
+\let\@seventies=\@@seventiesfrenchswiss
+\let\@eighties=\@@eightiesfrenchswiss
+\let\@nineties=\@@ninetiesfrenchswiss
+\def\@hundredth{Centi\`eme}\def\@hundred{Cent}%
+\def\@thousandth{Mili\`eme}\def\@thousand{Mille}%
+\def\@andname{et}%
+\@@ordinalstringfrench{#1}%
+\fi}
+
+\newcommand{\@OrdinalstringFfrenchfrance}[1]{%
+\ifnum#1=1\relax
+Premi\`ere%
+\else
+\let\@unitthstring=\@@Unitthstringfrench
+\let\@unitstring=\@@UnitstringFfrench
+\let\@teenthstring=\@@Teenthstringfrench
+\let\@teenstring=\@@Teenstringfrench
+\let\@tenthstring=\@@Tenthstringfrench
+\let\@tenstring=\@@Tenstringfrench
+\let\@seventieths=\@@seventiethsfrench
+\let\@eightieths=\@@eightiethsfrench
+\let\@ninetieths=\@@ninetiethsfrench
+\let\@seventies=\@@seventiesfrench
+\let\@eighties=\@@eightiesfrench
+\let\@nineties=\@@ninetiesfrench
+\let\@teenstring=\@@Teenstringfrench
+\def\@hundredth{Centi\`eme}\def\@hundred{Cent}%
+\def\@thousandth{Mili\`eme}\def\@thousand{Mille}%
+\def\@andname{et}%
+\@@ordinalstringfrench{#1}%
+\fi}
+
+\newcommand{\@OrdinalstringFfrenchbelgian}[1]{%
+\ifnum#1=1\relax
+Premi\`ere%
+\else
+\let\@unitthstring=\@@Unitthstringfrench
+\let\@unitstring=\@@UnitstringFfrench
+\let\@teenthstring=\@@Teenthstringfrench
+\let\@teenstring=\@@Teenstringfrench
+\let\@tenthstring=\@@Tenthstringfrench
+\let\@tenstring=\@@Tenstringfrench
+\let\@seventieths=\@@seventiethsfrenchswiss
+\let\@eightieths=\@@eightiethsfrench
+\let\@ninetieths=\@@ninetiethsfrench
+\let\@seventies=\@@seventiesfrench
+\let\@eighties=\@@eightiesfrench
+\let\@nineties=\@@ninetiesfrench
+\let\@teenstring=\@@Teenstringfrench
+\def\@hundredth{Centi\`eme}\def\@hundred{Cent}%
+\def\@thousandth{Mili\`eme}\def\@thousand{Mille}%
+\def\@andname{et}%
+\@@ordinalstringfrench{#1}%
+\fi}
+
+\let\@OrdinalstringFfrench=\@OrdinalstringFfrenchfrance
+
+\newcommand{\@ordinalMfrench}[1]{%
+\iffmtord@abbrv
+#1\fmtord{e}%
+\else
+#1\ifnum#1=1\fmtord{er}\else\fmtord{eme}\fi
+\fi}
+
+\newcommand{\@ordinalFfrench}[1]{%
+\iffmtord@abbrv
+#1\fmtord{e}%
+\else
+#1\ifnum#1=1\fmtord{ere}\else\fmtord{eme}\fi
+\fi}
+
+\newcommand{\@@unitthstringfrench}[1]{%
+\ifcase#1\relax
+zero%
+\or uni\`eme%
+\or deuxi\`eme%
+\or troisi\`eme%
+\or quatri\`eme%
+\or cinqui\`eme%
+\or sixi\`eme%
+\or septi\`eme%
+\or huiti\`eme%
+\or neuvi\`eme%
+\fi
+}
+
+\newcommand{\@@tenthstringfrench}[1]{%
+\ifcase#1\relax
+\or dixi\`eme%
+\or vingti\`eme%
+\or trentri\`eme%
+\or quaranti\`eme%
+\or cinquanti\`eme%
+\or soixanti\`eme%
+\or septenti\`eme%
+\or huitanti\`eme%
+\or nonenti\`eme%
+\fi
+}
+
+\newcommand{\@@teenthstringfrench}[1]{%
+\ifcase#1\relax
+dixi\`eme%
+\or onzi\`eme%
+\or douzi\`eme%
+\or treizi\`eme%
+\or quatorzi\`eme%
+\or quinzi\`eme%
+\or seizi\`eme%
+\or dix-septi\`eme%
+\or dix-huiti\`eme%
+\or dix-neuvi\`eme%
+\fi
+}
+
+\newcommand{\@@seventiethsfrenchswiss}[1]{%
+\ifcase#1\relax
+\@tenthstring{7}%
+\or
+\@tenstring{7} \@andname\ \@unitthstring{1}%
+\else
+\@tenstring{7}-\@unitthstring{#1}%
+\fi}
+
+\newcommand{\@@eightiethsfrenchswiss}[1]{%
+\ifcase#1\relax
+\@tenthstring{8}%
+\or
+\@tenstring{8} \@andname\ \@unitthstring{1}%
+\else
+\@tenstring{8}-\@unitthstring{#1}%
+\fi}
+
+\newcommand{\@@ninetiethsfrenchswiss}[1]{%
+\ifcase#1\relax
+\@tenthstring{9}%
+\or
+\@tenstring{9} \@andname\ \@unitthstring{1}%
+\else
+\@tenstring{9}-\@unitthstring{#1}%
+\fi}
+
+\newcommand{\@@seventiethsfrench}[1]{%
+\ifnum#1=0\relax
+\@tenstring{6}%
+-%
+\else
+\@tenstring{6}%
+\ \@andname\
+\fi
+\@teenthstring{#1}%
+}
+
+\newcommand{\@@eightiethsfrench}[1]{%
+\ifnum#1>0\relax
+\@unitstring{4}-\@tenstring{2}%
+-\@unitthstring{#1}%
+\else
+\@unitstring{4}-\@tenthstring{2}%
+\fi
+}
+
+\newcommand{\@@ninetiethsfrench}[1]{%
+\@unitstring{4}-\@tenstring{2}-\@teenthstring{#1}%
+}
+
+\newcommand{\@@Unitthstringfrench}[1]{%
+\ifcase#1\relax
+Zero%
+\or Uni\`eme%
+\or Deuxi\`eme%
+\or Troisi\`eme%
+\or Quatri\`eme%
+\or Cinqui\`eme%
+\or Sixi\`eme%
+\or Septi\`eme%
+\or Huiti\`eme%
+\or Neuvi\`eme%
+\fi
+}
+
+\newcommand{\@@Tenthstringfrench}[1]{%
+\ifcase#1\relax
+\or Dixi\`eme%
+\or Vingti\`eme%
+\or Trentri\`eme%
+\or Quaranti\`eme%
+\or Cinquanti\`eme%
+\or Soixanti\`eme%
+\or Septenti\`eme%
+\or Huitanti\`eme%
+\or Nonenti\`eme%
+\fi
+}
+
+\newcommand{\@@Teenthstringfrench}[1]{%
+\ifcase#1\relax
+Dixi\`eme%
+\or Onzi\`eme%
+\or Douzi\`eme%
+\or Treizi\`eme%
+\or Quatorzi\`eme%
+\or Quinzi\`eme%
+\or Seizi\`eme%
+\or Dix-Septi\`eme%
+\or Dix-Huiti\`eme%
+\or Dix-Neuvi\`eme%
+\fi
+}
+
+\newcommand{\@@numberstringfrench}[1]{%
+\ifnum#1>99999
+\PackageError{fmtcount}{Out of range}%
+{This macro only works for values less than 100000}%
+\else
+\ifnum#1<0
+\PackageError{fmtcount}{Negative numbers not permitted}%
+{This macro does not work for negative numbers, however
+you can try typing "minus" first, and then pass the modulus of
+this number}%
+\fi
+\fi
+\@strctr=#1\relax \divide\@strctr by 1000\relax
+\ifnum\@strctr>9
+ \@tmpstrctr=\@strctr
+ \divide\@strctr by 10
+ \ifnum\@strctr>1
+ \ifthenelse{\(\@strctr>6\)\and\(\@strctr<10\)}{%
+ \@modulo{\@tmpstrctr}{10}%
+ \ifnum\@strctr<8\relax
+ \@seventies{\@tmpstrctr}%
+ \else
+ \ifnum\@strctr<9\relax
+ \@eighties{\@tmpstrctr}%
+ \else
+ \ifnum\@strctr<10\@nineties{\@tmpstrctr}\fi
+ \fi
+ \fi
+ }{%
+ \@tenstring{\@strctr}%
+ \@strctr=#1\relax
+ \divide\@strctr by 1000\relax
+ \@modulo{\@strctr}{10}%
+ \ifnum\@strctr>0\relax
+ \ \@unitstring{\@strctr}%
+ \fi
+ }%
+ \else
+ \@strctr=#1\relax
+ \divide\@strctr by 1000
+ \@modulo{\@strctr}{10}%
+ \@teenstring{\@strctr}%
+ \fi
+ \ \@thousand%
+\else
+ \ifnum\@strctr>0
+ \ifnum\@strctr>1\@unitstring{\@strctr}\ \fi
+ \@thousand
+ \fi
+\fi
+\@strctr=#1\relax \@modulo{\@strctr}{1000}%
+\divide\@strctr by 100
+\ifnum\@strctr>0\relax
+ \ifnum#1>1000 \ \fi
+ \@tmpstrctr=#1\relax
+ \@modulo{\@tmpstrctr}{1000}\relax
+ \ifnum\@tmpstrctr=100\relax
+ \@tenstring{10}\relax
+ \else
+ \ifnum\@strctr>1\@unitstring{\@strctr}\ \fi
+ \@hundred
+ \fi
+\fi
+\@strctr=#1\relax \@modulo{\@strctr}{100}%
+\ifnum#1>100\relax
+ \ifnum\@strctr>0\relax
+\ % \ \@andname\
+ \else
+ \ifnum\@tmpstrctr>0s\fi%
+ \fi
+\fi
+\ifnum\@strctr>19
+\@tmpstrctr=\@strctr
+\divide\@strctr by 10
+\ifthenelse{\@strctr>6}{%
+\@modulo{\@tmpstrctr}{10}%
+\ifnum\@strctr<8
+\@seventies{\@tmpstrctr}%
+\else
+\ifnum\@strctr<9
+\@eighties{\@tmpstrctr}%
+\else
+\@nineties{\@tmpstrctr}%
+\fi
+\fi
+}{%
+\@tenstring{\@strctr}%
+\@strctr=#1\relax \@modulo{\@strctr}{10}%
+\ifnum\@strctr>0\relax
+ \ifnum\@strctr=1\ \@andname\ \else-\fi
+ \@unitstring{\@strctr}%
+\fi
+}%
+\else
+\ifnum\@strctr<10
+\ifnum\@strctr=0
+\ifnum#1<100 \@unitstring{\@strctr}\fi
+\else%(>0,<10)
+\@unitstring{\@strctr}%
+\fi
+\else%>10
+\@modulo{\@strctr}{10}%
+\@teenstring{\@strctr}%
+\fi
+\fi
+}
+\newcommand{\@@ordinalstringfrench}[1]{%
+\ifnum#1>99999
+\PackageError{fmtcount}{Out of range}%
+{This macro only works for values less than 100000}%
+\else
+\ifnum#1<0
+\PackageError{fmtcount}{Negative numbers not permitted}%
+{This macro does not work for negative numbers, however
+you can try typing "minus" first, and then pass the modulus of
+this number}%
+\fi
+\fi
+\@strctr=#1\relax \divide\@strctr by 1000\relax
+\ifnum\@strctr>9
+ \@tmpstrctr=\@strctr
+ \divide\@strctr by 10\relax
+ \ifnum\@strctr>1\relax
+ \ifthenelse{\@strctr>6}{%
+ \@modulo{\@tmpstrctr}{10}%
+ \ifnum\@strctr=7\relax
+ \@seventies{\@tmpstrctr}%
+ \else
+ \ifnum\@strctr=8\relax
+ \@eighties{\@tmpstrctr}%
+ \else
+ \@nineties{\@tmpstrctr}%
+ \fi
+ \fi
+ }{%
+ \@tenstring{\@strctr}%
+ \@strctr=#1\relax
+ \divide\@strctr by 1000\relax
+ \@modulo{\@strctr}{10}%
+ \ifnum\@strctr=1\ \@andname\fi
+ \ifnum\@strctr>0\ \@unitstring{\@strctr}\fi
+ }%
+ \else
+ \@strctr=#1\relax
+ \divide\@strctr by 1000\relax
+ \@modulo{\@strctr}{10}%
+ \@teenstring{\@strctr}%
+ \fi
+ \@strctr=#1\relax \@modulo{\@strctr}{1000}%
+ \ifnum\@strctr=0\ \@thousandth\else\ \@thousand \fi
+\else
+ \ifnum\@strctr>0\relax
+ \@unitstring{\@strctr}%
+ \@strctr=#1\relax \@modulo{\@strctr}{1000}%
+ \ifnum\@strctr=0\ \@thousandth\else\ \@thousand\fi
+ \fi
+\fi
+\@strctr=#1\relax \@modulo{\@strctr}{1000}%
+\divide\@strctr by 100
+\ifnum\@strctr>0
+\ifnum#1>1000 \ \fi\@unitstring{\@strctr}%
+\@strctr=#1\relax \@modulo{\@strctr}{100}%
+\ifnum\@strctr=0\ \@hundredth\else\ \@hundred\fi
+\fi
+\@tmpstrctr=\@strctr
+\@strctr=#1\relax \@modulo{\@strctr}{100}%
+\ifnum#1>100\relax
+\ifnum\@strctr>0\ \@andname\ \fi\fi
+\ifnum\@strctr>19
+\@tmpstrctr=\@strctr
+\divide\@strctr by 10
+\@modulo{\@tmpstrctr}{10}%
+\ifthenelse{\@strctr>6}{%
+\ifnum\@strctr=7\relax
+\@seventieths{\@tmpstrctr}%
+\else
+\ifnum\@strctr=8\relax
+\@eightieths{\@tmpstrctr}%
+\else
+\@ninetieths{\@tmpstrctr}%
+\fi
+\fi
+}{%
+\ifnum\@tmpstrctr=0\relax
+ \@tenthstring{\@strctr}%
+\else
+ \@tenstring{\@strctr}%
+\fi
+\@strctr=#1\relax \@modulo{\@strctr}{10}%
+\ifnum\@strctr=1\ \@andname\fi
+\ifnum\@strctr>0
+\ \@unitthstring{\@strctr}%
+\fi
+}%
+\else
+\ifnum\@strctr<10
+\ifnum\@strctr=0
+\ifnum#1<100 \@unitthstring{\@strctr}\fi
+\else
+\@unitthstring{\@strctr}%
+\fi
+\else
+\@modulo{\@strctr}{10}%
+\@teenthstring{\@strctr}%
+\fi
+\fi
+}
+\endinput
+%%
+%% End of file `fc-french.def'.
diff --git a/Master/texmf-dist/tex/latex/fmtcount/fc-portuges.def b/Master/texmf-dist/tex/latex/fmtcount/fc-portuges.def
new file mode 100644
index 00000000000..83fec7d9de8
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/fmtcount/fc-portuges.def
@@ -0,0 +1,582 @@
+%%
+%% This is file `fc-portuges.def',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% fmtcount.dtx (with options: `fc-portuges.def,package')
+%% Copyright (C) 2005 Nicola Talbot, all rights reserved.
+%% If you modify this file, you must change its name first.
+%% You are NOT ALLOWED to distribute this file alone. You are NOT
+%% ALLOWED to take money for the distribution or use of either this
+%% file or a changed version, except for a nominal charge for copying
+%% etc.
+%% \CharacterTable
+%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%% Digits \0\1\2\3\4\5\6\7\8\9
+%% Exclamation \! Double quote \" Hash (number) \#
+%% Dollar \$ Percent \% Ampersand \&
+%% Acute accent \' Left paren \( Right paren \)
+%% Asterisk \* Plus \+ Comma \,
+%% Minus \- Point \. Solidus \/
+%% Colon \: Semicolon \; Less than \<
+%% Equals \= Greater than \> Question mark \?
+%% Commercial at \@ Left bracket \[ Backslash \\
+%% Right bracket \] Circumflex \^ Underscore \_
+%% Grave accent \` Left brace \{ Vertical bar \|
+%% Right brace \} Tilde \~}
+\ProvidesFile{fc-portuges.def}[2005/04/29]
+\newcommand{\@@unitstringportuges}[1]{%
+\ifcase#1\relax
+zero%
+\or um%
+\or dois%
+\or tr\`es%
+\or quatro%
+\or cinco%
+\or seis%
+\or sete%
+\or oito%
+\or nove%
+\fi
+}
+
+\newcommand{\@@unitstringFportuges}[1]{%
+\ifcase#1\relax
+zero%
+\or uma%
+\or duas%
+\or tr\`es%
+\or quatro%
+\or cinco%
+\or seis%
+\or sete%
+\or oito%
+\or nove%
+\fi
+}
+
+\newcommand{\@@tenstringportuges}[1]{%
+\ifcase#1\relax
+\or dez%
+\or vinte%
+\or trinta%
+\or quarenta%
+\or cinq\"uenta%
+\or sessenta%
+\or setenta%
+\or oitenta%
+\or noventa%
+\or cem%
+\fi
+}
+
+\newcommand{\@@teenstringportuges}[1]{%
+\ifcase#1\relax
+dez%
+\or onze%
+\or doze%
+\or treze%
+\or quatorze%
+\or quinze%
+\or dezesseis%
+\or dezessete%
+\or dezoito%
+\or dezenove%
+\fi
+}
+
+\newcommand{\@@hundredstringportuges}[1]{%
+\ifcase#1\relax
+\or cento%
+\or duzentos%
+\or trezentos%
+\or quatrocentos%
+\or quinhentos%
+\or seiscentos%
+\or setecentos%
+\or oitocentos%
+\or novecentos%
+\fi}
+
+\newcommand{\@@hundredstringFportuges}[1]{%
+\ifcase#1\relax
+\or centa%
+\or duzentas%
+\or trezentas%
+\or quatrocentas%
+\or quinhentas%
+\or seiscentas%
+\or setecentas%
+\or oitocentas%
+\or novecentas%
+\fi}
+
+\newcommand{\@@Unitstringportuges}[1]{%
+\ifcase#1\relax
+Zero%
+\or Um%
+\or Dois%
+\or Tr\`es%
+\or Quatro%
+\or Cinco%
+\or Seis%
+\or Sete%
+\or Oito%
+\or Nove%
+\fi
+}
+
+\newcommand{\@@UnitstringFportuges}[1]{%
+\ifcase#1\relax
+Zera%
+\or Uma%
+\or Duas%
+\or Tr\`es%
+\or Quatro%
+\or Cinco%
+\or Seis%
+\or Sete%
+\or Oito%
+\or Nove%
+\fi
+}
+
+\newcommand{\@@Tenstringportuges}[1]{%
+\ifcase#1\relax
+\or Dez%
+\or Vinte%
+\or Trinta%
+\or Quarenta%
+\or Cinq\"uenta%
+\or Sessenta%
+\or Setenta%
+\or Oitenta%
+\or Noventa%
+\or Cem%
+\fi
+}
+
+\newcommand{\@@Teenstringportuges}[1]{%
+\ifcase#1\relax
+Dez%
+\or Onze%
+\or Doze%
+\or Treze%
+\or Quatorze%
+\or Quinze%
+\or Dezesseis%
+\or Dezessete%
+\or Dezoito%
+\or Dezenove%
+\fi
+}
+
+\newcommand{\@@Hundredstringportuges}[1]{%
+\ifcase#1\relax
+\or Cento%
+\or Duzentos%
+\or Trezentos%
+\or Quatrocentos%
+\or Quinhentos%
+\or Seiscentos%
+\or Setecentos%
+\or Oitocentos%
+\or Novecentos%
+\fi}
+
+\newcommand{\@@HundredstringFportuges}[1]{%
+\ifcase#1\relax
+\or Centa%
+\or Duzentas%
+\or Trezentas%
+\or Quatrocentas%
+\or Quinhentas%
+\or Seiscentas%
+\or Setecentas%
+\or Oitocentas%
+\or Novecentas%
+\fi}
+
+\newcommand{\@numberstringMportuges}[1]{%
+\let\@unitstring=\@@unitstringportuges
+\let\@teenstring=\@@teenstringportuges
+\let\@tenstring=\@@tenstringportuges
+\let\@hundredstring=\@@hundredstringportuges
+\def\@hundred{cem}\def\@thousand{mil}%
+\def\@andname{e}%
+\@@numberstringportuges{#1}}
+
+\newcommand{\@numberstringFportuges}[1]{%
+\let\@unitstring=\@@unitstringFportuges
+\let\@teenstring=\@@teenstringportuges
+\let\@tenstring=\@@tenstringportuges
+\let\@hundredstring=\@@hundredstringFportuges
+\def\@hundred{cem}\def\@thousand{mil}%
+\def\@andname{e}%
+\@@numberstringportuges{#1}}
+
+\newcommand{\@NumberstringMportuges}[1]{%
+\let\@unitstring=\@@Unitstringportuges
+\let\@teenstring=\@@Teenstringportuges
+\let\@tenstring=\@@Tenstringportuges
+\let\@hundredstring=\@@Hundredstringportuges
+\def\@hundred{Cem}\def\@thousand{Mil}%
+\def\@andname{e}%
+\@@numberstringportuges{#1}}
+
+\newcommand{\@NumberstringFportuges}[1]{%
+\let\@unitstring=\@@UnitstringFportuges
+\let\@teenstring=\@@Teenstringportuges
+\let\@tenstring=\@@Tenstringportuges
+\let\@hundredstring=\@@HundredstringFportuges
+\def\@hundred{Cem}\def\@thousand{Mil}%
+\def\@andname{e}%
+\@@numberstringportuges{#1}}
+
+\newcommand{\@ordinalstringMportuges}[1]{%
+\let\@unitthstring=\@@unitthstringportuges
+\let\@unitstring=\@@unitstringportuges
+\let\@teenthstring=\@@teenthstringportuges
+\let\@tenthstring=\@@tenthstringportuges
+\let\@hundredthstring=\@@hundredthstringportuges
+\def\@thousandth{mil\'esimo}%
+\@@ordinalstringportuges{#1}}
+
+\newcommand{\@ordinalstringFportuges}[1]{%
+\let\@unitthstring=\@@unitthstringFportuges
+\let\@unitstring=\@@unitstringFportuges
+\let\@teenthstring=\@@teenthstringportuges
+\let\@tenthstring=\@@tenthstringFportuges
+\let\@hundredthstring=\@@hundredthstringFportuges
+\def\@thousandth{mil\'esima}%
+\@@ordinalstringportuges{#1}}
+
+\newcommand{\@OrdinalstringMportuges}[1]{%
+\let\@unitthstring=\@@Unitthstringportuges
+\let\@unitstring=\@@Unitstringportuges
+\let\@teenthstring=\@@teenthstringportuges
+\let\@tenthstring=\@@Tenthstringportuges
+\let\@hundredthstring=\@@Hundredthstringportuges
+\def\@thousandth{Mil\'esimo}%
+\@@ordinalstringportuges{#1}}
+
+\newcommand{\@OrdinalstringFportuges}[1]{%
+\let\@unitthstring=\@@UnitthstringFportuges
+\let\@unitstring=\@@UnitstringFportuges
+\let\@teenthstring=\@@teenthstringportuges
+\let\@tenthstring=\@@TenthstringFportuges
+\let\@hundredthstring=\@@HundredthstringFportuges
+\def\@thousandth{Mil\'esima}%
+\@@ordinalstringportuges{#1}}
+
+\newcommand{\@ordinalMportuges}[1]{%
+#1\ifnum#1=0\else\fmtord{o}\fi}
+\newcommand{\@ordinalFportuges}[1]{%
+#1\ifnum#1=0\else\fmtord{a}\fi}
+
+\newcommand{\@@unitthstringportuges}[1]{%
+\ifcase#1\relax
+zero%
+\or primeiro%
+\or segundo%
+\or terceiro%
+\or quarto%
+\or quinto%
+\or sexto%
+\or s\'etimo%
+\or oitavo%
+\or nono%
+\fi
+}
+
+\newcommand{\@@tenthstringportuges}[1]{%
+\ifcase#1\relax
+\or d\'ecimo%
+\or vig\'esimo%
+\or trig\'esimo%
+\or quadrag\'esimo%
+\or q\"uinquag\'esimo%
+\or sexag\'esimo%
+\or setuag\'esimo%
+\or octog\'esimo%
+\or nonag\'esimo%
+\fi
+}
+
+\newcommand{\@@teenthstringportuges}[1]{%
+\@tenthstring{1}%
+\ifnum#1>0\relax
+-\@unitthstring{#1}%
+\fi}
+
+\newcommand{\@@hundredthstringportuges}[1]{%
+\ifcase#1\relax
+\or cent\'esimo%
+\or ducent\'esimo%
+\or trecent\'esimo%
+\or quadringent\'esimo%
+\or q\"uingent\'esimo%
+\or seiscent\'esimo%
+\or setingent\'esimo%
+\or octingent\'esimo%
+\or nongent\'esimo%
+\fi}
+
+\newcommand{\@@unitthstringFportuges}[1]{%
+\ifcase#1\relax
+zero%
+\or primeira%
+\or segunda%
+\or terceira%
+\or quarta%
+\or quinta%
+\or sexta%
+\or s\'etima%
+\or oitava%
+\or nona%
+\fi
+}
+
+\newcommand{\@@tenthstringFportuges}[1]{%
+\ifcase#1\relax
+\or d\'ecima%
+\or vig\'esima%
+\or trig\'esima%
+\or quadrag\'esima%
+\or q\"uinquag\'esima%
+\or sexag\'esima%
+\or setuag\'esima%
+\or octog\'esima%
+\or nonag\'esima%
+\fi
+}
+
+\newcommand{\@@hundredthstringFportuges}[1]{%
+\ifcase#1\relax
+\or cent\'esima%
+\or ducent\'esima%
+\or trecent\'esima%
+\or quadringent\'esima%
+\or q\"uingent\'esima%
+\or seiscent\'esima%
+\or setingent\'esima%
+\or octingent\'esima%
+\or nongent\'esima%
+\fi}
+
+\newcommand{\@@Unitthstringportuges}[1]{%
+\ifcase#1\relax
+Zero%
+\or Primeiro%
+\or Segundo%
+\or Terceiro%
+\or Quarto%
+\or Quinto%
+\or Sexto%
+\or S\'etimo%
+\or Oitavo%
+\or Nono%
+\fi
+}
+
+\newcommand{\@@Tenthstringportuges}[1]{%
+\ifcase#1\relax
+\or D\'ecimo%
+\or Vig\'esimo%
+\or Trig\'esimo%
+\or Quadrag\'esimo%
+\or Q\"uinquag\'esimo%
+\or Sexag\'esimo%
+\or Setuag\'esimo%
+\or Octog\'esimo%
+\or Nonag\'esimo%
+\fi
+}
+
+\newcommand{\@@Hundredthstringportuges}[1]{%
+\ifcase#1\relax
+\or Cent\'esimo%
+\or Ducent\'esimo%
+\or Trecent\'esimo%
+\or Quadringent\'esimo%
+\or Q\"uingent\'esimo%
+\or Seiscent\'esimo%
+\or Setingent\'esimo%
+\or Octingent\'esimo%
+\or Nongent\'esimo%
+\fi}
+
+\newcommand{\@@UnitthstringFportuges}[1]{%
+\ifcase#1\relax
+Zera%
+\or Primeira%
+\or Segunda%
+\or Terceira%
+\or Quarta%
+\or Quinta%
+\or Sexta%
+\or S\'etima%
+\or Oitava%
+\or Nona%
+\fi
+}
+
+\newcommand{\@@TenthstringFportuges}[1]{%
+\ifcase#1\relax
+\or D\'ecima%
+\or Vig\'esima%
+\or Trig\'esima%
+\or Quadrag\'esima%
+\or Q\"uinquag\'esima%
+\or Sexag\'esima%
+\or Setuag\'esima%
+\or Octog\'esima%
+\or Nonag\'esima%
+\fi
+}
+
+\newcommand{\@@HundredthstringFportuges}[1]{%
+\ifcase#1\relax
+\or Cent\'esima%
+\or Ducent\'esima%
+\or Trecent\'esima%
+\or Quadringent\'esima%
+\or Q\"uingent\'esima%
+\or Seiscent\'esima%
+\or Setingent\'esima%
+\or Octingent\'esima%
+\or Nongent\'esima%
+\fi}
+\newcommand{\@@numberstringportuges}[1]{%
+\ifnum#1>99999
+\PackageError{fmtcount}{Out of range}%
+{This macro only works for values less than 100000}%
+\else
+\ifnum#1<0
+\PackageError{fmtcount}{Negative numbers not permitted}%
+{This macro does not work for negative numbers, however
+you can try typing "minus" first, and then pass the modulus of
+this number}%
+\fi
+\fi
+\@strctr=#1\relax \divide\@strctr by 1000\relax
+\ifnum\@strctr>9
+ \divide\@strctr by 10
+ \ifnum\@strctr>1
+ \@tenstring{\@strctr}%
+ \@strctr=#1 \divide\@strctr by 1000\relax
+ \@modulo{\@strctr}{10}%
+ \ifnum\@strctr>0
+ \ifnum\@strctr=1\ \@andname\fi
+ \ \@unitstring{\@strctr}%
+ \fi
+ \else
+ \@strctr=#1\relax
+ \divide\@strctr by 1000\relax
+ \@modulo{\@strctr}{10}%
+ \@teenstring{\@strctr}%
+ \fi
+ \ \@thousand%
+\else
+ \ifnum\@strctr>0
+ \ifnum\@strctr>1\@unitstring{\@strctr}\ \fi
+ \@thousand
+ \fi
+\fi
+\@strctr=#1\relax \@modulo{\@strctr}{1000}%
+\divide\@strctr by 100
+\ifnum\@strctr>0
+\ifnum#1>1000 \ \fi
+\@tmpstrctr=#1\relax
+\@modulo{\@tmpstrctr}{1000}%
+\ifnum\@tmpstrctr=100\@tenstring{10}\else\@hundredstring{\@strctr}\fi%
+\fi
+\@strctr=#1\relax \@modulo{\@strctr}{100}%
+\ifnum#1>100 \ifnum\@strctr>0\ \@andname\ \fi\fi
+\ifnum\@strctr>19
+\divide\@strctr by 10
+\@tenstring{\@strctr}%
+\@strctr=#1\relax \@modulo{\@strctr}{10}%
+\ifnum\@strctr>0
+\ifnum\@strctr=1\ \@andname\else\ifnum#1>100\ \@andname\fi\fi
+\ \@unitstring{\@strctr}%
+\fi
+\else
+\ifnum\@strctr<10
+\ifnum\@strctr=0
+\ifnum#1<100 \@unitstring{\@strctr}\fi
+\else%(>0,<10)
+\@unitstring{\@strctr}%
+\fi
+\else%>10
+\@modulo{\@strctr}{10}%
+\@teenstring{\@strctr}%
+\fi
+\fi
+}
+
+\newcommand{\@@ordinalstringportuges}[1]{%
+\@strctr=#1\relax
+\ifnum#1>99999
+\PackageError{fmtcount}{Out of range}%
+{This macro only works for values less than 100000}%
+\else
+\ifnum#1<0
+\PackageError{fmtcount}{Negative numbers not permitted}%
+{This macro does not work for negative numbers, however
+you can try typing "minus" first, and then pass the modulus of
+this number}%
+\else
+\ifnum\@strctr>999\relax
+ \divide\@strctr by 1000\relax
+ \ifnum\@strctr>1\relax
+ \ifnum\@strctr>9\relax
+ \@tmpstrctr=\@strctr
+ \ifnum\@strctr<20
+ \@modulo{\@tmpstrctr}{10}%
+ \@teenthstring{\@tmpstrctr}
+ \else
+ \divide\@tmpstrctr by 10\relax
+ \@tenthstring{\@tmpstrctr}
+ \@tmpstrctr=\@strctr
+ \@modulo{\@tmpstrctr}{10}%
+ \ifnum\@tmpstrctr>0\@unitthstring{\@tmpstrctr} \fi
+ \fi
+ \else
+ \@unitstring{\@strctr}
+ \fi
+ \fi
+ \@thousandth
+\fi
+\@strctr=#1\relax
+\@modulo{\@strctr}{1000}%
+\ifnum\@strctr>99\relax
+\@tmpstrctr=\@strctr
+\divide\@tmpstrctr by 100\relax
+\ifnum#1>1000-\fi
+\@hundredthstring{\@tmpstrctr}%
+\fi
+\@modulo{\@strctr}{100}%
+\ifnum#1>99\ifnum\@strctr>0-\fi\fi
+\ifnum\@strctr>9\relax
+\@tmpstrctr=\@strctr
+\divide\@tmpstrctr by 10\relax
+\@tenthstring{\@tmpstrctr}%
+\@tmpstrctr=\@strctr
+\@modulo{\@tmpstrctr}{10}%
+\ifnum\@tmpstrctr>0-\@unitthstring{\@tmpstrctr}\fi
+\else
+\ifnum\@strctr=0\relax
+\ifnum#1=0\@unitstring{0}\fi
+\else
+\@unitthstring{\@strctr}%
+\fi
+\fi
+\fi
+\fi
+}
+\endinput
+%%
+%% End of file `fc-portuges.def'.
diff --git a/Master/texmf-dist/tex/latex/fmtcount/fc-spanish.def b/Master/texmf-dist/tex/latex/fmtcount/fc-spanish.def
new file mode 100644
index 00000000000..0410de73d84
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/fmtcount/fc-spanish.def
@@ -0,0 +1,701 @@
+%%
+%% This is file `fc-spanish.def',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% fmtcount.dtx (with options: `fc-spanish.def,package')
+%% Copyright (C) 2005 Nicola Talbot, all rights reserved.
+%% If you modify this file, you must change its name first.
+%% You are NOT ALLOWED to distribute this file alone. You are NOT
+%% ALLOWED to take money for the distribution or use of either this
+%% file or a changed version, except for a nominal charge for copying
+%% etc.
+%% \CharacterTable
+%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%% Digits \0\1\2\3\4\5\6\7\8\9
+%% Exclamation \! Double quote \" Hash (number) \#
+%% Dollar \$ Percent \% Ampersand \&
+%% Acute accent \' Left paren \( Right paren \)
+%% Asterisk \* Plus \+ Comma \,
+%% Minus \- Point \. Solidus \/
+%% Colon \: Semicolon \; Less than \<
+%% Equals \= Greater than \> Question mark \?
+%% Commercial at \@ Left bracket \[ Backslash \\
+%% Right bracket \] Circumflex \^ Underscore \_
+%% Grave accent \` Left brace \{ Vertical bar \|
+%% Right brace \} Tilde \~}
+\ProvidesFile{fc-spanish.def}[2005/04/29]
+\newcommand{\@@unitstringspanish}[1]{%
+\ifcase#1\relax
+cero%
+\or uno%
+\or dos%
+\or tres%
+\or cuatro%
+\or cinco%
+\or seis%
+\or siete%
+\or ocho%
+\or nueve%
+\fi
+}
+
+\newcommand{\@@unitstringFspanish}[1]{%
+\ifcase#1\relax
+cera%
+\or una%
+\or dos%
+\or tres%
+\or cuatro%
+\or cinco%
+\or seis%
+\or siete%
+\or ocho%
+\or nueve%
+\fi
+}
+
+\newcommand{\@@tenstringspanish}[1]{%
+\ifcase#1\relax
+\or diez%
+\or viente%
+\or treinta%
+\or cuarenta%
+\or cincuenta%
+\or sesenta%
+\or setenta%
+\or ochenta%
+\or noventa%
+\or cien%
+\fi
+}
+
+\newcommand{\@@teenstringspanish}[1]{%
+\ifcase#1\relax
+diez%
+\or once%
+\or doce%
+\or trece%
+\or catorce%
+\or quince%
+\or diecis\'eis%
+\or diecisiete%
+\or dieciocho%
+\or diecinueve%
+\fi
+}
+
+\newcommand{\@@twentystringspanish}[1]{%
+\ifcase#1\relax
+veinte%
+\or veintiuno%
+\or veintid\'os%
+\or veintitr\'es%
+\or veinticuatro%
+\or veinticinco%
+\or veintis\'eis%
+\or veintisiete%
+\or veintiocho%
+\or veintinueve%
+\fi}
+
+\newcommand{\@@twentystringFspanish}[1]{%
+\ifcase#1\relax
+veinte%
+\or veintiuna%
+\or veintid\'os%
+\or veintitr\'es%
+\or veinticuatro%
+\or veinticinco%
+\or veintis\'eis%
+\or veintisiete%
+\or veintiocho%
+\or veintinueve%
+\fi}
+
+\newcommand{\@@hundredstringspanish}[1]{%
+\ifcase#1\relax
+\or ciento%
+\or doscientos%
+\or trescientos%
+\or cuatrocientos%
+\or quinientos%
+\or seiscientos%
+\or setecientos%
+\or ochocientos%
+\or novecientos%
+\fi}
+
+\newcommand{\@@hundredstringFspanish}[1]{%
+\ifcase#1\relax
+\or cienta%
+\or doscientas%
+\or trescientas%
+\or cuatrocientas%
+\or quinientas%
+\or seiscientas%
+\or setecientas%
+\or ochocientas%
+\or novecientas%
+\fi}
+
+\newcommand{\@@Unitstringspanish}[1]{%
+\ifcase#1\relax
+Cero%
+\or Uno%
+\or Dos%
+\or Tres%
+\or Cuatro%
+\or Cinco%
+\or Seis%
+\or Siete%
+\or Ocho%
+\or Nueve%
+\fi
+}
+
+\newcommand{\@@UnitstringFspanish}[1]{%
+\ifcase#1\relax
+Cera%
+\or Una%
+\or Dos%
+\or Tres%
+\or Cuatro%
+\or Cinco%
+\or Seis%
+\or Siete%
+\or Ocho%
+\or Nueve%
+\fi
+}
+
+\newcommand{\@@Tenstringspanish}[1]{%
+\ifcase#1\relax
+\or Diez%
+\or Viente%
+\or Treinta%
+\or Cuarenta%
+\or Cincuenta%
+\or Sesenta%
+\or Setenta%
+\or Ochenta%
+\or Noventa%
+\or Cien%
+\fi
+}
+
+\newcommand{\@@Teenstringspanish}[1]{%
+\ifcase#1\relax
+Diez%
+\or Once%
+\or Doce%
+\or Trece%
+\or Catorce%
+\or Quince%
+\or Diecis\'eis%
+\or Diecisiete%
+\or Dieciocho%
+\or Diecinueve%
+\fi
+}
+
+\newcommand{\@@Twentystringspanish}[1]{%
+\ifcase#1\relax
+Veinte%
+\or Veintiuno%
+\or Veintid\'os%
+\or Veintitr\'es%
+\or Veinticuatro%
+\or Veinticinco%
+\or Veintis\'eis%
+\or Veintisiete%
+\or Veintiocho%
+\or Veintinueve%
+\fi}
+
+\newcommand{\@@TwentystringFspanish}[1]{%
+\ifcase#1\relax
+Veinte%
+\or Veintiuna%
+\or Veintid\'os%
+\or Veintitr\'es%
+\or Veinticuatro%
+\or Veinticinco%
+\or Veintis\'eis%
+\or Veintisiete%
+\or Veintiocho%
+\or Veintinueve%
+\fi}
+
+\newcommand{\@@Hundredstringspanish}[1]{%
+\ifcase#1\relax
+\or Ciento%
+\or Doscientos%
+\or Trescientos%
+\or Cuatrocientos%
+\or Quinientos%
+\or Seiscientos%
+\or Setecientos%
+\or Ochocientos%
+\or Novecientos%
+\fi}
+
+\newcommand{\@@HundredstringFspanish}[1]{%
+\ifcase#1\relax
+\or Cienta%
+\or Doscientas%
+\or Trescientas%
+\or Cuatrocientas%
+\or Quinientas%
+\or Seiscientas%
+\or Setecientas%
+\or Ochocientas%
+\or Novecientas%
+\fi}
+
+\newcommand{\@numberstringMspanish}[1]{%
+\let\@unitstring=\@@unitstringspanish
+\let\@teenstring=\@@teenstringspanish
+\let\@tenstring=\@@tenstringspanish
+\let\@twentystring=\@@twentystringspanish
+\let\@hundredstring=\@@hundredstringspanish
+\def\@hundred{cien}\def\@thousand{mil}%
+\def\@andname{y}%
+\@@numberstringspanish{#1}}
+
+\newcommand{\@numberstringFspanish}[1]{%
+\let\@unitstring=\@@unitstringFspanish
+\let\@teenstring=\@@teenstringspanish
+\let\@tenstring=\@@tenstringspanish
+\let\@twentystring=\@@twentystringFspanish
+\let\@hundredstring=\@@hundredstringFspanish
+\def\@hundred{cien}\def\@thousand{mil}%
+\def\@andname{y}%
+\@@numberstringspanish{#1}}
+
+\newcommand{\@NumberstringMspanish}[1]{%
+\let\@unitstring=\@@Unitstringspanish
+\let\@teenstring=\@@Teenstringspanish
+\let\@tenstring=\@@Tenstringspanish
+\let\@twentystring=\@@Twentystringspanish
+\let\@hundredstring=\@@Hundredstringspanish
+\def\@andname{y}%
+\def\@hundred{Cien}\def\@thousand{Mil}%
+\@@numberstringspanish{#1}}
+
+\newcommand{\@NumberstringFspanish}[1]{%
+\let\@unitstring=\@@UnitstringFspanish
+\let\@teenstring=\@@Teenstringspanish
+\let\@tenstring=\@@Tenstringspanish
+\let\@twentystring=\@@TwentystringFspanish
+\let\@hundredstring=\@@HundredstringFspanish
+\def\@andname{y}%
+\def\@hundred{Cien}\def\@thousand{Mil}%
+\@@numberstringspanish{#1}}
+
+\newcommand{\@ordinalstringMspanish}[1]{%
+\let\@unitthstring=\@@unitthstringspanish
+\let\@unitstring=\@@unitstringspanish
+\let\@teenthstring=\@@teenthstringspanish
+\let\@tenthstring=\@@tenthstringspanish
+\let\@hundredthstring=\@@hundredthstringspanish
+\def\@thousandth{mil\'esimo}%
+\@@ordinalstringspanish{#1}}
+
+\newcommand{\@ordinalstringFspanish}[1]{%
+\let\@unitthstring=\@@unitthstringFspanish
+\let\@unitstring=\@@unitstringFspanish
+\let\@teenthstring=\@@teenthstringFspanish
+\let\@tenthstring=\@@tenthstringFspanish
+\let\@hundredthstring=\@@hundredthstringFspanish
+\def\@thousandth{mil\'esima}%
+\@@ordinalstringspanish{#1}}
+
+\newcommand{\@OrdinalstringMspanish}[1]{%
+\let\@unitthstring=\@@Unitthstringspanish
+\let\@unitstring=\@@Unitstringspanish
+\let\@teenthstring=\@@Teenthstringspanish
+\let\@tenthstring=\@@Tenthstringspanish
+\let\@hundredthstring=\@@Hundredthstringspanish
+\def\@thousandth{Mil\'esimo}%
+\@@ordinalstringspanish{#1}}
+
+\newcommand{\@OrdinalstringFspanish}[1]{%
+\let\@unitthstring=\@@UnitthstringFspanish
+\let\@unitstring=\@@UnitstringFspanish
+\let\@teenthstring=\@@TeenthstringFspanish
+\let\@tenthstring=\@@TenthstringFspanish
+\let\@hundredthstring=\@@HundredthstringFspanish
+\def\@thousandth{Mil\'esima}%
+\@@ordinalstringspanish{#1}}
+
+\newcommand{\@ordinalMspanish}[1]{#1\fmtord{o}}
+\newcommand{\@ordinalFspanish}[1]{#1\fmtord{a}}
+
+\newcommand{\@@unitthstringspanish}[1]{%
+\ifcase#1\relax
+cero%
+\or primero%
+\or segundo%
+\or tercero%
+\or cuarto%
+\or quinto%
+\or sexto%
+\or s\'eptimo%
+\or octavo%
+\or noveno%
+\fi
+}
+
+\newcommand{\@@tenthstringspanish}[1]{%
+\ifcase#1\relax
+\or d\'ecimo%
+\or vig\'esimo%
+\or trig\'esimo%
+\or cuadrag\'esimo%
+\or quincuag\'esimo%
+\or sexag\'esimo%
+\or septuag\'esimo%
+\or octog\'esimo%
+\or nonag\'esimo%
+\fi
+}
+
+\newcommand{\@@teenthstringspanish}[1]{%
+\ifcase#1\relax
+d\'ecimo%
+\or und\'ecimo%
+\or duod\'ecimo%
+\or decimotercero%
+\or decimocuarto%
+\or decimoquinto%
+\or decimosexto%
+\or decimos\'eptimo%
+\or decimoctavo%
+\or decimonoveno%
+\fi
+}
+
+\newcommand{\@@hundredthstringspanish}[1]{%
+\ifcase#1\relax
+\or cent\'esimo%
+\or ducent\'esimo%
+\or tricent\'esimo%
+\or cuadringent\'esimo%
+\or quingent\'esimo%
+\or sexcent\'esimo%
+\or septing\'esimo%
+\or octingent\'esimo%
+\or noningent\'esimo%
+\fi}
+
+\newcommand{\@@unitthstringFspanish}[1]{%
+\ifcase#1\relax
+cera%
+\or primera%
+\or segunda%
+\or tercera%
+\or cuarta%
+\or quinta%
+\or sexta%
+\or s\'eptima%
+\or octava%
+\or novena%
+\fi
+}
+
+\newcommand{\@@tenthstringFspanish}[1]{%
+\ifcase#1\relax
+\or d\'ecima%
+\or vig\'esima%
+\or trig\'esima%
+\or cuadrag\'esima%
+\or quincuag\'esima%
+\or sexag\'esima%
+\or septuag\'esima%
+\or octog\'esima%
+\or nonag\'esima%
+\fi
+}
+
+\newcommand{\@@teenthstringFspanish}[1]{%
+\ifcase#1\relax
+d\'ecima%
+\or und\'ecima%
+\or duod\'ecima%
+\or decimotercera%
+\or decimocuarta%
+\or decimoquinta%
+\or decimosexta%
+\or decimos\'eptima%
+\or decimoctava%
+\or decimonovena%
+\fi
+}
+
+\newcommand{\@@hundredthstringFspanish}[1]{%
+\ifcase#1\relax
+\or cent\'esima%
+\or ducent\'esima%
+\or tricent\'esima%
+\or cuadringent\'esima%
+\or quingent\'esima%
+\or sexcent\'esima%
+\or septing\'esima%
+\or octingent\'esima%
+\or noningent\'esima%
+\fi}
+
+\newcommand{\@@Unitthstringspanish}[1]{%
+\ifcase#1\relax
+Cero%
+\or Primero%
+\or Segundo%
+\or Tercero%
+\or Cuarto%
+\or Quinto%
+\or Sexto%
+\or S\'eptimo%
+\or Octavo%
+\or Noveno%
+\fi
+}
+
+\newcommand{\@@Tenthstringspanish}[1]{%
+\ifcase#1\relax
+\or D\'ecimo%
+\or Vig\'esimo%
+\or Trig\'esimo%
+\or Cuadrag\'esimo%
+\or Quincuag\'esimo%
+\or Sexag\'esimo%
+\or Septuag\'esimo%
+\or Octog\'esimo%
+\or Nonag\'esimo%
+\fi
+}
+
+\newcommand{\@@Teenthstringspanish}[1]{%
+\ifcase#1\relax
+D\'ecimo%
+\or Und\'ecimo%
+\or Duod\'ecimo%
+\or Decimotercero%
+\or Decimocuarto%
+\or Decimoquinto%
+\or Decimosexto%
+\or Decimos\'eptimo%
+\or Decimoctavo%
+\or Decimonoveno%
+\fi
+}
+
+\newcommand{\@@Hundredthstringspanish}[1]{%
+\ifcase#1\relax
+\or Cent\'esimo%
+\or Ducent\'esimo%
+\or Tricent\'esimo%
+\or Cuadringent\'esimo%
+\or Quingent\'esimo%
+\or Sexcent\'esimo%
+\or Septing\'esimo%
+\or Octingent\'esimo%
+\or Noningent\'esimo%
+\fi}
+
+\newcommand{\@@UnitthstringFspanish}[1]{%
+\ifcase#1\relax
+Cera%
+\or Primera%
+\or Segunda%
+\or Tercera%
+\or Cuarta%
+\or Quinta%
+\or Sexta%
+\or S\'eptima%
+\or Octava%
+\or Novena%
+\fi
+}
+
+\newcommand{\@@TenthstringFspanish}[1]{%
+\ifcase#1\relax
+\or D\'ecima%
+\or Vig\'esima%
+\or Trig\'esima%
+\or Cuadrag\'esima%
+\or Quincuag\'esima%
+\or Sexag\'esima%
+\or Septuag\'esima%
+\or Octog\'esima%
+\or Nonag\'esima%
+\fi
+}
+
+\newcommand{\@@TeenthstringFspanish}[1]{%
+\ifcase#1\relax
+D\'ecima%
+\or Und\'ecima%
+\or Duod\'ecima%
+\or Decimotercera%
+\or Decimocuarta%
+\or Decimoquinta%
+\or Decimosexta%
+\or Decimos\'eptima%
+\or Decimoctava%
+\or Decimonovena%
+\fi
+}
+
+\newcommand{\@@HundredthstringFspanish}[1]{%
+\ifcase#1\relax
+\or Cent\'esima%
+\or Ducent\'esima%
+\or Tricent\'esima%
+\or Cuadringent\'esima%
+\or Quingent\'esima%
+\or Sexcent\'esima%
+\or Septing\'esima%
+\or Octingent\'esima%
+\or Noningent\'esima%
+\fi}
+
+\newcommand{\@@numberstringspanish}[1]{%
+\ifnum#1>99999
+\PackageError{fmtcount}{Out of range}%
+{This macro only works for values less than 100000}%
+\else
+\ifnum#1<0
+\PackageError{fmtcount}{Negative numbers not permitted}%
+{This macro does not work for negative numbers, however
+you can try typing "minus" first, and then pass the modulus of
+this number}%
+\fi
+\fi
+\@strctr=#1\relax \divide\@strctr by 1000\relax
+\ifnum\@strctr>9
+ \divide\@strctr by 10
+ \ifnum\@strctr>1
+ \@tenstring{\@strctr}%
+ \@strctr=#1 \divide\@strctr by 1000\relax
+ \@modulo{\@strctr}{10}%
+ \ifnum\@strctr>0\ \@andname\ \@unitstring{\@strctr}\fi
+ \else
+ \@strctr=#1\relax
+ \divide\@strctr by 1000\relax
+ \@modulo{\@strctr}{10}%
+ \@teenstring{\@strctr}%
+ \fi
+ \ \@thousand%
+\else
+ \ifnum\@strctr>0
+ \ifnum\@strctr>1\@unitstring{\@strctr}\ \fi
+ \@thousand
+ \fi
+\fi
+\@strctr=#1\relax \@modulo{\@strctr}{1000}%
+\divide\@strctr by 100
+\ifnum\@strctr>0
+\ifnum#1>1000\ \fi
+\@tmpstrctr=#1\relax
+\@modulo{\@tmpstrctr}{1000}%
+\ifnum\@tmpstrctr=100\@tenstring{10}\else\@hundredstring{\@strctr}\fi%
+\fi
+\@strctr=#1\relax \@modulo{\@strctr}{100}%
+\ifnum#1>100 \ifnum\@strctr>0\ \@andname\ \fi\fi
+\ifnum\@strctr>29
+\divide\@strctr by 10
+\@tenstring{\@strctr}%
+\@strctr=#1\relax \@modulo{\@strctr}{10}%
+\ifnum\@strctr>0
+\ \@andname\ \@unitstring{\@strctr}%
+\fi
+\else
+\ifnum\@strctr<10
+\ifnum\@strctr=0
+\ifnum#1<100 \@unitstring{\@strctr}\fi
+\else
+\@unitstring{\@strctr}%
+\fi
+\else
+\ifnum\@strctr>19
+\@modulo{\@strctr}{10}%
+\@twentystring{\@strctr}%
+\else
+\@modulo{\@strctr}{10}%
+\@teenstring{\@strctr}%
+\fi
+\fi
+\fi
+}
+
+\newcommand{\@@ordinalstringspanish}[1]{%
+\@strctr=#1\relax
+\ifnum#1>99999
+\PackageError{fmtcount}{Out of range}%
+{This macro only works for values less than 100000}%
+\else
+\ifnum#1<0
+\PackageError{fmtcount}{Negative numbers not permitted}%
+{This macro does not work for negative numbers, however
+you can try typing "minus" first, and then pass the modulus of
+this number}%
+\else
+\ifnum\@strctr>999\relax
+ \divide\@strctr by 1000\relax
+ \ifnum\@strctr>1\relax
+ \ifnum\@strctr>9\relax
+ \@tmpstrctr=\@strctr
+ \ifnum\@strctr<20
+ \@modulo{\@tmpstrctr}{10}%
+ \@teenthstring{\@tmpstrctr}
+ \else
+ \divide\@tmpstrctr by 10\relax
+ \@tenthstring{\@tmpstrctr}
+ \@tmpstrctr=\@strctr
+ \@modulo{\@tmpstrctr}{10}%
+ \ifnum\@tmpstrctr>0\@unitthstring{\@tmpstrctr} \fi
+ \fi
+ \else
+ \@unitstring{\@strctr}
+ \fi
+ \fi
+ \@thousandth
+\fi
+\@strctr=#1\relax
+\@modulo{\@strctr}{1000}%
+\ifnum\@strctr>99\relax
+\@tmpstrctr=\@strctr
+\divide\@tmpstrctr by 100\relax
+\ifnum#1>1000\ \fi
+\@hundredthstring{\@tmpstrctr}%
+\fi
+\@modulo{\@strctr}{100}%
+\ifnum#1>99\ifnum\@strctr>0\ \fi\fi
+\ifnum\@strctr>19\relax
+\@tmpstrctr=\@strctr
+\divide\@tmpstrctr by 10\relax
+\@tenthstring{\@tmpstrctr}%
+\@tmpstrctr=\@strctr
+\@modulo{\@tmpstrctr}{10}%
+\ifnum\@tmpstrctr>0\ \@unitthstring{\@tmpstrctr}\fi
+\else
+\ifnum\@strctr>9
+\@modulo{\@strctr}{10}%
+\@teenthstring{\@strctr}%
+\else
+\ifnum\@strctr=0\relax
+\ifnum#1=0\@unitstring{0}\fi
+\else
+\@unitthstring{\@strctr}%
+\fi
+\fi
+\fi
+\fi
+\fi
+}
+\endinput
+%%
+%% End of file `fc-spanish.def'.
diff --git a/Master/texmf-dist/tex/latex/fmtcount/fmtcount.sty b/Master/texmf-dist/tex/latex/fmtcount/fmtcount.sty
new file mode 100644
index 00000000000..02fba14a600
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/fmtcount/fmtcount.sty
@@ -0,0 +1,487 @@
+%%
+%% This is file `fmtcount.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% fmtcount.dtx (with options: `fmtcount.sty,package')
+%% Copyright (C) 2005 Nicola Talbot, all rights reserved.
+%% If you modify this file, you must change its name first.
+%% You are NOT ALLOWED to distribute this file alone. You are NOT
+%% ALLOWED to take money for the distribution or use of either this
+%% file or a changed version, except for a nominal charge for copying
+%% etc.
+%% \CharacterTable
+%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%% Digits \0\1\2\3\4\5\6\7\8\9
+%% Exclamation \! Double quote \" Hash (number) \#
+%% Dollar \$ Percent \% Ampersand \&
+%% Acute accent \' Left paren \( Right paren \)
+%% Asterisk \* Plus \+ Comma \,
+%% Minus \- Point \. Solidus \/
+%% Colon \: Semicolon \; Less than \<
+%% Equals \= Greater than \> Question mark \?
+%% Commercial at \@ Left bracket \[ Backslash \\
+%% Right bracket \] Circumflex \^ Underscore \_
+%% Grave accent \` Left brace \{ Vertical bar \|
+%% Right brace \} Tilde \~}
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{fmtcount}[2005/06/20 v1.03]
+\RequirePackage{ifthen}
+\RequirePackage{keyval}
+\providecommand{\fmtord}[1]{\textsuperscript{#1}}
+
+\newcount\c@padzeroesN
+\c@padzeroesN=1\relax
+\providecommand{\padzeroes}[1][17]{\c@padzeroesN=#1}
+\@ifundefined{dateenglish}{}{\input{fc-english.def}}
+\@ifundefined{datespanish}{}{\input{fc-spanish.def}}
+\@ifundefined{dateportuges}{}{\input{fc-portuges.def}}
+\@ifundefined{datefrench}{}{\input{fc-french.def}}
+\def\fmtcount@french{france}
+\define@key{fmtcount}{french}[france]{%
+\@ifundefined{datefrench}{%
+\PackageError{fmtcount}{Language `french' not defined}{You need
+to load babel before loading fmtcount}}{
+\ifthenelse{\equal{#1}{france}
+ \or\equal{#1}{swiss}
+ \or\equal{#1}{belgian}}{%
+ \def\fmtcount@french{#1}}{%
+\PackageError{fmtcount}{Invalid value `#1' to french key}
+{Option `french' can only take the values `france',
+`belgian' or `swiss'}}
+}}
+
+\define@key{fmtcount}{fmtord}{%
+\ifthenelse{\equal{#1}{level}
+ \or\equal{#1}{raise}
+ \or\equal{#1}{user}}{
+ \def\fmtcount@fmtord{#1}}{%
+\PackageError{fmtcount}{Invalid value `#1' to fmtord key}
+{Option `fmtord' can only take the values `level', `raise'
+or `user'}}}
+
+\newif\iffmtord@abbrv
+\fmtord@abbrvfalse
+\define@key{fmtcount}{abbrv}[true]{%
+\ifthenelse{\equal{#1}{true}\or\equal{#1}{false}}{
+ \csname fmtord@abbrv#1\endcsname}{%
+\PackageError{fmtcount}{Invalid value `#1' to fmtord key}
+{Option `fmtord' can only take the values `true' or
+`false'}}}
+
+\newcommand{\fmtcountsetoptions}[1]{%
+\def\fmtcount@fmtord{}%
+\setkeys{fmtcount}{#1}%
+\@ifundefined{datefrench}{}{%
+\edef\@ordinalstringMfrench{\noexpand\csname @ordinalstringMfrench\fmtcount@french\noexpand\endcsname}%
+\edef\@ordinalstringFfrench{\noexpand\csname @ordinalstringFfrench\fmtcount@french\noexpand\endcsname}%
+\edef\@OrdinalstringMfrench{\noexpand\csname @OrdinalstringMfrench\fmtcount@french\noexpand\endcsname}%
+\edef\@OrdinalstringFfrench{\noexpand\csname @OrdinalstringFfrench\fmtcount@french\noexpand\endcsname}%
+\edef\@numberstringMfrench{\noexpand\csname @numberstringMfrench\fmtcount@french\noexpand\endcsname}%
+\edef\@numberstringFfrench{\noexpand\csname @numberstringFfrench\fmtcount@french\noexpand\endcsname}%
+\edef\@NumberstringMfrench{\noexpand\csname @NumberstringMfrench\fmtcount@french\noexpand\endcsname}%
+\edef\@NumberstringFfrench{\noexpand\csname @NumberstringFfrench\fmtcount@french\noexpand\endcsname}%
+}%
+\ifthenelse{\equal{\fmtcount@fmtord}{level}}{%
+\renewcommand{\fmtord}[1]{##1}}{%
+\ifthenelse{\equal{\fmtcount@fmtord}{raise}}{%
+\renewcommand{\fmtord}[1]{\textsuperscript{##1}}}{%
+}}
+}
+\InputIfFileExists{fmtcount.cfg}{%
+\typeout{Using configuration file fmtcount.cfg}}{%
+\typeout{No configuration file fmtcount.cfg found.}}
+\DeclareOption{level}{\def\fmtcount@fmtord{level}%
+\def\fmtord#1{#1}}
+\DeclareOption{raise}{\def\fmtcount@fmtord{raise}%
+\def\fmtord#1{\textsuperscript{#1}}}
+
+\ProcessOptions
+
+\newcount\@DT@modctr
+\def\@modulo#1#2{%
+\@DT@modctr=#1\relax
+\divide \@DT@modctr by #2\relax
+\multiply \@DT@modctr by #2\relax
+\advance #1 by -\@DT@modctr}
+\newcount\@ordinalctr
+\newcount\@orgargctr
+\newcount\@strctr
+\newcount\@tmpstrctr
+\newif\if@DT@padzeroes
+\newcount\@DT@loopN
+\newcount\@DT@X
+\newcommand{\@binary}[1]{%
+\@DT@padzeroestrue
+\@DT@loopN=17\relax
+\@strctr=\@DT@loopN
+\whiledo{\@strctr<\c@padzeroesN}{0\advance\@strctr by 1}%
+\@strctr=65536\relax
+\@DT@X=#1\relax
+\loop
+\@DT@modctr=\@DT@X
+\divide\@DT@modctr by \@strctr
+\ifthenelse{\boolean{@DT@padzeroes} \and \(\@DT@modctr=0\) \and \(\@DT@loopN>\c@padzeroesN\)}{}{\the\@DT@modctr}%
+\ifnum\@DT@modctr=0\else\@DT@padzeroesfalse\fi
+\multiply\@DT@modctr by \@strctr
+\advance\@DT@X by -\@DT@modctr
+\divide\@strctr by 2\relax
+\advance\@DT@loopN by -1\relax
+\ifnum\@strctr>1
+\repeat
+\the\@DT@X}
+
+\let\binarynum=\@binary
+\newcommand{\@octal}[1]{%
+\ifnum#1>32768
+\PackageError{fmtcount}{Value of counter too large for \protect\@octal}{Maximum value 32768}
+\else
+\@DT@padzeroestrue
+\@DT@loopN=6\relax
+\@strctr=\@DT@loopN
+\whiledo{\@strctr<\c@padzeroesN}{0\advance\@strctr by 1}%
+\@strctr=32768\relax
+\@DT@X=#1\relax
+\loop
+\@DT@modctr=\@DT@X
+\divide\@DT@modctr by \@strctr
+\ifthenelse{\boolean{@DT@padzeroes} \and \(\@DT@modctr=0\) \and \(\@DT@loopN>\c@padzeroesN\)}{}{\the\@DT@modctr}%
+\ifnum\@DT@modctr=0\else\@DT@padzeroesfalse\fi
+\multiply\@DT@modctr by \@strctr
+\advance\@DT@X by -\@DT@modctr
+\divide\@strctr by 8\relax
+\advance\@DT@loopN by -1\relax
+\ifnum\@strctr>1
+\repeat
+\the\@DT@X
+\fi}
+\let\octalnum=\@octal
+\newcommand{\@@hexadecimal}[1]{\ifcase#10\or1\or2\or3\or4\or5\or6\or7\or8\or9\or a\or b\or c\or d\or e\or f\fi}
+
+\newcommand{\@hexadecimal}[1]{%
+\@DT@padzeroestrue
+\@DT@loopN=5\relax
+\@strctr=\@DT@loopN
+\whiledo{\@strctr<\c@padzeroesN}{0\advance\@strctr by 1}%
+\@strctr=65536\relax
+\@DT@X=#1\relax
+\loop
+\@DT@modctr=\@DT@X
+\divide\@DT@modctr by \@strctr
+\ifthenelse{\boolean{@DT@padzeroes} \and \(\@DT@modctr=0\) \and \(\@DT@loopN>\c@padzeroesN\)}{}{\@@hexadecimal\@DT@modctr}%
+\ifnum\@DT@modctr=0\else\@DT@padzeroesfalse\fi
+\multiply\@DT@modctr by \@strctr
+\advance\@DT@X by -\@DT@modctr
+\divide\@strctr by 16\relax
+\advance\@DT@loopN by -1\relax
+\ifnum\@strctr>1
+\repeat
+\@@hexadecimal\@DT@X}
+
+\let\hexadecimalnum=\@hexadecimal
+
+\newcommand{\@@Hexadecimal}[1]{\ifcase#10\or1\or2\or3\or4\or5\or6\or7\or8\or9\or A\or B\or C\or D\or E\or F\fi}
+
+\newcommand{\@Hexadecimal}[1]{%
+\@DT@padzeroestrue
+\@DT@loopN=5\relax
+\@strctr=\@DT@loopN
+\whiledo{\@strctr<\c@padzeroesN}{0\advance\@strctr by 1}%
+\@strctr=65536\relax
+\@DT@X=#1\relax
+\loop
+\@DT@modctr=\@DT@X
+\divide\@DT@modctr by \@strctr
+\ifthenelse{\boolean{@DT@padzeroes} \and \(\@DT@modctr=0\) \and \(\@DT@loopN>\c@padzeroesN\)}{}{\@@Hexadecimal\@DT@modctr}%
+\ifnum\@DT@modctr=0\else\@DT@padzeroesfalse\fi
+\multiply\@DT@modctr by \@strctr
+\advance\@DT@X by -\@DT@modctr
+\divide\@strctr by 16\relax
+\advance\@DT@loopN by -1\relax
+\ifnum\@strctr>1
+\repeat
+\@@Hexadecimal\@DT@X}
+
+\let\Hexadecimalnum=\@Hexadecimal
+\newcommand{\@aaalph}[1]{%
+\@DT@loopN=#1\relax
+\advance\@DT@loopN by -1\relax
+\divide\@DT@loopN by 26\relax
+\@DT@modctr=\@DT@loopN
+\multiply\@DT@modctr by 26\relax
+\@DT@X=#1\relax
+\advance\@DT@X by -1\relax
+\advance\@DT@X by -\@DT@modctr
+\advance\@DT@loopN by 1\relax
+\advance\@DT@X by 1\relax
+\loop
+\@alph\@DT@X
+\advance\@DT@loopN by -1\relax
+\ifnum\@DT@loopN>0
+\repeat
+}
+
+\let\aaalphnum=\@aaalph
+
+\newcommand{\@AAAlph}[1]{%
+\@DT@loopN=#1\relax
+\advance\@DT@loopN by -1\relax
+\divide\@DT@loopN by 26\relax
+\@DT@modctr=\@DT@loopN
+\multiply\@DT@modctr by 26\relax
+\@DT@X=#1\relax
+\advance\@DT@X by -1\relax
+\advance\@DT@X by -\@DT@modctr
+\advance\@DT@loopN by 1\relax
+\advance\@DT@X by 1\relax
+\loop
+\@Alph\@DT@X
+\advance\@DT@loopN by -1\relax
+\ifnum\@DT@loopN>0
+\repeat
+}
+
+\let\AAAlphnum=\@AAAlph
+\newcommand{\@abalph}[1]{%
+\ifnum#1>17576
+\PackageError{fmtcount}{Value of counter too large for \protect\@abalph}{Maximum value 17576}
+\else
+\@DT@padzeroestrue
+\@strctr=17576\relax
+\@DT@X=#1\relax
+\advance\@DT@X by -1\relax
+\loop
+\@DT@modctr=\@DT@X
+\divide\@DT@modctr by \@strctr
+\ifthenelse{\boolean{@DT@padzeroes} \and \(\@DT@modctr=1\)}{}{\@alph\@DT@modctr}%
+\ifnum\@DT@modctr=1\else\@DT@padzeroesfalse\fi
+\multiply\@DT@modctr by \@strctr
+\advance\@DT@X by -\@DT@modctr
+\divide\@strctr by 26\relax
+\ifnum\@strctr>1
+\repeat
+\advance\@DT@X by 1\relax
+\@alph\@DT@X
+\fi}
+
+\let\abalphnum=\@abalph
+
+\newcommand{\@ABAlph}[1]{%
+\ifnum#1>17576
+\PackageError{fmtcount}{Value of counter too large for \protect\@ABAlph}{Maximum value 17576}
+\else
+\@DT@padzeroestrue
+\@strctr=17576\relax
+\@DT@X=#1\relax
+\advance\@DT@X by -1\relax
+\loop
+\@DT@modctr=\@DT@X
+\divide\@DT@modctr by \@strctr
+\ifthenelse{\boolean{@DT@padzeroes} \and \(\@DT@modctr=1\)}{}{\@Alph\@DT@modctr}%
+\ifnum\@DT@modctr=1\else\@DT@padzeroesfalse\fi
+\multiply\@DT@modctr by \@strctr
+\advance\@DT@X by -\@DT@modctr
+\divide\@strctr by 26\relax
+\ifnum\@strctr>1
+\repeat
+\advance\@DT@X by 1\relax
+\@Alph\@DT@X
+\fi}
+
+\let\ABAlphnum=\@ABAlph
+
+\newcommand{\@decimal}[1]{%
+\ifnum#1>10000
+\PackageError{fmtcount}{Value of counter too large for \protect\@decimal}{Maximum value 10000}\number#1\relax
+\else
+\@DT@padzeroestrue
+\@DT@loopN=6\relax
+\@strctr=\@DT@loopN
+\whiledo{\(\@strctr<\c@padzeroesN\) \TE@or \(\@strctr=\c@padzeroesN\)}{0\advance\@strctr by 1}%
+\@strctr=10000\relax
+\@DT@X=#1\relax
+\loop
+\@DT@modctr=\@DT@X
+\divide\@DT@modctr by \@strctr
+\ifthenelse{\boolean{@DT@padzeroes} \and \(\@DT@modctr=0\) \and \(\@DT@loopN>\c@padzeroesN\)}{}{\the\@DT@modctr}%
+\ifnum\@DT@modctr=0\else\@DT@padzeroesfalse\fi
+\multiply\@DT@modctr by \@strctr
+\advance\@DT@X by -\@DT@modctr
+\divide\@strctr by 10\relax
+\advance\@DT@loopN by -1\relax
+\ifnum\@strctr>1
+\repeat
+\the\@DT@X
+\fi}
+
+\let\decimalnum=\@decimal
+\newcommand{\ordinal}[1]{%
+\expandafter\protect\expandafter\ordinalnum{%
+\expandafter\the\csname c@#1\endcsname}}
+
+\newcommand{\ordinalnum}[1]{\@ifnextchar[{\@ordinalnum{#1}}{%
+\@ordinalnum{#1}[m]}}
+
+\def\@ordinalnum#1[#2]{%
+\ifthenelse{\equal{#2}{f}}{%
+\protect\@ordinalF{#1}}{%
+\ifthenelse{\equal{#2}{m}}{}{%
+\PackageError{fmtcount}{Invalid gender option `#2' to
+\string\ordinal}{Available options are m or f}}%
+\protect\@ordinalM{#1}}}
+
+\newcommand{\ordinalstring}[1]{%
+\expandafter\protect\expandafter\ordinalstringnum{%
+\expandafter\the\csname c@#1\endcsname}}
+
+\newcommand{\ordinalstringnum}[1]{%
+\@ifnextchar[{\@ordinal@string{#1}}{\@ordinal@string{#1}[m]}}
+
+\def\@ordinal@string#1[#2]{%
+\ifthenelse{\equal{#2}{f}}{%
+\protect\@ordinalstringF{#1}}{%
+\ifthenelse{\equal{#2}{m}}{}{%
+\PackageError{fmtcount}{Invalid gender option `#2' to
+\string\ordinalstring}{Available options are m or f}}%
+\protect\@ordinalstringM{#1}}}
+
+\newcommand{\Ordinalstring}[1]{%
+\expandafter\protect\expandafter\Ordinalstringnum{%
+\expandafter\the\csname c@#1\endcsname}}
+
+\newcommand{\Ordinalstringnum}[1]{%
+\@ifnextchar[{\@Ordinal@string{#1}}{\@Ordinal@string{#1}[m]}}
+
+\def\@Ordinal@string#1[#2]{%
+\ifthenelse{\equal{#2}{f}}{%
+\protect\@OrdinalstringF{#1}}{%
+\ifthenelse{\equal{#2}{m}}{}{%
+\PackageError{fmtcount}{Invalid gender option `#2' to
+\string\Ordinalstring}{Available options are m or f}}%
+\protect\@OrdinalstringM{#1}}}
+
+\newcommand{\numberstring}[1]{%
+\expandafter\protect\expandafter\numberstringnum{%
+\expandafter\the\csname c@#1\endcsname}}
+
+\newcommand{\numberstringnum}[1]{%
+\@ifnextchar[{\@number@string{#1}}{\@number@string{#1}[m]}}
+
+\def\@number@string#1[#2]{%
+\ifthenelse{\equal{#2}{f}}{%
+\protect\@numberstringF{#1}}{%
+\ifthenelse{\equal{#2}{m}}{}{%
+\PackageError{fmtcount}{Invalid gender option `#2' to
+\string\numberstring}{Available options are m or f}}%
+\protect\@numberstringM{#1}}}
+
+\newcommand{\Numberstring}[1]{%
+\expandafter\protect\expandafter\Numberstringnum{%
+\expandafter\the\csname c@#1\endcsname}}
+
+\newcommand{\Numberstringnum}[1]{%
+\@ifnextchar[{\@Number@string{#1}}{\@Number@string{#1}[m]}}
+
+\def\@Number@string#1[#2]{%
+\ifthenelse{\equal{#2}{f}}{%
+\protect\@NumberstringF{#1}}{%
+\ifthenelse{\equal{#2}{m}}{}{%
+\PackageError{fmtcount}{Invalid gender option `#2' to
+\string\Numberstring}{Available options are m or f}}%
+\protect\@NumberstringM{#1}}}
+
+\providecommand{\binary}[1]{\expandafter\protect\expandafter\@binary{\expandafter\the\csname c@#1\endcsname}}
+\providecommand{\aaalph}[1]{\expandafter\protect\expandafter\@aaalph{\expandafter\the\csname c@#1\endcsname}}
+\providecommand{\AAAlph}[1]{\expandafter\protect\expandafter\@AAAlph{\expandafter\the\csname c@#1\endcsname}}
+\providecommand{\abalph}[1]{\expandafter\protect\expandafter\@abalph{\expandafter\the\csname c@#1\endcsname}}
+\providecommand{\ABAlph}[1]{\expandafter\protect\expandafter\@ABAlph{\expandafter\the\csname c@#1\endcsname}}
+\providecommand{\hexadecimal}[1]{\expandafter\protect\expandafter\@hexadecimal{\expandafter\the\csname c@#1\endcsname}}
+\providecommand{\Hexadecimal}[1]{\expandafter\protect\expandafter\@Hexadecimal{\expandafter\the\csname c@#1\endcsname}}
+\providecommand{\octal}[1]{\expandafter\protect\expandafter\@octal{\expandafter\the\csname c@#1\endcsname}}
+\providecommand{\decimal}[1]{\expandafter\protect\expandafter\@decimal{\expandafter\the\csname c@#1\endcsname}}
+\def\@setdef@ultfmtcount{
+\@ifundefined{@ordinalenglish}{\input{fc-english.def}}{}
+\def\@ordinalstringM{\@ordinalstringMenglish}
+\let\@ordinalstringF=\@ordinalstringMenglish
+\def\@OrdinalstringM{\@OrdinalstringMenglish}
+\let\@OrdinalstringF=\@OrdinalstringMenglish
+\def\@numberstringM{\@numberstringMenglish}
+\let\@numberstringF=\@numberstringMenglish
+\def\@NumberstringM{\@NumberstringMenglish}
+\let\@NumberstringF=\@NumberstringMenglish
+\def\@ordinalM{\@ordinalMenglish}
+\let\@ordinalF=\@ordinalM}
+
+\@ifundefined{languagename}{%
+\@setdef@ultfmtcount}{
+\ifthenelse{\equal{\languagename}{nohyphenation}}{\@setdef@ultfmtcount}{
+\def\@numberstringM{\@ifundefined{@numberstringM\languagename}{%
+\PackageError{fmtcount}{No support for language '\languagename'}{%
+The fmtcount package currently does not support language
+'\languagename' for command \string\@numberstringM}}{%
+\csname @numberstringM\languagename\endcsname}}
+
+\def\@numberstringF{\@ifundefined{@numberstringF\languagename}{%
+\PackageError{fmtcount}{No support for language '\languagename'}{%
+The fmtcount package currently does not support language
+'\languagename' for command \string\@numberstringF}}{%
+\csname @numberstringF\languagename\endcsname}}
+
+\def\@NumberstringM{\@ifundefined{@NumberstringM\languagename}{%
+\PackageError{fmtcount}{No support for language '\languagename'}{%
+The fmtcount package currently does not support language
+'\languagename' for command \string\@NumberstringM}}{%
+\csname @NumberstringM\languagename\endcsname}}
+
+\def\@NumberstringF{\@ifundefined{@NumberstringF\languagename}{%
+\PackageError{fmtcount}{No support for language '\languagename'}{%
+The fmtcount package currently does not support language
+'\languagename' for command \string\@NumberstringF}}{%
+\csname @NumberstringF\languagename\endcsname}}
+
+\def\@ordinalM{\@ifundefined{@ordinalM\languagename}{%
+\PackageError{fmtcount}{No support for language '\languagename'}{%
+The fmtcount package currently does not support language
+'\languagename' for command \string\@ordinalM}}{%
+\csname @ordinalM\languagename\endcsname}}
+
+\def\@ordinalF{\@ifundefined{@ordinalF\languagename}{%
+\PackageError{fmtcount}{No support for language '\languagename'}{%
+The fmtcount package currently does not support language
+'\languagename' for command \string\@ordinalF}}{%
+\csname @ordinalF\languagename\endcsname}}
+
+\def\@ordinalstringM{\@ifundefined{@ordinalstringM\languagename}{%
+\PackageError{fmtcount}{No support for language '\languagename'}{%
+The fmtcount package currently does not support language
+'\languagename' for command \string\@ordinalstringM}}{%
+\csname @ordinalstringM\languagename\endcsname}}
+
+\def\@ordinalstringF{\@ifundefined{@ordinalstringF\languagename}{%
+\PackageError{fmtcount}{No support for language '\languagename'}{%
+The fmtcount package currently does not support language
+'\languagename' for command \string\@ordinalstringF}}{%
+\csname @ordinalstringF\languagename\endcsname}}
+
+\def\@OrdinalstringM{\@ifundefined{@OrdinalstringM\languagename}{%
+\PackageError{fmtcount}{No support for language '\languagename'}{%
+The fmtcount package currently does not support language
+'\languagename' for command \string\@OrdinalstringM}}{%
+\csname @OrdinalstringM\languagename\endcsname}}
+
+\def\@OrdinalstringF{\@ifundefined{@OrdinalstringF\languagename}{%
+\PackageError{fmtcount}{No support for language '\languagename'}{%
+The fmtcount package currently does not support language
+'\languagename' for command \string\@OrdinalstringF}}{%
+\csname @OrdinalstringF\languagename\endcsname}}
+}}
+\let\@ordinal=\@ordinalM
+\let\@ordinalstring=\@ordinalstringM
+\let\@Ordinalstring=\@OrdinalstringM
+\let\@numberstring=\@numberstringM
+\let\@Numberstring=\@NumberstringM
+\endinput
+%%
+%% End of file `fmtcount.sty'.