summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/isodate/isodate.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/isodate/isodate.sty')
-rw-r--r--Master/texmf-dist/tex/latex/isodate/isodate.sty22
1 files changed, 16 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/isodate/isodate.sty b/Master/texmf-dist/tex/latex/isodate/isodate.sty
index 958d0628046..8d631358199 100644
--- a/Master/texmf-dist/tex/latex/isodate/isodate.sty
+++ b/Master/texmf-dist/tex/latex/isodate/isodate.sty
@@ -19,7 +19,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{isodate}
- [2005/03/11 v2.27 Print dates with different formats (HH)]
+ [2005/04/15 v2.28 Print dates with different formats (HH)]
\RequirePackage{ifthen}
\IfFileExists{substr.sty}{\RequirePackage{substr}%
}{\PackageError{isodate.sty}{Package file substr.sty not found}
@@ -38,6 +38,8 @@
\DeclareOption{roman}{\AtEndOfPackage{\romandate}}
\DeclareOption{shortRoman}{\AtEndOfPackage{\shortRomandate}}
\DeclareOption{shortroman}{\AtEndOfPackage{\shortromandate}}
+\DeclareOption{cleanlook}{\AtEndOfPackage{\cleanlookdateon}}
+\DeclareOption{nocleanlook}{\AtEndOfPackage{\cleanlookdateoff}}
\DeclareOption{inputenglish}{\AtEndOfPackage{\dateinputformat{english}}}
\DeclareOption{inputbritish}{\AtEndOfPackage{\dateinputformat{english}}}
\DeclareOption{inputUKenglish}{\AtEndOfPackage{\dateinputformat{english}}}
@@ -56,6 +58,7 @@
\DeclareOption{french}{\input{french.idf}}
\DeclareOption{frenchb}{\input{french.idf}}
\DeclareOption{german}{\input{german.idf}}
+\DeclareOption{italian}{\input{italian.idf}}
\DeclareOption{naustrian}{\input{german.idf}}
\DeclareOption{newzealand}{\input{english.idf}}
\DeclareOption{ngerman}{\input{german.idf}}
@@ -70,7 +73,7 @@
Isodate definition file \CurrentOption.idf not found}{%
Maybe you misspelled the language option?}}%
}
-\ExecuteOptions{orig}
+\ExecuteOptions{orig,nocleanlook}
\ProcessOptions*
\ifx\iso@languageloaded\@undefined
\PackageError{isodate}{%
@@ -197,12 +200,16 @@
\DeclareRobustCommand*\printyearon{\iso@printyeartrue}
\DeclareRobustCommand*\printyearoff{\iso@printyearfalse}
\printyearon
+\newif\ifiso@cleanlook
+\DeclareRobustCommand*\cleanlookdateon{\iso@cleanlooktrue}
+\DeclareRobustCommand*\cleanlookdateoff{\iso@cleanlookfalse}
+\cleanlookdateoff
\newcommand*\iso@printdate[3]{%
\begingroup%
\@ifundefined{iso@printdate@\iso@languagename}{%
\PackageWarning{isodate}{Language \iso@languagename\space unknown
to isodate.\MessageBreak
- Using default format.}%
+ Using default format}%
}{}%
\year=#1 %
\month=#2 %
@@ -292,7 +299,8 @@
\@ifundefined{iso@daterange@\iso@languagename}{%
\PackageWarning{isodate}{Language \iso@languagename\space unknown
to isodate.\MessageBreak
- Using default date range with range sign --.}%
+ Using default date range\MessageBreak
+ with range sign --}%
\expandafter\def\csname iso@printdate@\iso@languagename\endcsname{}%
\iso@printdate{#1}{#2}{#3}--\iso@printdate{#4}{#5}{#6}%
}{%
@@ -307,7 +315,8 @@
\@ifundefined{iso@daterange@\iso@languagename}{%
\PackageWarning{isodate}{Language \iso@languagename\space unknown
to isodate.\MessageBreak
- Using default date range with range sign --.}%
+ Using default date range\MessageBreak
+ with range sign --}%
\expandafter\def\csname iso@printdate@\iso@languagename\endcsname{}%
\iso@printdate{#3}{#2}{#1}--\iso@printdate{#6}{#5}{#4}%
}{%
@@ -322,7 +331,8 @@
\@ifundefined{iso@daterange@\iso@languagename}{%
\PackageWarning{isodate}{Language \iso@languagename\space unknown
to isodate.\MessageBreak
- Using default date range with range sign --.}%
+ Using default date range\MessageBreak
+ 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}%