summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-dw/cbx/authortitle-dw.cbx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-dw/cbx/authortitle-dw.cbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-dw/cbx/authortitle-dw.cbx38
1 files changed, 33 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-dw/cbx/authortitle-dw.cbx b/Master/texmf-dist/tex/latex/biblatex-dw/cbx/authortitle-dw.cbx
index e93d792ed3b..6fe1d082d54 100644
--- a/Master/texmf-dist/tex/latex/biblatex-dw/cbx/authortitle-dw.cbx
+++ b/Master/texmf-dist/tex/latex/biblatex-dw/cbx/authortitle-dw.cbx
@@ -1,14 +1,21 @@
-% authortitle-dw.cbx, Dominik Waßenhoven 2012
+% authortitle-dw.cbx, Dominik Waßenhoven 2013
-\ProvidesFile{authortitle-dw.cbx}[2012/06/28 v1.5 biblatex citation style]
+\ProvidesFile{authortitle-dw.cbx}[2013/09/07 v1.6 biblatex citation style]
\RequireCitationStyle{standard-dw}
+\newbool{cbx:addyear}
\newbool{cbx:firstfull}
+\DeclareBibliographyOption{addyear}[true]{%
+ \csuse{bool#1}{cbx:addyear}}
+
\DeclareBibliographyOption{firstfull}[true]{%
\csuse{bool#1}{cbx:firstfull}}
+%% Zeichen zwischen Titel und Jahr (bei addyear=true)
+\newcommand*{\titleyeardelim}{\addspace}
+
\newbibmacro*{cite}{%
\usebibmacro{cite:citepages}%
\global\boolfalse{cbx:loccit}%
@@ -163,7 +170,9 @@
\AtBeginBibliography{%
\renewbibmacro*{cite:xref}{%
\iffieldundef{shorthand}
- {\usebibmacro{cite:editor}%
+ {\ifbool{xref:inbook}
+ {\usebibmacro{cite:author}}
+ {\usebibmacro{cite:editor}}%
\iffieldundef{shorttitle}
{\printfield{title}}
{\printfield{shorttitle}}%
@@ -246,11 +255,30 @@
}
{\printtext[review]{\bbx@review{\thefield{xref}}}}
{\printtext[bibhyperref]{%
- \printfield[citetitle]{labeltitle}}}}}
+ \printfield[citetitle]{labeltitle}}}
+ \ifbool{cbx:addyear}
+ {\iffieldundef{year}
+ {}
+ {\titleyeardelim%
+ \parentext{\printfield{year}}}}
+ {}}}
\newbibmacro*{cite:title:force}{%
\printtext[bibhyperref]{%
- \printfield[citetitle]{labeltitle}}}
+ \printfield[citetitle]{labeltitle}}%
+ \ifbool{cbx:addyear}
+ {\iffieldundef{year}
+ {}
+ {\titleyeardelim%
+ \parentext{\printfield{year}}}}
+ {}}
+
+\newbibmacro*{cite:labelyear+extrayear}{%
+ \iffieldundef{labelyear}
+ {}
+ {\printtext[bibhyperref]{%
+ \printfield{labelyear}%
+ \printfield{extrayear}}}}
\DeclareCiteCommand{\cite}
{\usebibmacro{prenote}}