summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/babelbib/babelbib.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-10-11 23:17:58 +0000
committerKarl Berry <karl@freefriends.org>2009-10-11 23:17:58 +0000
commit66f6f7f59a221b7c1189fc36c479b2f4c881cc36 (patch)
tree4763d05f17bf0b65b4b6b6ec7fa5b8f87512383a /Master/texmf-dist/tex/latex/babelbib/babelbib.sty
parent09b9f326659d969748705afa8711a913db0d06a7 (diff)
babelbib 1.29 (11oct09)
git-svn-id: svn://tug.org/texlive/trunk@15783 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/babelbib/babelbib.sty')
-rw-r--r--Master/texmf-dist/tex/latex/babelbib/babelbib.sty40
1 files changed, 38 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/babelbib/babelbib.sty b/Master/texmf-dist/tex/latex/babelbib/babelbib.sty
index f442be59be9..c9c9b2c8f48 100644
--- a/Master/texmf-dist/tex/latex/babelbib/babelbib.sty
+++ b/Master/texmf-dist/tex/latex/babelbib/babelbib.sty
@@ -19,7 +19,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1998/06/01]
\ProvidesPackage{babelbib}
- [2009/06/18 v1.27 babelbib: multilingual bibliographies (HH)]
+ [2009/10/10 v1.29 babelbib: multilingual bibliographies (HH)]
\newif\ifbbbbfixlanguage
\DeclareOption{fixlanguage}{\bbbbfixlanguagetrue}
\DeclareOption{varlanguage}{\bbbbfixlanguagefalse}
@@ -35,6 +35,42 @@
\DeclareOption{noisbn}{\btx@printISBNfalse}
\DeclareOption{issn}{\btx@printISSNtrue}
\DeclareOption{noissn}{\btx@printISSNfalse}
+\newcommand\btxprintmonthyear[4]{}
+\newcommand*\btx@dateasis{%
+ \def\btxprintmonthyear##1##2##3##4{##2\ ##3}%
+}
+\newcommand*\btx@datenumeric{%
+ \def\btxprintmonthyear##1##2##3##4{%
+ \ifnumber{##2}{\btxprintmonthyearnum{##2}{##3}}{##2\ ##3}}%
+}
+\newcommand*\btx@datename{%
+ \def\btxprintmonthyear##1##2##3##4{%
+ \ifnumber{##2}{%
+ \ifcase ##2 \or
+ \csname btxmonjan##4\endcsname{##1}\or
+ \csname btxmonfeb##4\endcsname{##1}\or
+ \csname btxmonmar##4\endcsname{##1}\or
+ \csname btxmonapr##4\endcsname{##1}\or
+ \csname btxmonmay##4\endcsname{##1}\or
+ \csname btxmonjun##4\endcsname{##1}\or
+ \csname btxmonjul##4\endcsname{##1}\or
+ \csname btxmonaug##4\endcsname{##1}\or
+ \csname btxmonsep##4\endcsname{##1}\or
+ \csname btxmonoct##4\endcsname{##1}\or
+ \csname btxmonnov##4\endcsname{##1}\or
+ \csname btxmondec##4\endcsname{##1}\or
+ \PackageError{babelbib}{%
+ Month outside range 1 to 12 used}{%
+ Better use the BibTeX names jan, feb, mar, etc.}%
+ \fi
+ \ ##3%
+ }{%
+ ##2\ ##3}%
+ }%
+}
+\DeclareOption{dateasis}{\btx@dateasis}
+\DeclareOption{datenumeric}{\btx@datenumeric}
+\DeclareOption{datename}{\btx@datename}
\DeclareOption*{%
\InputIfFileExists{\CurrentOption.bdf}{%
\expandafter\def\csname bbbb\CurrentOption loaded\endcsname{\@empty}%
@@ -44,7 +80,7 @@
Maybe you misspelled the language option?}%
}%
}
-\ExecuteOptions{varlanguage,nolanguagenames,noannote,isbn,issn}
+\ExecuteOptions{varlanguage,nolanguagenames,noannote,isbn,issn,datename}
\ProcessOptions*
\newcommand*{\bbbbifundefined}[1]{%
\begingroup\expandafter\expandafter\expandafter\endgroup