diff options
author | Karl Berry <karl@freefriends.org> | 2013-09-07 22:36:23 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-09-07 22:36:23 +0000 |
commit | 3babeb32c5a00bc32e03adf0d2e01173d813d1a6 (patch) | |
tree | c989b57c239ddb2ac6208b1cb71b7372e39bdb94 /Master/texmf-dist/tex/latex/biblatex-dw/cbx/authortitle-dw.cbx | |
parent | b0595338bbb74130992e1432ad51c7ae1a8d513e (diff) |
biblatex-dw (7sep13)
git-svn-id: svn://tug.org/texlive/trunk@31593 c570f23f-e606-0410-a88d-b1316a301751
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.cbx | 38 |
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}} |