diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-12 23:57:14 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-12 23:57:14 +0000 |
commit | 89676d2bc257e3b020cb4692ffa5cb092470a1b5 (patch) | |
tree | 008e97aad811c7f81018234028961f9370ccbe65 /Master/texmf-dist/tex/latex/isodate | |
parent | 76f683b146315bf9236a0f9599561bd6d616555e (diff) |
isodate
git-svn-id: svn://tug.org/texlive/trunk@1000 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/isodate')
-rw-r--r-- | Master/texmf-dist/tex/latex/isodate/danish.idf | 100 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/isodate/english.idf | 270 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/isodate/french.idf | 97 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/isodate/german.idf | 131 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/isodate/isodate.sty | 384 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/isodate/isodateo.sty | 151 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/isodate/norsk.idf | 93 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/isodate/swedish.idf | 94 |
8 files changed, 1320 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/isodate/danish.idf b/Master/texmf-dist/tex/latex/isodate/danish.idf new file mode 100644 index 00000000000..2d2d9949668 --- /dev/null +++ b/Master/texmf-dist/tex/latex/isodate/danish.idf @@ -0,0 +1,100 @@ +%% +%% This is file `danish.idf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% isodate.dtx (with options: `language,danish') +%% +%% isodate package +%% +%% Copyright 2000--2005 Harald Harders +%% +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN +%% archives in directory macros/latex/base/lppl.txt; either +%% version 1 of the License, or any later version. +%% +%% h.harders@tu-bs.de +%% +\ProvidesFile{danish.idf} + [2005/03/11 v2.27 Language definitions for isodate package (HH)] +\let\iso@languageloaded\active +\typeout{Define commands for Danish date format} +\def\month@danish{\ifcase\month\or + januar\or februar\or marts\or april\or maj\or juni\or + juli\or august\or september\or oktober\or november\or december\fi} + \def\iso@printmonthday@danish#1#2{% + \ifthenelse{\equal{\iso@dateformat}{numeric}\or% + \equal{\iso@dateformat}{short}}{% + \iso@printday{#2}/\iso@printmonth{#1}\ifiso@printyear/\fi}{% + \ifthenelse{\equal{\iso@dateformat}{iso}}{% + \ifiso@printyear\iso@isodash\fi\iso@printmonth{#1}% + \iso@isodash\iso@printday{#2}}{% + \ifthenelse{\equal{\iso@dateformat}{TeX}}{% + \ifiso@printyear/\fi\iso@printmonth{#1}/\iso@printday{#2}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}\or + \equal{\iso@dateformat}{shortorig}}{% + \iso@printday{#2}.~\begingroup + \edef\lmonth{#1}\def\month{\lmonth}% + \month@danish% + \endgroup + }{}}}}% + } + \def\iso@printdate@danish#1#2#3{% + \ifthenelse{\equal{\iso@dateformat}{iso}\or% + \equal{\iso@dateformat}{TeX}}{% + \ifiso@printyear + \number#1% + \fi}{}% + \iso@printmonthday@danish{\number#2}{\number#3}% + \ifiso@printyear + \ifthenelse{\equal{\iso@dateformat}{numeric}}{\iso@yearfour{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}}{~\iso@yearfour{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{shortorig}}{% + ~\iso@twodigitsign\iso@yeartwo{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{short}}{% + \iso@yeartwo{\number#1}}{% + }}}}% + \fi + } + \def\iso@datedanish{% + \def\today{\iso@printdate@danish{\year}{\month}{\day}}}% + \expandafter\def\csname iso@daterange@\CurrentOption\endcsname{% + \iso@daterange@danish}% +\def\iso@daterange@danish#1#2#3#4#5#6{% + \ifthenelse{\equal{\iso@dateformat}{iso}\or% + \equal{\iso@dateformat}{TeX}}{% + \csname iso@printdate@\iso@languagename\endcsname{% + #1}{#2}{#3}\iso@rangesign% + \ifthenelse{\equal{\number#1}{\number#4}}{% + \ifthenelse{\equal{\number#2}{\number#5}}{\iso@printday{#6}% + }{\iso@printmonthday@danish{#5}{#6}}}{% + \csname iso@printdate@\iso@languagename\endcsname{#4}{#5}{#6}}% + }{% + \ifthenelse{\equal{\number#1}{\number#4}}{% + \ifthenelse{\equal{\number#2}{\number#5}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}\or + \equal{\iso@dateformat}{shortorig}}{% + \iso@printday{#3}.}{\iso@printday{#3}}% + }{\iso@printmonthday@danish{#2}{#3}}}{% + \begingroup + \printyearon + \csname iso@printdate@\iso@languagename\endcsname{% + #1}{#2}{#3}% + \endgroup}% + \iso@rangesign\csname iso@printdate@\iso@languagename\endcsname{% + #4}{#5}{#6}% + }{% + }% +} +\expandafter\def\csname iso@rangesign@\CurrentOption\endcsname{~til~} +\def\iso@languagename{danish}% +\AtBeginDocument{% + \ifx\undefined\iso@datedanish\else + \def\datedanish{\iso@datedanish}% + \fi +} +\endinput +%% +%% End of file `danish.idf'. diff --git a/Master/texmf-dist/tex/latex/isodate/english.idf b/Master/texmf-dist/tex/latex/isodate/english.idf new file mode 100644 index 00000000000..f29a1d25e32 --- /dev/null +++ b/Master/texmf-dist/tex/latex/isodate/english.idf @@ -0,0 +1,270 @@ +%% +%% This is file `english.idf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% isodate.dtx (with options: `language,english') +%% +%% isodate package +%% +%% Copyright 2000--2005 Harald Harders +%% +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN +%% archives in directory macros/latex/base/lppl.txt; either +%% version 1 of the License, or any later version. +%% +%% h.harders@tu-bs.de +%% +\ProvidesFile{english.idf} + [2005/03/11 v2.27 Language definitions for isodate package (HH)] +\let\iso@languageloaded\active +\def\month@english{\ifcase\month\or + January\or February\or March\or April\or May\or June\or + July\or August\or September\or October\or November\or December\fi} +\ifthenelse{\equal{\CurrentOption}{english}\or + \equal{\CurrentOption}{british}\or + \equal{\CurrentOption}{UKenglish}}{% +\typeout{Define commands for English date format} + \def\day@english{\ifcase\day\or + 1st\or 2nd\or 3rd\or 4th\or 5th\or + 6th\or 7th\or 8th\or 9th\or 10th\or + 11th\or 12th\or 13th\or 14th\or 15th\or + 16th\or 17th\or 18th\or 19th\or 20th\or + 21st\or 22nd\or 23rd\or 24th\or 25th\or + 26th\or 27th\or 28th\or 29th\or 30th\or + 31st\fi} + \def\iso@printmonthday@english#1#2{% + \ifthenelse{\equal{\iso@dateformat}{numeric}\or% + \equal{\iso@dateformat}{short}}{% + \iso@printday{#2}/\iso@printmonth{#1}\ifiso@printyear/\fi}{% + \ifthenelse{\equal{\iso@dateformat}{iso}}{% + \iso@printmonth{#1}\iso@isodash\iso@printday{#2}}{% + \ifthenelse{\equal{\iso@dateformat}{TeX}}{% + \iso@printmonth{#1}/\iso@printday{#2}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}\or + \equal{\iso@dateformat}{shortorig}}{% + \begingroup + \edef\lday{#2}\def\day{\lday}% + \edef\lmonth{#1}\def\month{\lmonth}% + \day@english~\month@english% + \endgroup + }{}}}}% + } + \def\iso@printdate@english#1#2#3{% + \ifthenelse{\equal{\iso@dateformat}{iso}}{% + \ifiso@printyear\iso@yearfour{\number#1}\iso@isodash\fi}{% + \ifthenelse{\equal{\iso@dateformat}{TeX}}{% + \ifiso@printyear\iso@yearfour{\number#1}/\fi}{}}% + \iso@printmonthday@english{\number#2}{\number#3}% + \ifiso@printyear + \ifthenelse{\equal{\iso@dateformat}{numeric}}{\iso@yearfour{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}}{~\iso@yearfour{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{shortorig}}{% + ~\iso@twodigitsign\iso@yeartwo{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{short}}{% + \iso@yeartwo{\number#1}}{% + }}}% + }% + \fi + } + \def\iso@printdate@UKenglish{\iso@printdate@english} + \def\iso@printdate@british{\iso@printdate@english} + \def\iso@dateenglish{% + \def\today{\iso@printdate@english{\year}{\month}{\day}}}% + \expandafter\def\csname iso@daterange@\CurrentOption\endcsname{% + \iso@daterange@english}% + \def\iso@daterange@english#1#2#3#4#5#6{% + \ifthenelse{\equal{\iso@dateformat}{iso}\or% + \equal{\iso@dateformat}{TeX}}{% + \csname iso@printdate@\iso@languagename\endcsname{% + #1}{#2}{#3}\iso@rangesign% + \ifthenelse{\equal{\number#1}{\number#4}}{% + \ifthenelse{\equal{\number#2}{\number#5}}{\iso@printday{#6}% + }{\iso@printmonthday@english{#5}{#6}}}{% + \csname iso@printdate@\iso@languagename\endcsname{#4}{#5}{#6}}}{% + \ifthenelse{\equal{\number#1}{\number#4}}{% + \ifthenelse{\equal{\number#2}{\number#5}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}\or + \equal{\iso@dateformat}{shortorig}}{% + \begingroup + \edef\lday{#3}\def\day{\lday}% + \day@english\endgroup}{\iso@printday{#3}}% + }{\iso@printmonthday@english{#2}{#3}}}{% + \csname iso@printdate@\iso@languagename\endcsname{#1}{#2}{#3}}% + \iso@rangesign\csname iso@printdate@\iso@languagename\endcsname{% + #4}{#5}{#6}% + }{% + }% + } + \def\iso@languagename{english}% +}{% + \ifthenelse{\equal{\CurrentOption}{australian}\or% + \equal{\CurrentOption}{newzealand}}{% + \typeout{Define commands for Australian date format} + \def\iso@printmonthday@australian#1#2{% + \ifthenelse{\equal{\iso@dateformat}{numeric}\or% + \equal{\iso@dateformat}{short}}{% + \iso@printday{#2}/\iso@printmonth{#1}\ifiso@printyear/\fi}{% + \ifthenelse{\equal{\iso@dateformat}{iso}}{% + \iso@printmonth{#1}\iso@isodash\iso@printday{#2}}{% + \ifthenelse{\equal{\iso@dateformat}{TeX}}{% + \iso@printmonth{#1}/\iso@printday{#2}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}\or + \equal{\iso@dateformat}{shortorig}}{% + \begingroup + \edef\lmonth{#1}\def\month{\lmonth}% + \iso@printday{#2}~\month@english% + \endgroup + }{}}}}% + } + \def\iso@printdate@australian#1#2#3{% + \ifiso@printyear + \ifthenelse{\equal{\iso@dateformat}{iso}}{% + \iso@yearfour{\number#1}\iso@isodash}{% + \ifthenelse{\equal{\iso@dateformat}{TeX}}{% + \iso@yearfour{\number#1}/}{}% + }% + \fi + \iso@printmonthday@australian{\number#2}{\number#3}% + \ifiso@printyear + \ifthenelse{\equal{\iso@dateformat}{numeric}}{% + \iso@yearfour{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}}{% + ~\iso@yearfour{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{shortorig}}{% + ~\iso@twodigitsign\iso@yeartwo{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{short}}{% + \iso@yeartwo{\number#1}}{% + }}}% + }% + \fi + } + \def\iso@printdate@newzealand{\iso@printdate@australian} + \def\iso@dateaustralian{% + \def\today{\iso@printdate@australian{\year}{\month}{\day}}}% + \expandafter\def\csname iso@daterange@\CurrentOption\endcsname{% + \iso@daterange@australian}% + \def\iso@daterange@australian#1#2#3#4#5#6{% + \ifthenelse{\equal{\iso@dateformat}{iso}\or% + \equal{\iso@dateformat}{TeX}}{% + \csname iso@printdate@\iso@languagename\endcsname{% + #1}{#2}{#3}\iso@rangesign% + \ifthenelse{\equal{\number#1}{\number#4}}{% + \ifthenelse{\equal{\number#2}{\number#5}}{\iso@printday{#6}% + }{\iso@printmonthday@australian{#5}{#6}}}{% + \csname iso@printdate@\iso@languagename\endcsname{#4}{#5}{#6}}}{% + \ifthenelse{\equal{\number#1}{\number#4}}{% + \ifthenelse{\equal{\number#2}{\number#5}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}}{% + \begingroup + \iso@printday{#3}\endgroup}{\iso@printday{#3}}% + }{\iso@printmonthday@australian{#2}{#3}}}{% + \csname iso@printdate@\iso@languagename\endcsname{#1}{#2}{#3}}% + \iso@rangesign\csname iso@printdate@\iso@languagename\endcsname{% + #4}{#5}{#6}% + }{% + }% + } + \def\iso@languagename{australian}% + }{% + \typeout{Define commands for American date format} + \def\iso@printmonthday@american#1#2{% + \ifthenelse{\equal{\iso@dateformat}{numeric}\or% + \equal{\iso@dateformat}{short}}{% + \iso@printmonth{#1}/\iso@printday{#2}\ifiso@printyear/\fi}{% + \ifthenelse{\equal{\iso@dateformat}{iso}}{% + \iso@printmonth{#1}\iso@isodash\iso@printday{#2}}{% + \ifthenelse{\equal{\iso@dateformat}{TeX}}{% + \iso@printmonth{#1}/\iso@printday{#2}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}\or + \equal{\iso@dateformat}{shortorig}}{% + \begingroup% + \edef\lmonth{#1}% + \def\month{\lmonth}\month@english% + \endgroup + ~\iso@printday{#2}% + }{}}}% + }% + } + \def\iso@printdate@american#1#2#3{% + \ifiso@printyear + \ifthenelse{\equal{\iso@dateformat}{iso}}{% + \iso@yearfour{\number#1}\iso@isodash}{% + \ifthenelse{\equal{\iso@dateformat}{TeX}}{% + \iso@yearfour{\number#1}/}{}}% + \fi + \iso@printmonthday@american{\number#2}{\number#3}% + \ifiso@printyear + \ifthenelse{\equal{\iso@dateformat}{numeric}}{% + \iso@yearfour{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}}{% + ,~\iso@yearfour{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{shortorig}}{% + ,~\iso@twodigitsign\iso@yeartwo{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{short}}{% + \iso@yeartwo{\number#1}}{}}}% + }% + \fi + } + \def\iso@printdate@USenglish{\iso@printdate@american} + \def\iso@dateamerican{% + \def\today{\iso@printdate@american{\year}{\month}{\day}}}% + \expandafter\def\csname iso@daterange@\CurrentOption\endcsname{% + \iso@daterange@american}% + \def\iso@daterange@american#1#2#3#4#5#6{% + \ifthenelse{\equal{\iso@dateformat}{iso}\or% + \equal{\iso@dateformat}{TeX}}{% + \csname iso@printdate@\iso@languagename\endcsname{#1}{#2}{#3}% + \iso@rangesign% + \ifthenelse{\equal{\number#1}{\number#4}}{% + \ifthenelse{\equal{\number#2}{\number#5}}{\iso@printday{#6}% + }{\iso@printmonthday@american{#5}{#6}}}{% + \csname iso@printdate@\iso@languagename\endcsname{% + #4}{#5}{#6}}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}\or + \equal{\iso@dateformat}{shortorig}}{% + \ifthenelse{\equal{\number#1}{\number#4}}{% + \ifthenelse{\equal{\number#2}{\number#5}}{% + \iso@printmonthday@american{#2}{#3}\iso@rangesign% + \iso@printday{#6},~% + \ifthenelse{\equal{\iso@dateformat}{orig}}{% + \number#4}{\iso@twodigitsign\iso@yeartwo{\number#4}}% + }{% + \iso@printmonthday@american{#2}{#3}\iso@rangesign% + \csname iso@printdate@\iso@languagename\endcsname{% + #4}{#5}{#6}}}{% + \csname iso@printdate@\iso@languagename\endcsname{#1}{#2}{#3}% + \iso@rangesign% + \csname iso@printdate@\iso@languagename\endcsname{% + #4}{#5}{#6}}}{% + \ifthenelse{\equal{\number#1}{\number#4}}{% + \iso@printmonthday@american{#2}{#3}}{% + \csname iso@printdate@\iso@languagename\endcsname{#1}{#2}{#3}}% + \iso@rangesign\csname iso@printdate@\iso@languagename\endcsname{% + #4}{#5}{#6}}% + }% + } + \def\iso@languagename{american}% + } +} +\expandafter\def\csname iso@rangesign@\CurrentOption\endcsname{~to~} +\AtBeginDocument{% + \ifx\undefined\iso@dateenglish\else + \def\dateenglish{\iso@dateenglish}% + \def\datebritish{\iso@dateenglish}% + \def\dateUKenglish{\iso@dateenglish}% + \fi + \ifx\undefined\iso@dateaustralian\else + \def\dateaustralian{\iso@dateaustralian}% + \def\datenewzealand{\iso@dateaustralian}% + \fi + \ifx\undefined\iso@dateamerican\else + \def\dateamerican{\iso@dateamerican}% + \def\dateUSenglish{\iso@dateamerican}% + \fi +} +\endinput +%% +%% End of file `english.idf'. diff --git a/Master/texmf-dist/tex/latex/isodate/french.idf b/Master/texmf-dist/tex/latex/isodate/french.idf new file mode 100644 index 00000000000..6afd1fcfe8a --- /dev/null +++ b/Master/texmf-dist/tex/latex/isodate/french.idf @@ -0,0 +1,97 @@ +%% +%% This is file `french.idf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% isodate.dtx (with options: `language,french') +%% +%% isodate package +%% +%% Copyright 2000--2005 Harald Harders +%% +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN +%% archives in directory macros/latex/base/lppl.txt; either +%% version 1 of the License, or any later version. +%% +%% h.harders@tu-bs.de +%% +\ProvidesFile{french.idf} + [2005/03/11 v2.27 Language definitions for isodate package (HH)] +\let\iso@languageloaded\active +\typeout{Define commands for French date format} +\def\month@french{\ifcase\month\or + janvier\or f\'evrier\or mars\or avril\or mai\or juin\or + juillet\or ao\^ut\or septembre\or octobre\or novembre\or + d\'ecembre\fi} +\def\iso@printmonthday@french#1#2{% + \ifthenelse{\equal{\iso@dateformat}{numeric}\or% + \equal{\iso@dateformat}{short}}{% + \iso@printday{#2}/\iso@printmonth{#1}\ifiso@printyear/\fi}{% + \ifthenelse{\equal{\iso@dateformat}{iso}}{% + \ifiso@printyear\iso@isodash\fi\iso@printmonth{#1}% + \iso@isodash\iso@printday{#2}}{% + \ifthenelse{\equal{\iso@dateformat}{TeX}}{% + \ifiso@printyear/\fi\iso@printmonth{#1}/\iso@printday{#2}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}\or + \equal{\iso@dateformat}{shortorig}}{% + \begingroup + \edef\lday{#2}\edef\day{\lday}% + \edef\lmonth{#1}\def\month{\lmonth}% + \number\day\ifnum1=\day \noexpand\ier\fi~\month@french% + \endgroup + }{}}}}% + } +\def\iso@printdate@french#1#2#3{% + \ifthenelse{\equal{\iso@dateformat}{iso}\or% + \equal{\iso@dateformat}{TeX}}{% + \ifiso@printyear\iso@yearfour{\number#1}\fi}{}% + \iso@printmonthday@french{\number#2}{\number#3}% + \ifiso@printyear + \ifthenelse{\equal{\iso@dateformat}{numeric}}{\iso@yearfour{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}}{~\iso@yearfour{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{shortorig}}{% + ~\iso@twodigitsign\iso@yeartwo{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{short}}{% + \iso@yeartwo{\number#1}}{}}}}% + \fi +} +\def\iso@datefrench{% + \def\today{\iso@printdate@french{\year}{\month}{\day}}}% + \expandafter\def\csname iso@daterange@\CurrentOption\endcsname{% + \iso@daterange@french}% +\def\iso@daterange@french#1#2#3#4#5#6{% + \ifthenelse{\equal{\iso@dateformat}{iso}\or% + \equal{\iso@dateformat}{TeX}}{% + \csname iso@printdate@\iso@languagename\endcsname{#1}{#2}{#3}% + \iso@rangesign% + \ifthenelse{\equal{\number#1}{\number#4}}{% + \ifthenelse{\equal{\number#2}{\number#5}}{\iso@printday{#6}% + }{\iso@printmonthday@french{#5}{#6}}}{% + \csname iso@printdate@\iso@languagename\endcsname{#4}{#5}{#6}}}{% + \ifthenelse{\equal{\number#1}{\number#4}}{% + \ifthenelse{\equal{\number#2}{\number#5}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}}{% + \begingroup + \edef\lday{#3}\edef\day{\lday}% + \number\day\ifnum1=\day \noexpand\ier\fi + \endgroup}{\iso@printday{#3}}% + }{\iso@printmonthday@french{#2}{#3}}}{% + \csname iso@printdate@\iso@languagename\endcsname{#1}{#2}{#3}}% + \iso@rangesign\csname iso@printdate@\iso@languagename\endcsname{% + #4}{#5}{#6}% +}{% + }% +} +\expandafter\def\csname iso@rangesign@\CurrentOption\endcsname{~au~} +\def\iso@languagename{french}% +\AtBeginDocument{% + \ifx\undefined\iso@datefrench\else + \def\datefrench{\iso@datefrench}% + \def\datefrenchb{\iso@datefrench}% + \fi +} +\endinput +%% +%% End of file `french.idf'. diff --git a/Master/texmf-dist/tex/latex/isodate/german.idf b/Master/texmf-dist/tex/latex/isodate/german.idf new file mode 100644 index 00000000000..730ad12879a --- /dev/null +++ b/Master/texmf-dist/tex/latex/isodate/german.idf @@ -0,0 +1,131 @@ +%% +%% This is file `german.idf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% isodate.dtx (with options: `language,german') +%% +%% isodate package +%% +%% Copyright 2000--2005 Harald Harders +%% +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN +%% archives in directory macros/latex/base/lppl.txt; either +%% version 1 of the License, or any later version. +%% +%% h.harders@tu-bs.de +%% +\ProvidesFile{german.idf} + [2005/03/11 v2.27 Language definitions for isodate package (HH)] +\let\iso@languageloaded\active +\typeout{Define commands for German date format (\CurrentOption)} +\def\iso@dmsepgerman{\,}% +\def\iso@mylongsepgerman{~}% +\def\iso@myshortsepgerman{\,}% +\DeclareRobustCommand*\daymonthsepgerman[1]{\def\iso@dmsepgerman{#1}} +\DeclareRobustCommand*\monthyearsepgerman[2]{% + \def\iso@mylongsepgerman{#1}% + \def\iso@myshortsepgerman{#2}} +\def\month@german{\ifcase\month\or + Januar\or Februar\or M\"arz\or April\or Mai\or Juni\or + Juli\or August\or September\or Oktober\or November\or Dezember\fi} +\def\month@ngerman{\month@german} +\def\month@austrian{\ifnum1=\month + J\"anner\else \month@german\fi} +\def\month@naustrian{\month@austrian} +\@namedef{iso@printmonthday@\CurrentOption}#1#2{% + \ifthenelse{\equal{\iso@dateformat}{numeric}\or% + \equal{\iso@dateformat}{short}}{% + \iso@printday{#2}.\iso@dmsepgerman\iso@printmonth{#1}.}{% + \ifthenelse{\equal{\iso@dateformat}{iso}}{% + \iso@printmonth{#1}\iso@isodash\iso@printday{#2}}{% + \ifthenelse{\equal{\iso@dateformat}{TeX}}{% + \iso@printmonth{#1}/\iso@printday{#2}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}\or + \equal{\iso@dateformat}{shortorig}}{% + \iso@printday{#2}.~\begingroup + \edef\lmonth{#1}% + \def\month{\lmonth}\csname month@\iso@languagename\endcsname% + \endgroup + }{}}}}% +} +\@namedef{iso@printdate@\CurrentOption}#1#2#3{% + \ifiso@printyear + \ifthenelse{\equal{\iso@dateformat}{iso}}{% + \iso@yearfour{\number#1}\iso@isodash}{% + \ifthenelse{\equal{\iso@dateformat}{TeX}}{% + \iso@yearfour{\number#1}/}{}}% + \fi + \csname iso@printmonthday@\iso@languagename\endcsname{% + \number#2}{\number#3}% + \ifiso@printyear + \ifthenelse{\equal{\iso@dateformat}{numeric}}{% + \iso@mylongsepgerman\iso@yearfour{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}}{~\iso@yearfour{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{shortorig}}{% + ~\iso@twodigitsign\iso@yeartwo{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{short}}{% + \iso@myshortsepgerman\iso@yeartwo{\number#1}}{}}}}% + \fi +} +\@namedef{iso@daterange@\CurrentOption}#1#2#3#4#5#6{% + \ifthenelse{\equal{\iso@dateformat}{iso}\or% + \equal{\iso@dateformat}{TeX}}{% + \csname iso@printdate@\iso@languagename\endcsname{#1}{#2}{#3}% + \iso@rangesign% + \ifthenelse{\equal{\number#1}{\number#4}}{% + \ifthenelse{\equal{\number#2}{\number#5}}{\iso@printday{#6}% + }{\csname iso@printmonthday@\iso@languagename\endcsname{#5}{#6}}}{% + \csname iso@printdate@\iso@languagename\endcsname{#4}{#5}{#6}}}{% + \ifthenelse{\equal{\number#1}{\number#4}}{% + \ifthenelse{\equal{\number#2}{\number#5}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}}{% + \iso@printday{#3}}{\iso@printday{#3}}.% + }{\csname iso@printmonthday@\iso@languagename\endcsname{% + #2}{#3}}}{% + \csname iso@printdate@\iso@languagename\endcsname{#1}{#2}{#3}}% + \iso@rangesign\csname iso@printdate@\iso@languagename\endcsname{% + #4}{#5}{#6}% + }% +} +\expandafter\def\csname iso@rangesign@\CurrentOption\endcsname{~bis~} +\ifthenelse{\equal{\CurrentOption}{german}}{% + \def\iso@dategerman{% + \def\today{\iso@printdate@german{\year}{\month}{\day}}}% + \def\iso@languagename{german}% +}{% +\ifthenelse{\equal{\CurrentOption}{ngerman}}{% + \def\iso@datengerman{% + \def\today{\iso@printdate@ngerman{\year}{\month}{\day}}}% + \def\iso@languagename{ngerman}% +}{% +\ifthenelse{\equal{\CurrentOption}{austrian}}{% + \def\iso@dateaustrian{% + \def\today{\iso@printdate@austrian{\year}{\month}{\day}}}% + \def\iso@languagename{austrian}% +}{% +\ifthenelse{\equal{\CurrentOption}{naustrian}}{% + \def\iso@datenaustrian{% + \def\today{\iso@printdate@naustrian{\year}{\month}{\day}}}% + \def\iso@languagename{naustrian}% +}{% +}}}} +\AtBeginDocument{% + \ifx\undefined\iso@dategerman\else + \def\dategerman{\iso@dategerman}% + \fi + \ifx\undefined\iso@datengerman\else + \def\datengerman{\iso@datengerman}% + \fi + \ifx\undefined\iso@dateaustrian\else + \def\dateaustrian{\iso@dateaustrian}% + \fi + \ifx\undefined\iso@datenaustrian\else + \def\datenaustrian{\iso@datenaustrian}% + \fi +} +\endinput +%% +%% End of file `german.idf'. diff --git a/Master/texmf-dist/tex/latex/isodate/isodate.sty b/Master/texmf-dist/tex/latex/isodate/isodate.sty new file mode 100644 index 00000000000..958d0628046 --- /dev/null +++ b/Master/texmf-dist/tex/latex/isodate/isodate.sty @@ -0,0 +1,384 @@ +%% +%% This is file `isodate.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% isodate.dtx (with options: `isodate') +%% +%% isodate package +%% +%% Copyright 2000--2005 Harald Harders +%% +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN +%% archives in directory macros/latex/base/lppl.txt; either +%% version 1 of the License, or any later version. +%% +%% h.harders@tu-bs.de +%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{isodate} + [2005/03/11 v2.27 Print dates with different formats (HH)] +\RequirePackage{ifthen} +\IfFileExists{substr.sty}{\RequirePackage{substr}% + }{\PackageError{isodate.sty}{Package file substr.sty not found} + {This version of isodate.sty needs the package substr.sty.^^J% + You can download it from + CTAN:/macros/latex/contrib/substr/^^J% + e.g., one CTAN node is ftp.dante.de. + Install substr.sty into your TeX tree.}} +\DeclareOption{iso}{\AtEndOfPackage{\isodate}} +\DeclareOption{num}{\AtEndOfPackage{\numdate}} +\DeclareOption{short}{\AtEndOfPackage{\shortdate}} +\DeclareOption{TeX}{\AtEndOfPackage{\TeXdate}} +\DeclareOption{orig}{\AtEndOfPackage{\origdate}} +\DeclareOption{shortorig}{\AtEndOfPackage{\shortorigdate}} +\DeclareOption{Roman}{\AtEndOfPackage{\Romandate}} +\DeclareOption{roman}{\AtEndOfPackage{\romandate}} +\DeclareOption{shortRoman}{\AtEndOfPackage{\shortRomandate}} +\DeclareOption{shortroman}{\AtEndOfPackage{\shortromandate}} +\DeclareOption{inputenglish}{\AtEndOfPackage{\dateinputformat{english}}} +\DeclareOption{inputbritish}{\AtEndOfPackage{\dateinputformat{english}}} +\DeclareOption{inputUKenglish}{\AtEndOfPackage{\dateinputformat{english}}} +\DeclareOption{inputamerican}{\AtEndOfPackage{\dateinputformat{american}}} +\DeclareOption{inputUSenglish}{\AtEndOfPackage{\dateinputformat{american}}} +\DeclareOption{inputtex}{\AtEndOfPackage{\dateinputformat{tex}}} +\DeclareOption{inputTeX}{\AtEndOfPackage{\dateinputformat{tex}}} +\DeclareOption{inputlatex}{\AtEndOfPackage{\dateinputformat{tex}}} +\DeclareOption{inputLaTeX}{\AtEndOfPackage{\dateinputformat{tex}}} +\DeclareOption{american}{\input{english.idf}} +\DeclareOption{australian}{\input{english.idf}} +\DeclareOption{austrian}{\input{german.idf}} +\DeclareOption{danish}{\input{danish.idf}} +\DeclareOption{english}{\input{english.idf}} +\DeclareOption{british}{\input{english.idf}} +\DeclareOption{french}{\input{french.idf}} +\DeclareOption{frenchb}{\input{french.idf}} +\DeclareOption{german}{\input{german.idf}} +\DeclareOption{naustrian}{\input{german.idf}} +\DeclareOption{newzealand}{\input{english.idf}} +\DeclareOption{ngerman}{\input{german.idf}} +\DeclareOption{norsk}{\input{norsk.idf}} +\DeclareOption{norwegian}{\input{norsk.idf}} +\DeclareOption{swedish}{\input{swedish.idf}} +\DeclareOption{UKenglish}{\input{english.idf}} +\DeclareOption{USenglish}{\input{english.idf}} +\DeclareOption*{% + \InputIfFileExists{\CurrentOption.idf}{}{% + \PackageError{isodate}{% + Isodate definition file \CurrentOption.idf not found}{% + Maybe you misspelled the language option?}}% + } +\ExecuteOptions{orig} +\ProcessOptions* +\ifx\iso@languageloaded\@undefined + \PackageError{isodate}{% + You haven't specified a language option}{% + You need to specify a language, either as a global + option\MessageBreak + or as an optional argument to the \string\usepackage\space + command.\MessageBreak + If you have used the old isodate package (version <=1.06) you can + change the\MessageBreak + usepackage command to \protect\usepackage{isodate}.\MessageBreak + You shouldn't try to proceed from here, type x to quit.} +\fi +\newcommand*\iso@printday[1]{% + \ifisotwodigitday + \ifthenelse{\number#1<10}{0}{}% + \fi + \number#1% +}% +\newcommand*\twodigitarabic[1]{% + \ifthenelse{\number\arabic{#1}<10}{0}{}% + \arabic{#1}% +} +\newcommand*\iso@printmonth[1]{% + \setcounter{iso@tmpmonth}{#1}% + \theiso@tmpmonth% +} +\newcounter{iso@tmpmonth} +\newcounter{iso@yeartwo}% +\newcommand*\iso@yeartwo[1]{% + \setcounter{iso@yeartwo}{\number#1}% + \whiledo{\theiso@yeartwo>99}{% + \addtocounter{iso@yeartwo}{-100}}{}% + \ifthenelse{\number\theiso@yeartwo<10}{0}{}\theiso@yeartwo +} +\newcommand*\iso@yearfour[1]{% + \ifthenelse{\number#1<1000}{0}{}% + \ifthenelse{\number#1<100}{0}{}% + \ifthenelse{\number#1<10}{0}{}% + \number#1% +}% +\newif\ifisotwodigitday +\def\iso@dateformat{numeric} +\DeclareRobustCommand*\dateinputformat[1]{% + \ifthenelse{% + \equal{#1}{english}\or + \equal{#1}{british}\or + \equal{#1}{UKenglish}}{% + \def\iso@inputformat{english}% + }{% + \ifthenelse{% + \equal{#1}{american}\or + \equal{#1}{USenglish}}{% + \def\iso@inputformat{american}% + }{% + \ifthenelse{% + \equal{#1}{tex}\or + \equal{#1}{TeX}\or + \equal{#1}{latex}\or + \equal{#1}{LaTeX}}{% + \def\iso@inputformat{tex}% + }{% + \PackageError{isodate}{Invalid date input format}{% + Maybe you misspelled the language option (english, american, + tex)?}% + }% + }% + }% +} +\dateinputformat{english} +\DeclareRobustCommand*\numdate[1][twodigitarabic]{% + \def\iso@dateformat{numeric}% + \isotwodigitdaytrue + \def\theiso@tmpmonth{\csname #1\endcsname{iso@tmpmonth}}% +} +\DeclareRobustCommand*\shortdate[1][twodigitarabic]{% + \def\iso@dateformat{short}% + \isotwodigitdaytrue + \def\theiso@tmpmonth{\csname #1\endcsname{iso@tmpmonth}}% +} +\DeclareRobustCommand*\isodate[1][twodigitarabic]{% + \def\iso@dateformat{iso}% + \isotwodigitdaytrue + \def\theiso@tmpmonth{\csname #1\endcsname{iso@tmpmonth}}% +} +\DeclareRobustCommand*\origdate{% + \def\iso@dateformat{orig}% + \isotwodigitdayfalse + \def\theiso@tmpmonth{\twodigitarabic{iso@tmpmonth}}% +} +\DeclareRobustCommand*\shortorigdate{% + \def\iso@dateformat{shortorig}% + \isotwodigitdayfalse + \def\theiso@tmpmonth{\twodigitarabic{iso@tmpmonth}}% +} +\DeclareRobustCommand*\TeXdate[1][twodigitarabic]{% + \def\iso@dateformat{TeX}% + \isotwodigitdaytrue + \def\theiso@tmpmonth{\csname #1\endcsname{iso@tmpmonth}}% +} +\DeclareRobustCommand*\Romandate{% + \numdate[Roman]% + \isotwodigitdayfalse +} +\DeclareRobustCommand*\romandate{% + \numdate[roman]% + \isotwodigitdayfalse +} +\DeclareRobustCommand*\shortRomandate{% + \shortdate[Roman]% + \isotwodigitdayfalse +} +\DeclareRobustCommand*\shortromandate{% + \shortdate[roman]% + \isotwodigitdayfalse +} +\def\iso@isodash{-}% +\DeclareRobustCommand*\isodash[1]{\def\iso@isodash{#1}}% +\def\iso@twodigitsign{} +\DeclareRobustCommand*\shortyearsign[1]{\def\iso@twodigitsign{#1}}% +\def\iso@rangesign{\csname iso@rangesign@\iso@languagename\endcsname}% +\DeclareRobustCommand*\isorangesign[1]{\def\iso@rangesign{#1}}% +\newif\ifiso@printyear +\DeclareRobustCommand*\printyearon{\iso@printyeartrue} +\DeclareRobustCommand*\printyearoff{\iso@printyearfalse} +\printyearon +\newcommand*\iso@printdate[3]{% + \begingroup% + \@ifundefined{iso@printdate@\iso@languagename}{% + \PackageWarning{isodate}{Language \iso@languagename\space unknown + to isodate.\MessageBreak + Using default format.}% + }{}% + \year=#1 % + \month=#2 % + \day=#3 % + \today% + \endgroup% +} +\DeclareRobustCommand*\printdate[1]{% + \edef\iso@date{#1}% + \SubStringsToCounter{iso@slash}{/}{\iso@date}% + \SubStringsToCounter{iso@minus}{-}{\iso@date}% + \SubStringsToCounter{iso@dot}{.}{\iso@date}% + \ifthenelse{\equal{\theiso@dot}{2}}{% + \expandafter\iso@input@german\iso@date\@empty}{% + \ifthenelse{\equal{\theiso@minus}{2}}{% + \expandafter\iso@input@iso\iso@date\@empty}{% + \ifthenelse{\equal{\theiso@slash}{2}}{% + \expandafter\iso@input@english\iso@date\@empty}{% + ????\iso@isodash ??\iso@isodash ??% + \PackageError{isodate}{unrecognized date format}{Use one of + the following formats as macro argument:^^J% + \space\space dd.mm.yyyy^^J% + \space\space dd/mm/yyyy^^J% + \space\space yyyy-mm-dd^^J% + Don't use any spaces or commands like \protect\, or + \protect~ inside the argument.}% + }}}% +} +\def\iso@input@iso#1-#2-#3\@empty{\iso@printdate{#1}{#2}{#3}} +\def\iso@input@german#1.#2.#3\@empty{\iso@printdate{#3}{#2}{#1}} +\def\iso@input@english#1/#2/#3\@empty{% + \ifthenelse{\equal{\iso@inputformat}{tex}}{% + \iso@printdate{#1}{#2}{#3}% + }{% + \ifthenelse{\equal{\iso@inputformat}{american}}{% + \iso@printdate{#3}{#1}{#2}% + }{% + \iso@printdate{#3}{#2}{#1}% + }% + }% +} +\DeclareRobustCommand*\printdateTeX[1]{% + \edef\iso@date{#1}% + \SubStringsToCounter{iso@slash}{/}{\iso@date}% + \ifthenelse{\equal{\theiso@slash}{2}}{% + \expandafter\iso@input@TeX\iso@date\@empty}{% + ????\iso@isodash ??\iso@isodash ??% + \PackageError{isodate}{unrecognized date format}{Use one of + the following formats as macro argument:^^J% + \space\space dd.mm.yyyy^^J% + \space\space dd/mm/yyyy^^J% + \space\space yyyy-mm-dd^^J% + Don't use any spaces or commands like \protect\, or + \protect~ inside the argument.}% + }} +\def\iso@input@TeX#1/#2/#3\@empty{\iso@printdate{#1}{#2}{#3}} +\DeclareRobustCommand*\daterange[2]{% + \edef\iso@date{#1}% + \edef\iso@@date{#2}% + \edef\iso@@@date{\iso@date,\iso@@date}% + \SubStringsToCounter{iso@slash}{/}{\iso@date}% + \SubStringsToCounter{iso@minus}{-}{\iso@date}% + \SubStringsToCounter{iso@dot}{.}{\iso@date}% + \SubStringsToCounter{iso@@slash}{/}{\iso@@date}% + \SubStringsToCounter{iso@@minus}{-}{\iso@@date}% + \SubStringsToCounter{iso@@dot}{.}{\iso@@date}% + \ifthenelse{\equal{\theiso@dot}{2}\and\equal{\theiso@@dot}{2}}{% + \expandafter\iso@range@input@german\iso@@@date\@empty}{% + \ifthenelse{\equal{\theiso@minus}{2}\and\equal{\theiso@@minus}{2}}{% + \expandafter\iso@range@input@iso\iso@@@date\@empty}{% + \ifthenelse{\equal{\theiso@slash}{2}\and% + \equal{\theiso@@slash}{2}}{% + \expandafter\iso@range@input@english\iso@@@date\@empty}{% + ????\iso@isodash ??\iso@isodash ??% + \PackageError{isodate}{unrecognized date format}{Use one of + the following formats as macro argument:^^J% + \space\space dd.mm.yyyy^^J% + \space\space dd/mm/yyyy^^J% + \space\space yyyy-mm-dd^^J% + Don't use any spaces or commands like \protect\, or + \protect~ inside the argument.^^J + Use the same format for both arguments.}% + }}}% +} +\def\iso@range@input@iso#1-#2-#3,#4-#5-#6\@empty{% + \begingroup + \@ifundefined{iso@daterange@\iso@languagename}{% + \PackageWarning{isodate}{Language \iso@languagename\space unknown + to isodate.\MessageBreak + Using default date range with range sign --.}% + \expandafter\def\csname iso@printdate@\iso@languagename\endcsname{}% + \iso@printdate{#1}{#2}{#3}--\iso@printdate{#4}{#5}{#6}% + }{% + \ifthenelse{\equal{\number#1}{\number#4}}{}{\printyearon}% + \csname iso@daterange@\iso@languagename\endcsname{% + #1}{#2}{#3}{#4}{#5}{#6}% + }% + \endgroup +} +\def\iso@range@input@german#1.#2.#3,#4.#5.#6\@empty{% + \begingroup + \@ifundefined{iso@daterange@\iso@languagename}{% + \PackageWarning{isodate}{Language \iso@languagename\space unknown + to isodate.\MessageBreak + Using default date range with range sign --.}% + \expandafter\def\csname iso@printdate@\iso@languagename\endcsname{}% + \iso@printdate{#3}{#2}{#1}--\iso@printdate{#6}{#5}{#4}% + }{% + \ifthenelse{\equal{\number#3}{\number#6}}{}{\printyearon}% + \csname iso@daterange@\iso@languagename\endcsname{% + #3}{#2}{#1}{#6}{#5}{#4}% + }% + \endgroup +} +\def\iso@range@input@english#1/#2/#3,#4/#5/#6\@empty{% + \begingroup + \@ifundefined{iso@daterange@\iso@languagename}{% + \PackageWarning{isodate}{Language \iso@languagename\space unknown + to isodate.\MessageBreak + Using default date range with range sign --.}% + \expandafter\def\csname iso@printdate@\iso@languagename\endcsname{}% + \ifthenelse{\equal{\iso@inputformat}{tex}}{% + \iso@printdate{#1}{#2}{#3}--\iso@printdate{#4}{#5}{#6}% + }{% + \ifthenelse{\equal{\iso@inputformat}{american}}{% + \iso@printdate{#3}{#1}{#2}--\iso@printdate{#6}{#4}{#5}% + }{% + \iso@printdate{#3}{#2}{#1}--\iso@printdate{#6}{#5}{#4}% + }% + }% + }{% + \ifthenelse{\equal{\number#3}{\number#6}}{}{\printyearon}% + \ifthenelse{\equal{\iso@inputformat}{tex}}{% + \csname iso@daterange@\iso@languagename\endcsname{% + #1}{#2}{#3}{#4}{#5}{#6}% + }{% + \ifthenelse{\equal{\iso@inputformat}{american}}{% + \csname iso@daterange@\iso@languagename\endcsname{% + #3}{#1}{#2}{#6}{#4}{#5}% + }{% + \csname iso@daterange@\iso@languagename\endcsname{% + #3}{#2}{#1}{#6}{#5}{#4}% + }% + }% + }% + \endgroup +} +\newcounter{iso@slash} +\newcounter{iso@minus} +\newcounter{iso@dot} +\newcounter{iso@@slash} +\newcounter{iso@@minus} +\newcounter{iso@@dot} +\AtBeginDocument{% + \@tempswafalse + \@ifpackageloaded{babel}{% + \@tempswatrue + \typeout{isodate: babel.sty has been loaded}% + }{}% + \@ifpackageloaded{german}{% + \@tempswatrue + \typeout{isodate: german.sty has been loaded}% + }{}% + \@ifpackageloaded{ngerman}{% + \@tempswatrue + \typeout{isodate: ngerman.sty has been loaded}% + }{}% + \if@tempswa + \gdef\iso@languagename{\languagename}% + \edef\iso@tmplang{\languagename}% + \expandafter\selectlanguage\expandafter{\iso@tmplang}% + \else + \typeout{isodate: babel.sty, (n)german.sty have not been loaded}% + \csname date\iso@languagename\endcsname% + \fi +} +\endinput +%% +%% End of file `isodate.sty'. diff --git a/Master/texmf-dist/tex/latex/isodate/isodateo.sty b/Master/texmf-dist/tex/latex/isodate/isodateo.sty new file mode 100644 index 00000000000..cc9b9439608 --- /dev/null +++ b/Master/texmf-dist/tex/latex/isodate/isodateo.sty @@ -0,0 +1,151 @@ +%% +%% This is file `isodateo.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% isodateo.dtx (with options: `package') +%% +%% isodate package +%% +%% Copyright 2000--2005 Harald Harders +%% +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN +%% archives in directory macros/latex/base/lppl.txt; either +%% version 1 of the License, or any later version. +%% +%% h.harders@tu-bs.de +%% +\def\packagename{isodateo} +\def\fileversion{1.06a} +\def\filedate{2004/02/12} +\def\docdate{2000/08/08} +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{isodateo}[\filedate] +\RequirePackage{ifthen} +\RequirePackage{calc} +\IfFileExists{substr.sty}{\RequirePackage{substr}% + }{\PackageError{isodateo.sty}{Package file substr.sty not found} + {This version of isodateo.sty needs the package substr.sty.^^J% + You can download it from CTAN:/macros/latex/contrib/substr/^^J% + E.g. one CTAN node is ftp.dante.de. + Install substr.sty into your TeX tree.}} +\AtBeginDocument{% + \@ifpackageloaded{babel}{}{% + \@ifpackageloaded{german}{}{% + \@ifpackageloaded{ngerman}{}{% + \let\dateamerican\today% + \setboolean{isodate@american}{true}% + \def\iflanguage#1#2#3{\ifthenelse{% + \equal{#1}{english}\or% + \equal{#1}{american}\or% + \equal{#1}{USenglish}% + }{#2}{#3}}% + }}}} +\newboolean{isodate@american}% +\DeclareOption{iso}{\AtBeginDocument{\isodate}} +\DeclareOption{num}{\AtBeginDocument{\numdate}} +\DeclareOption{short}{\AtBeginDocument{\shortdate}} +\DeclareOption{TeX}{\AtBeginDocument{\TeXdate}} +\DeclareOption{orig}{\AtBeginDocument{\origdate}} +\ExecuteOptions{orig} +\ProcessOptions +\def\dday{\ifthenelse{\number\day<10}{0}{}\number\day} +\def\dmonth{\ifthenelse{\number\month<10}{0}{}\number\month} +\DeclareRobustCommand*{\num@today}[1]{% + \iflanguage{german}{\dday.\,\dmonth.#1}{% + \iflanguage{austrian}{\dday.\,\dmonth.#1}{% + \iflanguage{ngerman}{\dday.\,\dmonth.#1}{% + \iflanguage{naustrian}{\dday.\,\dmonth.#1}{% + \iflanguage{english}{% + \ifthenelse{\boolean{isodate@american}}{% + \dmonth/\dday/}{\dday/\dmonth/}}{% + \dday/\dmonth/}}}}}% +} +\DeclareRobustCommand*{\numdate}{% + \origdate% + \setboolean{isodate@american}{false}% + \iflanguage{american}{\IfCharInString{,}{\today}{% + \setboolean{isodate@american}{true}}{}}{}% + \gdef\today{% + \num@today{~}% + \number\year}} +\newcounter{yeartwo} +\DeclareRobustCommand*{\shortdate}{% + \origdate% + \setboolean{isodate@american}{false}% + \iflanguage{american}{\IfCharInString{,}{\today}{% + \setboolean{isodate@american}{true}}{}}{}% + \gdef\today{% + \num@today{\,}% + \setcounter{yeartwo}{\number\year}% + \whiledo{\theyeartwo>99}{\setcounter{yeartwo}{\theyeartwo-100}}{}% + \ifthenelse{\number\theyeartwo<10}{0}{}\theyeartwo}} +\DeclareRobustCommand*{\isodate}{% + \gdef\today{% + \number\year\iso@isodash% + \ifthenelse{\number\month<10}{0}{}\number\month\iso@isodash% + \ifthenelse{\number\day<10}{0}{}\number\day}} +\def\iso@isodash{-}% +\DeclareRobustCommand*{\isodash}[1]{\def\iso@isodash{#1}}% +\DeclareRobustCommand*{\origdate}{\csname date\languagename\endcsname} +\DeclareRobustCommand*{\TeXdate}{% + \gdef\today{% + \number\year/% + \ifthenelse{\number\month<10}{0}{}\number\month/% + \ifthenelse{\number\day<10}{0}{}\number\day}} +\DeclareRobustCommand*{\iso@printdate}[3]{% + \begingroup% + \def\year{#1}% + \def\month{#2}% + \def\day{#3}% + \today% + \endgroup% +} +\newcounter{iso@slash} +\newcounter{iso@minus} +\newcounter{iso@dot} +\DeclareRobustCommand*{\printdate}[1]{% + \expandafter\iso@expafterprintdate\expandafter{#1}}% +\DeclareRobustCommand*{\iso@expafterprintdate}[1]{% + \SubStringsToCounter{iso@slash}{/}{#1}% + \SubStringsToCounter{iso@minus}{-}{#1}% + \SubStringsToCounter{iso@dot}{.}{#1}% + \ifthenelse{\equal{\theiso@dot}{2}}{\printdatenumger{#1}}{% + \ifthenelse{\equal{\theiso@minus}{2}}{\printdateiso{#1}}{% + \ifthenelse{\equal{\theiso@slash}{2}}{\printdatenumeng{#1}}{% + ????\iso@isodash ??\iso@isodash ??% + \PackageError{isodateo}{unrecognized date format}{Use one of + the following formats as macro argument:^^J% + \space\space dd.mm.yyyy^^J% + \space\space dd/mm/yyyy^^J% + \space\space yyyy-mm-dd^^J% + Don't use any spaces or commands like \protect\, or + \protect~ inside the argument.}% + }}}} +\DeclareRobustCommand*{\printdateiso}[1]{% + \expandafter\iso@printdateiso #1\@empty} +\def\iso@printdateiso#1-#2-#3\@empty{\iso@printdate{#1}{#2}{#3}} +\DeclareRobustCommand*{\printdatenumger}[1]{% + \expandafter\iso@printdatenumger #1\@empty} +\def\iso@printdatenumger#1.#2.#3\@empty{\iso@printdate{#3}{#2}{#1}} +\DeclareRobustCommand*{\printdatenumeng}[1]{% + \expandafter\iso@printdatenumeng #1\@empty} +\def\iso@printdatenumeng#1/#2/#3\@empty{\iso@printdate{#3}{#2}{#1}} +\DeclareRobustCommand*{\printdateTeX}[1]{% + \expandafter\iso@printdateTeX\expandafter{#1}} +\DeclareRobustCommand*{\iso@printdateTeX}[1]{% + \SubStringsToCounter{iso@slash}{/}{#1}% + \ifthenelse{\equal{\theiso@slash}{2}}% + {\expandafter\iso@@printdateTeX #1\@empty}{% + ????\iso@isodash ??\iso@isodash ??% + \PackageError{isodateo}{unrecognized date format}{Use the format + yyyy/mm/dd.^^J% + Don't use any spaces or commands like \protect\, or + \protect~ inside the argument.}}% +} +\def\iso@@printdateTeX#1/#2/#3\@empty{\iso@printdate{#1}{#2}{#3}} +\endinput +%% +%% End of file `isodateo.sty'. diff --git a/Master/texmf-dist/tex/latex/isodate/norsk.idf b/Master/texmf-dist/tex/latex/isodate/norsk.idf new file mode 100644 index 00000000000..53d95d50198 --- /dev/null +++ b/Master/texmf-dist/tex/latex/isodate/norsk.idf @@ -0,0 +1,93 @@ +%% +%% This is file `norsk.idf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% isodate.dtx (with options: `language,norsk') +%% +%% isodate package +%% +%% Copyright 2000--2005 Harald Harders +%% +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN +%% archives in directory macros/latex/base/lppl.txt; either +%% version 1 of the License, or any later version. +%% +%% h.harders@tu-bs.de +%% +\ProvidesFile{norsk.idf} + [2005/03/11 v2.27 Language definitions for isodate package (HH)] +\let\iso@languageloaded\active +\typeout{Define commands for Norwegian date format} +\def\month@norsk{\ifcase\month\or + januar\or februar\or mars\or april\or mai\or juni\or + juli\or august\or september\or oktober\or november\or desember\fi} + \def\iso@printmonthday@norsk#1#2{% + \ifthenelse{\equal{\iso@dateformat}{numeric}\or% + \equal{\iso@dateformat}{short}}{% + \iso@printday{#2}/\iso@printmonth{#1}\ifiso@printyear/\fi}{% + \ifthenelse{\equal{\iso@dateformat}{iso}}{% + \ifiso@printyear\iso@isodash\fi + \iso@printmonth{#1}\iso@isodash\iso@printday{#2}}{% + \ifthenelse{\equal{\iso@dateformat}{TeX}}{% + \ifiso@printyear/\fi\iso@printmonth{#1}/\iso@printday{#2}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}\or + \equal{\iso@dateformat}{shortorig}}{% + \iso@printday{#2}.~\begingroup + \edef\lmonth{#1}\def\month{\lmonth}% + \month@norsk% + \endgroup + }{}}}}% + } + \def\iso@printdate@norsk#1#2#3{% + \ifthenelse{\equal{\iso@dateformat}{iso}\or% + \equal{\iso@dateformat}{TeX}}{% + \ifiso@printyear\iso@yearfour{\number#1}\fi}{}% + \iso@printmonthday@norsk{\number#2}{\number#3}% + \ifiso@printyear + \ifthenelse{\equal{\iso@dateformat}{numeric}}{\iso@yearfour{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}}{~\iso@yearfour{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{shortorig}}{% + ~\iso@twodigitsign\iso@yeartwo{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{short}}{% + \iso@yeartwo{\number#1}}{% + }}}}% + \fi + } + \def\iso@datenorsk{% + \def\today{\iso@printdate@norsk{\year}{\month}{\day}}}% + \expandafter\def\csname iso@daterange@\CurrentOption\endcsname{% + \iso@daterange@norsk}% +\def\iso@daterange@norsk#1#2#3#4#5#6{% + \ifthenelse{\equal{\iso@dateformat}{iso}\or% + \equal{\iso@dateformat}{TeX}}{% + \csname iso@printdate@\iso@languagename\endcsname{#1}{#2}{#3}% + \iso@rangesign% + \ifthenelse{\equal{\number#1}{\number#4}}{% + \ifthenelse{\equal{\number#2}{\number#5}}{\iso@printday{#6}% + }{\iso@printmonthday@norsk{#5}{#6}}}{% + \csname iso@printdate@\iso@languagename\endcsname{#4}{#5}{#6}}}{% + \ifthenelse{\equal{\number#1}{\number#4}}{% + \ifthenelse{\equal{\number#2}{\number#5}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}\or + \equal{\iso@dateformat}{shortorig}}{% + \iso@printday{#3}.}{\iso@printday{#3}}% + }{\iso@printmonthday@norsk{#2}{#3}}}{% + \csname iso@printdate@\iso@languagename\endcsname{#1}{#2}{#3}}% + \iso@rangesign\csname iso@printdate@\iso@languagename\endcsname{% + #4}{#5}{#6}% + }{% + }% +} +\expandafter\def\csname iso@rangesign@\CurrentOption\endcsname{~til~} +\def\iso@languagename{norsk}% +\AtBeginDocument{% + \ifx\undefined\iso@datenorsk\else + \def\datenorsk{\iso@datenorsk}% + \fi +} +\endinput +%% +%% End of file `norsk.idf'. diff --git a/Master/texmf-dist/tex/latex/isodate/swedish.idf b/Master/texmf-dist/tex/latex/isodate/swedish.idf new file mode 100644 index 00000000000..631465c031c --- /dev/null +++ b/Master/texmf-dist/tex/latex/isodate/swedish.idf @@ -0,0 +1,94 @@ +%% +%% This is file `swedish.idf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% isodate.dtx (with options: `language,swedish') +%% +%% isodate package +%% +%% Copyright 2000--2005 Harald Harders +%% +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN +%% archives in directory macros/latex/base/lppl.txt; either +%% version 1 of the License, or any later version. +%% +%% h.harders@tu-bs.de +%% +\ProvidesFile{swedish.idf} + [2005/03/11 v2.27 Language definitions for isodate package (HH)] +\let\iso@languageloaded\active +\typeout{Define commands for Swedish date format} +\def\month@swedish{\ifcase\month\or + januari\or februari\or mars\or april\or maj\or juni\or + juli\or augusti\or september\or oktober\or november\or december\fi} + \def\iso@printmonthday@swedish#1#2{% + \ifthenelse{\equal{\iso@dateformat}{numeric}\or% + \equal{\iso@dateformat}{short}}{% + \iso@printday{#2}/\iso@printmonth{#1}\ifiso@printyear/\fi}{% + \ifthenelse{\equal{\iso@dateformat}{iso}}{% + \ifiso@printyear\iso@isodash\fi\iso@printmonth{#1}% + \iso@isodash\iso@printday{#2}}{% + \ifthenelse{\equal{\iso@dateformat}{TeX}}{% + \ifiso@printyear/\fi\iso@printmonth{#1}/\iso@printday{#2}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}\or + \equal{\iso@dateformat}{shortorig}}{% + \iso@printday{#2}.~\begingroup + \edef\lmonth{#1}\def\month{\lmonth}% + \month@swedish% + \endgroup + }{}}}}% + } + \def\iso@printdate@swedish#1#2#3{% + \ifthenelse{\equal{\iso@dateformat}{iso}\or% + \equal{\iso@dateformat}{TeX}}{% + \ifiso@printyear\iso@yearfour{\number#1}\fi}{}% + \iso@printmonthday@swedish{\number#2}{\number#3}% + \ifiso@printyear + \ifthenelse{\equal{\iso@dateformat}{numeric}}{\iso@yearfour{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}}{~\iso@yearfour{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{shortorig}}{% + ~\iso@twodigitsign\iso@yeartwo{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{short}}{% + \iso@yeartwo{\number#1}}{% + }}}}% + \fi + } + \def\iso@dateswedish{% + \def\today{\iso@printdate@swedish{\year}{\month}{\day}}}% + \expandafter\def\csname iso@daterange@\CurrentOption\endcsname{% + \iso@daterange@swedish}% +\def\iso@daterange@swedish#1#2#3#4#5#6{% + \ifthenelse{\equal{\iso@dateformat}{iso}\or% + \equal{\iso@dateformat}{TeX}}{% + \csname iso@printdate@\iso@languagename\endcsname{% + #1}{#2}{#3}\iso@rangesign% + \ifthenelse{\equal{\number#1}{\number#4}}{% + \ifthenelse{\equal{\number#2}{\number#5}}{\iso@printday{#6}% + }{\iso@printmonthday@swedish{#5}{#6}}}{% + \csname iso@printdate@\iso@languagename\endcsname{#4}{#5}{#6}}}{% + \ifthenelse{\equal{\number#1}{\number#4}}{% + \ifthenelse{\equal{\number#2}{\number#5}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}\or + \equal{\iso@dateformat}{shortorig}}{% + \iso@printday{#3}.}{\iso@printday{#3}}% + }{\iso@printmonthday@swedish{#2}{#3}}}{% + \csname iso@printdate@\iso@languagename\endcsname{% + #1}{#2}{#3}}% + \iso@rangesign\csname iso@printdate@\iso@languagename\endcsname{% + #4}{#5}{#6}% +}{% + }% +} +\expandafter\def\csname iso@rangesign@\CurrentOption\endcsname{~till~} +\def\iso@languagename{swedish}% +\AtBeginDocument{% + \ifx\undefined\iso@dateswedish\else + \def\dateswedish{\iso@dateswedish}% + \fi +} +\endinput +%% +%% End of file `swedish.idf'. |