diff options
author | Karl Berry <karl@freefriends.org> | 2010-09-22 00:09:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-09-22 00:09:38 +0000 |
commit | 03799d65499299079bb659eb8897228076096ce6 (patch) | |
tree | cb5273aa1411ce8f79c190e7c66ab5f526c4e071 /Master/texmf-dist/tex/latex/datetime/datetime.sty | |
parent | 57b42dc59a849d094c9acfa2c24623e10b922783 (diff) |
datetime 2.58 (21sep10)
git-svn-id: svn://tug.org/texlive/trunk@19834 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/datetime/datetime.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/datetime/datetime.sty | 200 |
1 files changed, 106 insertions, 94 deletions
diff --git a/Master/texmf-dist/tex/latex/datetime/datetime.sty b/Master/texmf-dist/tex/latex/datetime/datetime.sty index 632191d2b39..50d22cb9c77 100644 --- a/Master/texmf-dist/tex/latex/datetime/datetime.sty +++ b/Master/texmf-dist/tex/latex/datetime/datetime.sty @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \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 @@ -39,7 +39,7 @@ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{datetime}[2010/02/06 v2.57 Date Time Package] +\ProvidesPackage{datetime}[2010/09/21 v2.58 Date Time Package] \RequirePackage{fmtcount} \RequirePackage{ifthen} \newif\if@dt@nodate @@ -460,52 +460,64 @@ settings}} \renewcommand*{\dateseparator}{-}% \renewcommand*{\timeseparator}{:}% } -\DeclareOption{austrian}{\input{dt-austrian.def}} -\DeclareOption{american}{\input{dt-american.def}} -\DeclareOption{bahasa}{\input{dt-bahasa.def}} -\DeclareOption{basque}{\input{dt-basque.def}} -\DeclareOption{breton}{\input{dt-breton.def}} -\DeclareOption{british}{\input{dt-british.def}} -\DeclareOption{bulgarian}{\input{dt-bulgarian.def}} -\DeclareOption{catalan}{\input{dt-catalan.def}} -\DeclareOption{croatian}{\input{dt-croatian.def}} -\DeclareOption{czech}{\input{dt-czech.def}} -\DeclareOption{danish}{\input{dt-danish.def}} -\DeclareOption{dutch}{\input{dt-dutch.def}} -\DeclareOption{esperanto}{\input{dt-esperanto.def}} -\DeclareOption{estonian}{\input{dt-estonian.def}} -\DeclareOption{finnish}{\input{dt-finnish.def}} -\DeclareOption{french}{\input{dt-french.def}} -\DeclareOption{galician}{\input{dt-galician.def}} -\DeclareOption{german}{\input{dt-german.def}\dategerman} -\DeclareOption{greek}{\input{dt-greek.def}} -\DeclareOption{hebrew}{\input{dt-hebrew.def}} -\DeclareOption{icelandic}{\input{dt-icelandic.def}} -\DeclareOption{irish}{\input{dt-irish.def}} -\DeclareOption{italian}{\input{dt-italian.def}} -\DeclareOption{latin}{\input{dt-latin.def}} -\DeclareOption{lsorbian}{\input{dt-lsorbian.def}} -\DeclareOption{magyar}{\input{dt-magyar.def}} -\DeclareOption{naustrian}{\input{dt-naustrian.def}} -\DeclareOption{ngerman}{\input{dt-ngerman.def}\datengerman} -\DeclareOption{norsk}{\input{dt-norsk.def}} -\DeclareOption{polish}{\input{dt-polish.def}} -\DeclareOption{portuges}{\input{dt-portuges.def}} -\DeclareOption{romanian}{\input{dt-romanian.def}} -\DeclareOption{russian}{\input{dt-russian.def}} -\DeclareOption{samin}{\input{dt-samin.def}} -\DeclareOption{scottish}{\input{dt-scottish.def}} -\DeclareOption{serbian}{\input{dt-serbian.def}} -\DeclareOption{slovak}{\input{dt-slovak.def}} -\DeclareOption{slovene}{\input{dt-slovene.def}} -\DeclareOption{spanish}{\input{dt-spanish.def}} -\DeclareOption{swedish}{\input{dt-swedish.def}} -\DeclareOption{turkish}{\input{dt-turkish.def}} -\DeclareOption{ukraineb}{\input{dt-ukraineb.def}} -\DeclareOption{usorbian}{\input{dt-usorbian.def}} -\DeclareOption{UKenglish}{\input{dt-UKenglish.def}} -\DeclareOption{USenglish}{\input{dt-USenglish.def}} -\DeclareOption{welsh}{\input{dt-welsh.def}} +\newcommand*{\loadDTdef}[1]{% + \@ifundefined{ver@dt-#1.def}% + {% + \InputIfFileExists{dt-#1.def}% + {}% + {% + \PackageWarning{datetime}{Can't find datetime language + definition file for `#1'}% + }% + }% + {}% +} +\DeclareOption{austrian}{\loadDTdef{austrian}} +\DeclareOption{american}{\loadDTdef{american}} +\DeclareOption{bahasa}{\loadDTdef{bahasa}} +\DeclareOption{basque}{\loadDTdef{basque}} +\DeclareOption{breton}{\loadDTdef{breton}} +\DeclareOption{british}{\loadDTdef{british}} +\DeclareOption{bulgarian}{\loadDTdef{bulgarian}} +\DeclareOption{catalan}{\loadDTdef{catalan}} +\DeclareOption{croatian}{\loadDTdef{croatian}} +\DeclareOption{czech}{\loadDTdef{czech}} +\DeclareOption{danish}{\loadDTdef{danish}} +\DeclareOption{dutch}{\loadDTdef{dutch}} +\DeclareOption{esperanto}{\loadDTdef{esperanto}} +\DeclareOption{estonian}{\loadDTdef{estonian}} +\DeclareOption{finnish}{\loadDTdef{finnish}} +\DeclareOption{french}{\loadDTdef{french}} +\DeclareOption{galician}{\loadDTdef{galician}} +\DeclareOption{german}{\loadDTdef{german}\dategerman} +\DeclareOption{greek}{\loadDTdef{greek}} +\DeclareOption{hebrew}{\loadDTdef{hebrew}} +\DeclareOption{icelandic}{\loadDTdef{icelandic}} +\DeclareOption{irish}{\loadDTdef{irish}} +\DeclareOption{italian}{\loadDTdef{italian}} +\DeclareOption{latin}{\loadDTdef{latin}} +\DeclareOption{lsorbian}{\loadDTdef{lsorbian}} +\DeclareOption{magyar}{\loadDTdef{magyar}} +\DeclareOption{naustrian}{\loadDTdef{naustrian}} +\DeclareOption{ngerman}{\loadDTdef{ngerman}\datengerman} +\DeclareOption{norsk}{\loadDTdef{norsk}} +\DeclareOption{polish}{\loadDTdef{polish}} +\DeclareOption{portuges}{\loadDTdef{portuges}} +\DeclareOption{romanian}{\loadDTdef{romanian}} +\DeclareOption{russian}{\loadDTdef{russian}} +\DeclareOption{samin}{\loadDTdef{samin}} +\DeclareOption{scottish}{\loadDTdef{scottish}} +\DeclareOption{serbian}{\loadDTdef{serbian}} +\DeclareOption{slovak}{\loadDTdef{slovak}} +\DeclareOption{slovene}{\loadDTdef{slovene}} +\DeclareOption{spanish}{\loadDTdef{spanish}} +\DeclareOption{swedish}{\loadDTdef{swedish}} +\DeclareOption{turkish}{\loadDTdef{turkish}} +\DeclareOption{ukraineb}{\loadDTdef{ukraineb}} +\DeclareOption{usorbian}{\loadDTdef{usorbian}} +\DeclareOption{UKenglish}{\loadDTdef{UKenglish}} +\DeclareOption{USenglish}{\loadDTdef{USenglish}} +\DeclareOption{welsh}{\loadDTdef{welsh}} \ProcessOptions \if@dt@nodate \PackageInfo{datetime}{option "nodate" used, so note defining @@ -714,52 +726,52 @@ language '\languagename', defaulting to long version}}% \if@dt@nodate \else \@ifundefined{dateenglish}{}{\let\dateenglish\longdate} -\@ifundefined{dateUKenglish}{}{\input{dt-UKenglish.def}} -\@ifundefined{dateUSenglish}{}{\input{dt-USenglish.def}} -\@ifundefined{datebritish}{}{\input{dt-british.def}} -\@ifundefined{dateamerican}{}{\input{dt-american.def}} -\@ifundefined{dateaustrian}{}{\input{dt-austrian.def}} -\@ifundefined{datebahasa}{}{\input{dt-bahasa.def}} -\@ifundefined{datebasque}{}{\input{dt-basque.def}} -\@ifundefined{datebreton}{}{\input{dt-breton.def}} -\@ifundefined{datebulgarian}{}{\input{dt-bulgarian.def}} -\@ifundefined{datecatalan}{}{\input{dt-catalan.def}} -\@ifundefined{datecroatian}{}{\input{dt-croatian.def}} -\@ifundefined{dateczech}{}{\input{dt-czech.def}} -\@ifundefined{datedanish}{}{\input{dt-danish.def}} -\@ifundefined{datedutch}{}{\input{dt-dutch.def}} -\@ifundefined{dateesperanto}{}{\input{dt-esperanto.def}} -\@ifundefined{dateestonian}{}{\input{dt-estonian.def}} -\@ifundefined{datefinnish}{}{\input{dt-finnish.def}} -\@ifundefined{datefrench}{}{\input{dt-french.def}} -\@ifundefined{dategalician}{}{\input{dt-galician.def}} -\@ifundefined{dategerman}{}{\input{dt-german.def}} -\@ifundefined{dategreek}{}{\input{dt-greek.def}} -\@ifundefined{datehebrew}{}{\input{dt-hebrew.def}} -\@ifundefined{dateicelandic}{}{\input{dt-icelandic.def}} -\@ifundefined{dateirish}{}{\input{dt-irish.def}} -\@ifundefined{dateitalian}{}{\input{dt-italian.def}} -\@ifundefined{datelatin}{}{\input{dt-latin.def}} -\@ifundefined{datelsorbian}{}{\input{dt-lsorbian.def}} -\@ifundefined{datemagyar}{}{\input{dt-magyar.def}} -\@ifundefined{datenaustrian}{}{\input{dt-naustrian.def}} -\@ifundefined{datengerman}{}{\input{dt-ngerman.def}} -\@ifundefined{datenorsk}{}{\input{dt-norsk.def}} -\@ifundefined{datepolish}{}{\input{dt-polish.def}} -\@ifundefined{dateportuges}{}{\input{dt-portuges.def}} -\@ifundefined{dateromanian}{}{\input{dt-romanian.def}} -\@ifundefined{daterussian}{}{\input{dt-russian.def}} -\@ifundefined{datesamin}{}{\input{dt-samin.def}} -\@ifundefined{datescottish}{}{\input{dt-scottish.def}} -\@ifundefined{dateserbian}{}{\input{dt-serbian.def}} -\@ifundefined{dateslovak}{}{\input{dt-slovak.def}} -\@ifundefined{dateslovene}{}{\input{dt-slovene.def}} -\@ifundefined{datespanish}{}{\input{dt-spanish.def}} -\@ifundefined{dateswedish}{}{\input{dt-swedish.def}} -\@ifundefined{dateturkish}{}{\input{dt-turkish.def}} -\@ifundefined{dateukraineb}{}{\input{dt-ukraineb.def}} -\@ifundefined{dateusorbian}{}{\input{dt-usorbian.def}} -\@ifundefined{datewelsh}{}{\input{dt-welsh.def}} +\@ifundefined{dateUKenglish}{}{\loadDTdef{UKenglish}} +\@ifundefined{dateUSenglish}{}{\loadDTdef{USenglish}} +\@ifundefined{datebritish}{}{\loadDTdef{british}} +\@ifundefined{dateamerican}{}{\loadDTdef{american}} +\@ifundefined{dateaustrian}{}{\loadDTdef{austrian}} +\@ifundefined{datebahasa}{}{\loadDTdef{bahasa}} +\@ifundefined{datebasque}{}{\loadDTdef{basque}} +\@ifundefined{datebreton}{}{\loadDTdef{breton}} +\@ifundefined{datebulgarian}{}{\loadDTdef{bulgarian}} +\@ifundefined{datecatalan}{}{\loadDTdef{catalan}} +\@ifundefined{datecroatian}{}{\loadDTdef{croatian}} +\@ifundefined{dateczech}{}{\loadDTdef{czech}} +\@ifundefined{datedanish}{}{\loadDTdef{danish}} +\@ifundefined{datedutch}{}{\loadDTdef{dutch}} +\@ifundefined{dateesperanto}{}{\loadDTdef{esperanto}} +\@ifundefined{dateestonian}{}{\loadDTdef{estonian}} +\@ifundefined{datefinnish}{}{\loadDTdef{finnish}} +\@ifundefined{datefrench}{}{\loadDTdef{french}} +\@ifundefined{dategalician}{}{\loadDTdef{galician}} +\@ifundefined{dategerman}{}{\loadDTdef{german}} +\@ifundefined{dategreek}{}{\loadDTdef{greek}} +\@ifundefined{datehebrew}{}{\loadDTdef{hebrew}} +\@ifundefined{dateicelandic}{}{\loadDTdef{icelandic}} +\@ifundefined{dateirish}{}{\loadDTdef{irish}} +\@ifundefined{dateitalian}{}{\loadDTdef{italian}} +\@ifundefined{datelatin}{}{\loadDTdef{latin}} +\@ifundefined{datelsorbian}{}{\loadDTdef{lsorbian}} +\@ifundefined{datemagyar}{}{\loadDTdef{magyar}} +\@ifundefined{datenaustrian}{}{\loadDTdef{naustrian}} +\@ifundefined{datengerman}{}{\loadDTdef{ngerman}} +\@ifundefined{datenorsk}{}{\loadDTdef{norsk}} +\@ifundefined{datepolish}{}{\loadDTdef{polish}} +\@ifundefined{dateportuges}{}{\loadDTdef{portuges}} +\@ifundefined{dateromanian}{}{\loadDTdef{romanian}} +\@ifundefined{daterussian}{}{\loadDTdef{russian}} +\@ifundefined{datesamin}{}{\loadDTdef{samin}} +\@ifundefined{datescottish}{}{\loadDTdef{scottish}} +\@ifundefined{dateserbian}{}{\loadDTdef{serbian}} +\@ifundefined{dateslovak}{}{\loadDTdef{slovak}} +\@ifundefined{dateslovene}{}{\loadDTdef{slovene}} +\@ifundefined{datespanish}{}{\loadDTdef{spanish}} +\@ifundefined{dateswedish}{}{\loadDTdef{swedish}} +\@ifundefined{dateturkish}{}{\loadDTdef{turkish}} +\@ifundefined{dateukraineb}{}{\loadDTdef{ukraineb}} +\@ifundefined{dateusorbian}{}{\loadDTdef{usorbian}} +\@ifundefined{datewelsh}{}{\loadDTdef{welsh}} \fi \newtoks\dt@a \newtoks\dt@b \edef\pdfdate{\the\year} |