summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/babelbib/babelbib.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/babelbib/babelbib.sty')
-rw-r--r--Master/texmf-dist/tex/latex/babelbib/babelbib.sty94
1 files changed, 89 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/babelbib/babelbib.sty b/Master/texmf-dist/tex/latex/babelbib/babelbib.sty
index 0c851985047..6d64cca4038 100644
--- a/Master/texmf-dist/tex/latex/babelbib/babelbib.sty
+++ b/Master/texmf-dist/tex/latex/babelbib/babelbib.sty
@@ -19,11 +19,22 @@
%%
\NeedsTeXFormat{LaTeX2e}[1998/06/01]
\ProvidesPackage{babelbib}
- [2005/09/01 v1.15 babelbib: multilingual bibliographies (HH)]
+ [2005/11/13 v1.20 babelbib: multilingual bibliographies (HH)]
\newif\ifbbbbfixlanguage
\DeclareOption{fixlanguage}{\bbbbfixlanguagetrue}
+\DeclareOption{varlanguage}{\bbbbfixlanguagefalse}
\newif\ifbbbblanguagenames
+\DeclareOption{nolanguagenames}{\bbbblanguagenamesfalse}
\DeclareOption{languagenames}{\bbbblanguagenamestrue}
+\newif\ifbbbbannotations
+\DeclareOption{annote}{\bbbbannotationstrue}
+\DeclareOption{noannote}{\bbbbannotationsfalse}
+\newif\ifbtx@printISBN
+\newif\ifbtx@printISSN
+\DeclareOption{isbn}{\btx@printISBNtrue}
+\DeclareOption{noisbn}{\btx@printISBNfalse}
+\DeclareOption{issn}{\btx@printISSNtrue}
+\DeclareOption{noissn}{\btx@printISSNfalse}
\DeclareOption*{%
\InputIfFileExists{\CurrentOption.bdf}{%
\expandafter\def\csname bbbb\CurrentOption loaded\endcsname{\@empty}%
@@ -33,6 +44,7 @@
Maybe you misspelled the language option?}%
}%
}
+\ExecuteOptions{varlanguage,nolanguagenames,noannote,isbn,issn}
\ProcessOptions*
\newcommand*{\bbbbifundefined}[1]{%
\begingroup\expandafter\expandafter\expandafter\endgroup
@@ -233,6 +245,8 @@
\let\btxlastnamefont=\@empty
\newcommand\btxtitlefont{}
\let\btxtitlefont=\@empty
+\newcommand\btxjtitlefont{}
+\let\btxjtitlefont=\@empty
\newcommand\btxetalfont{}
\let\btxetalfont=\@empty
\newcommand\btxjournalfont{}
@@ -247,6 +261,8 @@
\let\btxurlfont=\@empty
\newcommand\btxurldatefont{}
\let\btxurldatefont=\@empty
+\newcommand\btxnumeralfont{}
+\let\btxnumeralfont=\@empty
\newcommand\btxauthorcolon{:}
\newcommand\btxISBN{ISBN}
\newcommand\btxISSN{ISSN}
@@ -254,10 +270,77 @@
\DeclareRobustCommand\ifbtxprintISSN[1]{\ifbtx@printISSN #1\fi}
\newcommand*\btxprintISBN[1]{\csname btx@printISBN#1\endcsname}
\newcommand*\btxprintISSN[1]{\csname btx@printISSN#1\endcsname}
-\newif\ifbtx@printISBN
-\newif\ifbtx@printISSN
-\btxprintISBN{true}
-\btxprintISSN{true}
+\ifbbbbannotations
+ \DeclareRobustCommand\btxannotation[1]{%
+ \begin{quotation}%
+ \noindent
+ #1%
+ \end{quotation}%
+ }
+\else
+ \DeclareRobustCommand\btxannotation[1]{}%
+\fi
+\providecommand\ifnumber[3]{%
+ \begingroup\@tempswafalse\let\scr@next\test@number
+ \expandafter\scr@next#1\scr@next
+ \if@tempswa\endgroup#2\else\endgroup#3\fi
+}
+\providecommand*\test@number[1]{%
+ \ifx \scr@next#1%
+ \let\scr@next\relax
+ \else
+ \@tempcnta=\expandafter\expandafter\expandafter\number
+ \expandafter`#1\relax
+ \ifnum \@tempcnta>47\relax
+ \ifnum \@tempcnta<58\relax
+ \@tempswatrue
+ \else\@tempswafalse\fi
+ \else\@tempswafalse\fi
+ \if@tempswa\else\let\scr@next\gobble@till@next\fi\fi
+ \scr@next
+}
+\def\gobble@till@next#1\scr@next{}
+\def\btx@parsenum#1#2#3\@empty{%
+ #1%
+ \edef\btx@digitb{#3}%
+ \ifx\@empty\btx@digitb
+ #2%
+ \edef\btx@digita{#1}%
+ \edef\btx@digitb{#2}%
+ \else
+ \expandafter\btx@parsenum#2#3\@empty
+ \fi
+}
+\DeclareRobustCommand\btxnumeralfallback[2]{%
+ \foreignlanguage{#1}{%
+ \ifnumber{#2}{%
+ \PackageWarning{babelbib}{Handling of numerical editions not
+ handled\MessageBreak by language #1 for edition `#2'}%
+ }{}%
+ #2%
+ }%
+}%
+\DeclareRobustCommand\btxnumeraldot[2]{%
+ \foreignlanguage{#1}{\ifnumber{#2}{#2.}{#2}}%
+}
+\DeclareRobustCommand\btxnumeralenglish[2]{%
+ \foreignlanguage{#1}{%
+ \ifnumber{#2}{%
+ \expandafter\btx@parsenum#2\@empty\@empty\@empty
+ \btxnumeralfont{%
+ \ifx\btx@digitb\@empty
+ \ifcase\btx@digita th\or st\or nd\or rd\else th\fi
+ \else
+ \ifnum\btx@digita=1
+ th%
+ \else
+ \ifcase\btx@digitb th\or st\or nd\or rd\else th\fi
+ \fi
+ \fi
+ }%
+ }{#2}%
+ }%
+}
\AtBeginDocument{%
\providecommand\url[1]{%
\PackageError{babelbib}{No \string\url\space command defined but
@@ -290,6 +373,7 @@
\inputbdf{frenchb}{french}
\inputbdf{german}{german}
\inputbdf{germanb}{german}
+ \inputbdf{greek}{greek}
\inputbdf{italian}{italian}
\inputbdf{norsk}{norsk}
\inputbdf{mexican}{spanish}