diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-dw/cbx/standard-dw.cbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-dw/cbx/standard-dw.cbx | 61 |
1 files changed, 52 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-dw/cbx/standard-dw.cbx b/Master/texmf-dist/tex/latex/biblatex-dw/cbx/standard-dw.cbx index b0375079178..2e9269cec62 100644 --- a/Master/texmf-dist/tex/latex/biblatex-dw/cbx/standard-dw.cbx +++ b/Master/texmf-dist/tex/latex/biblatex-dw/cbx/standard-dw.cbx @@ -1,9 +1,21 @@ -% standard-dw.cbx, Dominik Waßenhoven 2011 +% standard-dw.cbx, Dominik Waßenhoven 2012 -\ProvidesFile{standard-dw.cbx}[2011/11/20 v1.4 biblatex citation style] +\ProvidesFile{standard-dw.cbx}[2012/06/28 v1.5 biblatex citation style] + +\@ifpackagelater{biblatex}{2011/11/13} + {} + {\PackageError{biblatex-dw} + {Outdated 'biblatex' package\MessageBreak + Upgrade to biblatex v1.7 (2011/11/13) or later.\MessageBreak + I found: '\csuse{ver@biblatex.sty}'.\MessageBreak + This is a fatal error. I'm aborting now}% + \endinput} \newbool{cbx:authauthxref} \newbool{cbx:authedxref} +\newbool{cbx:citeauthor} +\newbool{cbx:citeauthorfoot} +\newbool{cbx:citeauthornormalfont} \newbool{cbx:citedas} \newbool{cbx:edstringincitations} \newbool{cbx:firstfullname} @@ -14,6 +26,7 @@ \newbool{cbx:rpcited}% wurde der parent des @review schon zitiert? \newbool{cbx:xrefparent:firstcite} \newbool{cbx:shorthandibid} +\newbool{cbx:loccit} \newbibmacro*{cite:citepages}{} \newbibmacro*{cite:full:citepages}{} @@ -35,15 +48,36 @@ \DeclareEntryOption{shorthandibid}[true]{% \csuse{bool#1}{cbx:shorthandibid}} +\DeclareBibliographyOption{citeauthor}[namefont]{% + \ifcsdef{cbx@opt@citeauthor@#1} + {\csuse{cbx@opt@citeauthor@#1}} + {\blxdw@error{% + Invalid option 'citeauthor=#1'\MessageBreak + Valid values are 'namefont', 'namefontfoot', 'normalfont'}}} +\def\cbx@opt@citeauthor@namefont{% + \boolfalse{cbx:citeauthornormalfont}% + \boolfalse{cbx:citeauthorfoot}} +\def\cbx@opt@citeauthor@namefontfoot{% + \boolfalse{cbx:citeauthornormalfont}% + \booltrue{cbx:citeauthorfoot}} +\def\cbx@opt@citeauthor@normalfont{% + \booltrue{cbx:citeauthornormalfont}% + \boolfalse{cbx:citeauthorfoot}} + +\DeclareBibliographyOption{ibidpage}[true]{% + \ifstrequal{#1}{true} + {\ExecuteBibliographyOptions{loccittracker=context}}% Standard: constrict + {\ExecuteBibliographyOptions{loccittracker=false}}} + \DeclareBibliographyOption{pageref}[true]{% \setbool{cbx:pageref}{#1}} \DeclareBibliographyOption{citepages}[permit]{% \ifcsdef{cbx@opt@citepages@#1} {\csuse{cbx@opt@citepages@#1}} - {\PackageError{biblatex} - {Invalid option 'citepages=#1'} - {Valid values are 'permit', 'suppress', 'omit', 'separate'.}}} + {\blxdw@error + {Invalid option 'citepages=#1'\MessageBreak + Valid values are 'permit', 'suppress', 'omit', 'separate'}}} \def\cbx@opt@citepages@permit{% \renewbibmacro*{cite:citepages}{}% @@ -111,7 +145,6 @@ edstringincitations=true, ibidtracker=constrict, idemtracker=constrict, - loccittracker=false, opcittracker=false, pagetracker=true, shorthandibid=true @@ -240,14 +273,23 @@ \cbx@nameseen{#1#3#5#7}}% \usebibmacro{name:andothers}} \DeclareCiteCommand{\citeauthor} - {\boolfalse{citetracker}% + {\booltrue{cbx:citeauthor}% + \boolfalse{citetracker}% \boolfalse{pagetracker}% \usebibmacro{prenote}} {\indexnames{labelname}% \printnames[citeauthor]{labelname}} {\multicitedelim} {\usebibmacro{postnote}}} - {}} + {\DeclareCiteCommand{\citeauthor} + {\booltrue{cbx:citeauthor}% + \boolfalse{citetracker}% + \boolfalse{pagetracker}% + \usebibmacro{prenote}} + {\indexnames{labelname}% + \printnames{labelname}} + {\multicitedelim} + {\usebibmacro{postnote}}}} %% Formatierung von 'ibidem' entsprechend der Option 'ibidemfont' \providecommand*{\mkibid}[1]{% @@ -340,6 +382,7 @@ %% Test, ob author des @inbook und author des @book bei xref %% identisch sind (für xref=true, edbyidem=true); nötig, %% damit der Herausgeber nicht durch idem ersetzt wird +%\newbool{cbx:autheddiff}% auther of @inbook and editor of @book differ \newbibmacro*{authauthxrefcheck}{% \iffieldundef{xref} {} @@ -351,7 +394,7 @@ } {\booltrue{cbx:authauthxref}} {\boolfalse{cbx:authauthxref}}}} - + %% für @review \DeclareCiteCommand{\bbx@review} {} |