summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-dw/bbx/standard-dw.bbx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-dw/bbx/standard-dw.bbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-dw/bbx/standard-dw.bbx133
1 files changed, 92 insertions, 41 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-dw/bbx/standard-dw.bbx b/Master/texmf-dist/tex/latex/biblatex-dw/bbx/standard-dw.bbx
index 452941a469a..462231a704f 100644
--- a/Master/texmf-dist/tex/latex/biblatex-dw/bbx/standard-dw.bbx
+++ b/Master/texmf-dist/tex/latex/biblatex-dw/bbx/standard-dw.bbx
@@ -1,6 +1,6 @@
-% standard-dw.bbx, Dominik Waßenhoven 2010
+% standard-dw.bbx, Dominik Waßenhoven 2011
-\ProvidesFile{standard-dw.bbx}[2011/02/06 v1.3c biblatex bibliography style]
+\ProvidesFile{standard-dw.bbx}[2011/11/20 v1.4 biblatex bibliography style]
\RequireBibliographyStyle{standard}
@@ -11,21 +11,28 @@
\newbool{bbx:journumafteryear}
\newbool{bbx:journumdate}
\newbool{bbx:seriesafteryear}
+\newbool{bbx:seriesinparens}
\newbool{bbx:shorthandacro}
\newbool{bbx:shorthandinbib}
\newbool{bbx:shorthandinbibpunct}% Kontrolle, ob shorthandinbib ausgegeben wurde
\newbool{bbx:shorthandwidthbool}
\newbool{bbx:shortjournal}
\newbool{bbx:terselos}
-\newbool{bbx:xref}% soll xref überhaupt verwendet werden?
+\newbool{bbx:xref}% soll xref überhaupt verwendet werden?
\newbool{xrefidem}
+\newtoggle{listofshorthands}% sind wir in der List of Shorthands?
+
% Schalter zum ein-/ausblenden bestimmter Felder
\newbool{bbx:pagetotal}
+% Längen für Shorthand
\newlength{\bbx@shorthandwidth}
\newlength{\shorthandsep}
+% Hilfsbefehl für @review
+\newcommand*{\bbx@reviewparent}
+
\DeclareEntryOption{acronym}[true]{%
\csuse{bool#1}{bbx:acronym}}
@@ -67,6 +74,15 @@
{\global\booltrue{bbx:seriesafteryear}}
{\global\boolfalse{bbx:seriesafteryear}}}
+% Option seriesformat=standard|parens
+\newcommand{\bbx@option@seriesformat}{}
+\DeclareBibliographyOption{seriesformat}{%
+ \renewcommand{\bbx@option@seriesformat}{#1}}
+\AtBeginDocument{%
+ \ifdefstring{\bbx@option@seriesformat}{parens}
+ {\global\booltrue{bbx:seriesinparens}}
+ {\global\boolfalse{bbx:seriesinparens}}}
+
\ExecuteBibliographyOptions{
doi=false,
eprint=false,
@@ -74,6 +90,7 @@
journalnumber=standard,
pagetotal=false,
series=standard,
+ seriesformat=parens,
shorthandinbib=false,
terselos=true,
xref=false
@@ -106,47 +123,54 @@
%% -> vor 'number' (z.B. ', Bd. ')
\newcommand*{\sernumstring}{\addspace}
-%% Reihe in Klammern
+%% Reihe in Klammern (Option seriesformat)
\renewbibmacro*{series+number}{%
\iffieldundef{series}%
{}
- {\printtext[parens]{%
+ {\ifbool{bbx:seriesinparens}
+ {\printtext[parens]{%
\seriespunct%
\printfield{series}%
\setunit*{\sernumstring}%
- \printfield{number}%
- \newunit}}}
+ \printfield{number}}%
+ \newunit}
+ {\setunit{\newunitpunct\seriespunct}%
+ \printfield{series}%
+ \setunit*{\sernumstring}%
+ \printfield{number}%
+ \newunit}}}
-%% Kürzere Ausgabe der List of Shorthands
+%% Kürzere Ausgabe der List of Shorthands
\newbibmacro*{terselos}{%
-\ifbool{bbx:terselos}
- {\ifnameundef{labelname}
- {}
- {\ifnameundef{author}
- {\printnames{editor}%
- \usebibmacro{editorstringpunct}%
- \usebibmacro{editorstrg}}
- {\printnames{author}}%
- \setunit{\labelnamepunct}}%
- \iffieldundef{booktitle}
- {\usebibmacro{maintitle+title}}
- {\usebibmacro{title}%
- \newunit\newblock
- \usebibmacro{in:}%
- \usebibmacro{maintitle+booktitle}}%
- \finentry}
- {\usedriver
- {\DeclareNameAlias{sortname}{default}}
- {\thefield{entrytype}}%
- \finentry}}
+ \ifbool{bbx:terselos}
+ {\ifnameundef{labelname}
+ {}
+ {\ifnameundef{author}
+ {\printnames{editor}%
+ \usebibmacro{editorstringpunct}%
+ \usebibmacro{editorstrg}}
+ {\printnames{author}}%
+ \setunit{\labelnamepunct}}%
+ \iffieldundef{booktitle}
+ {\usebibmacro{maintitle+title}}
+ {\usebibmacro{title}%
+ \newunit\newblock
+ \usebibmacro{in:}%
+ \usebibmacro{maintitle+booktitle}}%
+ \finentry}
+ {\usedriver
+ {\DeclareNameAlias{sortname}{default}}
+ {\thefield{entrytype}}%
+ \finentry}}
\DeclareBibliographyDriver{shorthands}{%
+ \toggletrue{listofshorthands}%
\usebibmacro{terselos}}
%% Zeichensetzung nach dem Shorthand-Label
\newcommand{\shorthandpunct}{}
-%% List of Shorthands: Länge der Labels einstellbar
+%% List of Shorthands: Länge der Labels einstellbar
\AtBeginDocument{%
\ifbool{bbx:shorthandwidthbool}
{\defbibenvironment{shorthands}
@@ -175,16 +199,20 @@
{\endlist}
{\item}}}
-%% Option »shorthandinbib«:
+%% Option »shorthandinbib«:
%% Shorthands in der Bibliographie ausgeben
-%% außerdem für Option »xref«:
-%% Autoren in Liste schreiben für späteren Test xrefnamecheck
+%% außerdem für Option »xref«:
+%% Autoren in Liste schreiben für späteren Test xrefnamecheck
% \newcommand*{\@xrefauthornames}
\DeclareFieldFormat{shorthandinbib}{\mkbibbrackets{#1}}
\newcommand*{\shorthandinbibpunct}{\addspace}
\renewbibmacro*{begentry}{%
- \ifcitation
- {}% im Zitat sollen shorthands nicht ausgegeben werden
+ \ifboolexpr{
+ test {\ifcitation}
+ or
+ togl {listofshorthands}
+ }
+ {}% im Zitat und der langen List of Shorthands sollen shorthands nicht ausgegeben werden
{\ifbool{bbx:shorthandinbib}
{\iffieldundef{shorthand}
{}
@@ -300,7 +328,7 @@
{}}
%% Tests werden bei 'xref=true' in @book, @collection,
-%% @proceedings und @reference ausgeführt
+%% @proceedings und @reference ausgeführt
\AtDataInput[book]{%
\usebibmacro{xrefvolumecheck}%
\usebibmacro{xrefcitedascheck}}
@@ -380,7 +408,7 @@
{\printfield{shortjournal}}}
{\usebibmacro{journal:normal}}}
-\newbibmacro*{journal:normal}{% vollständige, 'normale' Ausgabe eines Zeitschriftentitels
+\newbibmacro*{journal:normal}{% vollständige, 'normale' Ausgabe eines Zeitschriftentitels
\iffieldundef{journaltitle}
{}
{\printtext[journaltitle]{%
@@ -552,9 +580,17 @@
{\bibstring{backrefpages}\ppspace}
{\bibstring{backrefpage}\ppspace}%
\printlist[pageref][-\value{listtotal}]{pageref}}}}
+
+\renewbibmacro*{note+pages}{%
+ \printfield{note}%
+ \ifbool{cbx:rpcited}
+ {}
+ {\setunit{\bibpagespunct}%
+ \printfield{pages}}%
+ \newunit}
%%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%%
-%%%%% Bibmacros für Code, der im Bibliography %%%%%
+%%%%% Bibmacros für Code, der im Bibliography %%%%%
%%%%% Driver aufgerufen wird, wenn KEIN xref %%%%%
%%%%% vorhanden ist. %%%%%
%%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%%
@@ -1305,7 +1341,7 @@
\usebibmacro{begentry}%
\ifbool{cbx:idemfull}
{}
- {\usebibmacro{author/translator+others}%
+ {\usebibmacro{author}%
\ifnameundef{labelname}
{}
{\setunit{\labelnamepunct}\newblock}}%
@@ -1321,7 +1357,8 @@
\newunit\newblock
\printfield{version}}
{% Code, wenn xref vorhanden
- \printtext[review]{\bbx@xref{\thefield{xref}}}}%
+ \savefield{xref}{\bbx@reviewparent}%
+ \printtext[review]{\bbx@review{\thefield{xref}}}}%
\newunit\newblock
\usebibmacro{in:}%
\usebibmacro{journal+issuetitle}%
@@ -1407,7 +1444,7 @@
%%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%%
%%%%% Die folgenden 'xref'-BibliographyDriver sind %%%%%
-%%%%% nötig, damit bei Erstzitaten mit xref die %%%%%
+%%%%% nötig, damit bei Erstzitaten mit xref die %%%%%
%%%%% Option useeditor=true beachtet wird. %%%%%
%%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%%
@@ -1556,7 +1593,7 @@
%%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%%
%%%%% Die folgenden 'xrefidem'-BibliographyDriver %%%%%
-%%%%% sind nötig damit bei Erstzitaten mit demselben %%%%%
+%%%%% sind nötig damit bei Erstzitaten mit demselben %%%%%
%%%%% Autor und xref ein Vollzitat erfolgen kann, %%%%%
%%%%% ohne den Autor des referenzierten Werkes (der %%%%%
%%%%% durch 'idem' ersetzt wird) auszugeben. %%%%%
@@ -1746,6 +1783,20 @@
Thus, 'omiteditor' is ignored}}
{}}%
{}%
+ \ifdefstring{\bbx@option@series}{standard}
+ {}
+ {\ifdefstring{\bbx@option@series}{afteryear}
+ {}
+ {\blxdw@warning@noline{%
+ Unknown value for option 'series'.\MessageBreak
+ Option 'series=standard' used instead}}}%
+ \ifdefstring{\bbx@option@seriesformat}{standard}
+ {}
+ {\ifdefstring{\bbx@option@seriesformat}{parens}
+ {}
+ {\blxdw@warning@noline{%
+ Unknown value for option 'seriesformat'.\MessageBreak
+ Option 'seriesformat=standard' used instead}}}%
}
\endinput