diff options
author | Karl Berry <karl@freefriends.org> | 2010-03-12 00:04:57 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-03-12 00:04:57 +0000 |
commit | b93495d96a481c80e8feab510d8eebea5a166b02 (patch) | |
tree | efc8ceac7cbf9b2587f474ff4dc21b5007b598bd /Master/texmf-dist/tex/latex/biblatex-dw/cbx | |
parent | 6d184abba1025d22c5317531c2e3e253ad7583bd (diff) |
new-to-tl biblatex-dw 1.3 (11mar10)
git-svn-id: svn://tug.org/texlive/trunk@17433 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-dw/cbx')
3 files changed, 963 insertions, 0 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 new file mode 100644 index 00000000000..3111bedb54c --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-dw/cbx/authortitle-dw.cbx @@ -0,0 +1,369 @@ +% authortitle-dw.cbx, Dominik Waßenhoven 2010 + +\ProvidesFile{authortitle-dw.cbx}[2010/03/11 v1.3 biblatex citation style] + +\RequireCitationStyle{standard-dw} + +\newbool{cbx:firstfull} + +\DeclareBibliographyOption{firstfull}[true]{% + \csuse{bool#1}{cbx:firstfull}} + +\newbibmacro*{cite}{% + \global\boolfalse{cbx:herename}% + \global\boolfalse{cbx:loccit}% + \global\let\cbx@tempa\empty + \ifbool{cbx:firstfull} + {\ifciteseen + {\usebibmacro{cite:normal}} + {\usebibmacro{cite:firstfull}}} + {\usebibmacro{cite:normal}}} + +\newbibmacro*{cite:normal}{% + \iffieldundef{shorthand} + {\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage} + {\usebibmacro{cite:ibid}} + {\ifthenelse{\ifciteidem\AND\NOT\boolean{cbx:noidem}% + \AND\NOT\iffirstonpage} + {\usebibmacro{cite:idem}% + \usebibmacro{cite:title}% + \usebibmacro{cite:save}} + {\ifnameundef{labelname} + {} + {\usebibmacro{cite:name}}% + \usebibmacro{cite:title}}% + \ifuseeditor + {} + {\ifbool{cbx:omiteditor} + {} + {\ifnameundef{labelname} + {\newunit + \usebibmacro{cite:byeditor}} + {}}}% + \usebibmacro{cite:save}}}% + {\ifbool{cbx:shorthandibid}% + {\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}% + {\usebibmacro{cite:ibid}} + {\usebibmacro{cite:shorthand}}}% + {\usebibmacro{cite:shorthand}}}} + +\newbibmacro*{cite:firstfull}{% + \ifthenelse{\ifciteidem\AND\NOT\boolean{cbx:noidem}% + \AND\NOT\iffirstonpage} + {\usebibmacro{cite:idem}% + \booltrue{cbx:idemfull}} + {}% + \printtext[bibhyperref]{\usebibmacro{cite:full}} + \usebibmacro{cite:save}} + +\newbibmacro*{cite:full}{% + \usedriver + {\ifbool{cbx:option:omitpages} + {\global\booltrue{cbx:omitpages}} + {}% + \DeclareNameAlias{sortname}{default}} + {\thefield{entrytype}}% + \iffieldundef{shorthand} + {} + {\ifbool{cbx:citedas} + {\addspace\usebibmacro{shorthandintro}} + {}}% + \iffieldundef{postnote} + {}% + {\iffieldundef{pages} + {}% + {\ifthenelse{\boolean{cbx:option:herename}\AND\NOT + \boolean{cbx:omitpages}} + {\global\booltrue{cbx:herename}% + \herenamepunct% + \bibstring{herename}} + {}}}} + +\newbibmacro*{cite:shorthand}{% + \cbx@tempa + \printtext[bibhyperref]{\printfield{shorthand}}% + \global\booltrue{cbx:noidem}} + +\newbibmacro*{textcite}{% + \global\boolfalse{cbx:loccit}% + \ifnameundef{labelname} + {\gdef\cbx@tempa{% + \global\booltrue{cbx:parens}% + \addspace\bibleftparen}% + \BibliographyWarning{No author or editor given for \textcite}% + \textbf{\thefield{entrykey}}} + {\ifbool{cbx:firstfullname} + {\printnames[citeauthor]{labelname}} + {\printnames{labelname}}% + \gdef\cbx@tempa{% + \global\booltrue{cbx:parens}% + \addspace\bibleftparen}% + \usebibmacro{cite:save}}% + \iffieldundef{shorthand} + {\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage} + {\usebibmacro{cite:ibid}} + {\ifsingletitle + {\usebibmacro{cite:title:force}} + {\usebibmacro{cite:title}}}}% + {\usebibmacro{cite:shorthand}}} + +%% xref +\newbibmacro*{cite:xref}{% + \global\let\cbx@tempa\empty + \ifbool{cbx:firstfull} + {\ifciteseen + {\iffieldundef{shorthand} + {\ifuseeditor + {\ifnameundef{labelname} + {}% + {\ifbool{cbx:xrefnoidem} + {\usebibmacro{cite:editor} + \citenamepunct}% + {\usebibmacro{cite:idem}}}} + {}% + \usebibmacro{cite:title}% + \ifuseeditor + {} + {\ifbool{cbx:omiteditor} + {} + {\ifbool{cbx:xrefnoidem} + {\newunit + \usebibmacro{cite:byeditor}} + {\ifbool{bbx:edbyidem} + {\newunit + \bibstring{byeditor}% + \setunit{\addspace}% + \bibstring[\mkidem]{idemdat\thefield{gender}}} + {\newunit + \usebibmacro{cite:byeditor}}}}}}% + {\usebibmacro{cite:shorthand}}}% + {\ifbool{cbx:xrefnoidem} + {\usebibmacro{cite:fullxref}}% + {\ifbool{bbx:edbyidem} + {\usebibmacro{cite:fullxrefidem}}% + {\usebibmacro{cite:fullxref}}}}}% + {\iffieldundef{shorthand} + {\ifuseeditor + {\ifnameundef{labelname} + {}% + {\ifbool{cbx:xrefnoidem} + {\usebibmacro{cite:editor}% + \citenamepunct}% + {\ifbool{bbx:edbyidem} + {\usebibmacro{cite:idem}}% + {\printnames{labelname}% + \citenamepunct}}}} + {}% + \usebibmacro{cite:title}% + \ifuseeditor + {} + {\ifbool{cbx:omiteditor} + {} + {\newunit + \usebibmacro{cite:byeditor}}}}% + {\usebibmacro{cite:shorthand}}}} + +\AtBeginBibliography{% + \renewbibmacro*{cite:xref}{% + \iffieldundef{shorthand}% + {\ifuseeditor + {\ifnameundef{labelname} + {} + {\ifbool{bbx:xrefnoidem}% + {\printnames{labelname}% + \printtext{\labelnamepunct}}% + {\ifbool{bbx:edbyidem} + {\midsentence% + \usebibmacro{cite:idem}}% + {\printnames{labelname}% + \printtext{\labelnamepunct}}}}} + {}% + \iffieldundef{shorttitle}% + {\printfield{title}}% + {\printfield{shorttitle}}% + \ifuseeditor + {} + {\ifbool{cbx:omiteditor} + {} + {\ifnameundef{editor} + {} + {\ifbool{bbx:xrefnoidem}% + {\newunit + \usebibmacro{byeditor}}% + {\ifbool{bbx:edbyidem} + {\newunit + \bibstring{byeditor}% + \setunit{\addspace}% + \bibstring[\mkidem]{idemdat\thefield{gender}}} + {\newunit + \usebibmacro{byeditor}}}}}}}% + {\printtext[bibhyperref]{\printfield{shorthand}}}}} + +\newbibmacro*{cite:fullxref}{% + \usedriver + {\ifbool{cbx:option:omitpages} + {\global\booltrue{cbx:omitpages}} + {}% + \DeclareNameAlias{sortname}{default}} + {xref\thefield{entrytype}}% + \iffieldundef{shorthand} + {} + {\ifbool{cbx:citedas} + {\addspace\usebibmacro{shorthandintro}} + {}}}% + +\newbibmacro*{cite:fullxrefidem}{% + \usedriver + {\ifbool{cbx:option:omitpages} + {\global\booltrue{cbx:omitpages}} + {}% + \DeclareNameAlias{sortname}{default}% + \clearfield{editor}} + {xrefidem\thefield{entrytype}}% + \iffieldundef{shorthand} + {} + {\ifbool{cbx:citedas} + {\addspace\usebibmacro{shorthandintro}} + {}}}% + +\DeclareCiteCommand{\textcite} + {\boolfalse{cbx:parens}% + \usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{textcite}} + {\ifbool{cbx:parens} + {\bibrightparen\boolfalse{cbx:parens}} + {}% + \multicitedelim} + {\iffieldundef{postnote} + {\ifbool{cbx:parens} + {\bibrightparen} + {}}% + {\ifbool{cbx:parens} + {\postnotedelim} + {\addspace\bibleftparen}% + \printfield{postnote}\bibrightparen}} + +\DeclareCiteCommand{\fullcite} + {\usebibmacro{prenote}} + {\usedriver + {\ifbool{cbx:option:omitpages} + {\global\booltrue{cbx:omitpages}} + {}% + \DeclareNameAlias{sortname}{default}} + {\thefield{entrytype}}} + {\multicitedelim} + {\iffieldundef{postnote} + {} + {\ifthenelse{\boolean{cbx:option:herename}\AND\NOT + \(\iffieldundef{pages}\OR + \boolean{cbx:omitpages}\)} + {\global\booltrue{cbx:herename}% + \herenamepunct% + \bibstring{herename}} + {\global\boolfalse{cbx:herename}}% + \usebibmacro{postnote}}} + +\DeclareCiteCommand{\footfullcite}[\mkbibfootnote] + {\bibsentence + \usebibmacro{prenote}} + {\usedriver + {\ifbool{cbx:option:omitpages} + {\global\booltrue{cbx:omitpages}} + {}% + \DeclareNameAlias{sortname}{default}} + {\thefield{entrytype}}} + {\multicitedelim} + {\iffieldundef{postnote} + {} + {\ifthenelse{\boolean{cbx:option:herename}\AND\NOT + \(\iffieldundef{pages}\OR + \boolean{cbx:omitpages}\)} + {\global\booltrue{cbx:herename}% + \herenamepunct% + \bibstring{herename}} + {\global\boolfalse{cbx:herename}}% + \usebibmacro{postnote}}} + +\newbibmacro*{citetitle}{% + \global\boolfalse{cbx:loccit}% + \global\let\cbx@tempa\empty + \iffieldundef{shorthand} + {\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage} + {\usebibmacro{cite:ibid}} + {\usebibmacro{cite:title:force}}}% + {\usebibmacro{cite:shorthand}}} + +\newbibmacro*{cite:title}{% + \cbx@tempa + \ifsingletitle + {\setunit{}}% Löschen des \citenamepunct, falls kein Titel ausgegeben wird + {\printtext[bibhyperlink]{% + \printfield[citetitle]{labeltitle}}}} + +\newbibmacro*{cite:title:force}{% + \cbx@tempa + \printtext[bibhyperlink]{% + \printfield[citetitle]{labeltitle}}} + +%%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% +%%%%% Unverändert übernommen aus authortitle-ibid.cbx %%%%% +%%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% + +\newbool{cbx:parens} +\newbool{cbx:loccit} + +\DeclareBibliographyOption{ibidpage}[true]{% + \ifstrequal{#1}{true} + {\ExecuteBibliographyOptions{loccittracker=constrict}} + {\ExecuteBibliographyOptions{loccittracker=false}}} + +\newbibmacro*{cite:ibid}{% + \cbx@tempa + \printtext[bibhyperref]{\bibstring[\mkibid]{ibidem}}% + \ifloccit + {\global\booltrue{cbx:loccit}} + {}} + +\newbibmacro*{cite:postnote}{% + \ifbool{cbx:loccit} + {}% + {\usebibmacro{postnote}}} + +\DeclareCiteCommand{\cite} + {\usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{cite}} + {\multicitedelim} + {\usebibmacro{cite:postnote}} + +\DeclareCiteCommand*{\cite} + {\usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{citetitle}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\parencite}[\mkbibparens] + {\usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{cite}} + {\multicitedelim} + {\usebibmacro{cite:postnote}} + +\DeclareCiteCommand*{\parencite}[\mkbibparens] + {\usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{citetitle}} + {\multicitedelim} + {\usebibmacro{cite:postnote}} + +\DeclareCiteCommand{\footcite}[\mkbibfootnote] + {\bibsentence + \usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{cite}} + {\multicitedelim} + {\usebibmacro{cite:postnote}} + +\endinput diff --git a/Master/texmf-dist/tex/latex/biblatex-dw/cbx/footnote-dw.cbx b/Master/texmf-dist/tex/latex/biblatex-dw/cbx/footnote-dw.cbx new file mode 100644 index 00000000000..4df49f87aba --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-dw/cbx/footnote-dw.cbx @@ -0,0 +1,352 @@ +% footnote-dw.cbx, Dominik Waßenhoven 2010 + +\ProvidesFile{footnote-dw.cbx}[2010/03/11 v1.3 biblatex citation style] + +\RequireCitationStyle{standard-dw} + +\newbool{cbx:pageref} + +\DeclareBibliographyOption{pageref}[true]{% + \setbool{cbx:pageref}{#1}} + +\ExecuteBibliographyOptions{ + uniquename=false, % damit bei idem=false Vor- und Nachname gesetzt werden! + loccittracker=true,% für die Option 'ibidpage' +} + +% Kommandos zum Verpacken der Zitate in Fußnoten +\newrobustcmd{\mkfootnotecite}[1]{% + \iffootnote + {#1} + {\unspace\footnote{% + \toggletrue{blx@footnote}% + \bibsentence#1\addperiod}}} + +\newbool{cbx:parencitefoot}% wenn parencite innerhalb einer + % Fußnote aufgerufen wird + % (wichtig für seenote) +\newrobustcmd{\mkparencite}[1]{% + \iffootnote + {\booltrue{cbx:parencitefoot}% + \begingroup + \let\mkbibparens\mkbibbrackets + \bibleftparen#1\bibrightparen + \endgroup} + {\unspace\footnote{% + \toggletrue{blx@footnote}% + \bibsentence#1\addperiod}}} + +\newbibmacro*{cite}{% + \global\boolfalse{cbx:herename}% + \global\boolfalse{cbx:loccit}% + \bibhypertarget{cite\the\value{instcount}}{% + \ifciteseen + {\iffieldundef{shorthand} + {\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage} + {\usebibmacro{cite:ibid}% + \usebibmacro{cite:save}% + \usebibmacro{cite:reset}} + {\ifthenelse{\ifciteidem\AND\NOT\boolean{cbx:noidem}% + \AND\NOT\iffirstonpage} + {\usebibmacro{cite:idem}% + \usebibmacro{cite:title}} + {\ifnameundef{labelname} + {\usebibmacro{cite:title}} + {\usebibmacro{cite:name}% + \ifopcit + {\ifloccit + {\usebibmacro{cite:loccit}} + {\usebibmacro{cite:opcit}}} + {\usebibmacro{cite:title}}}}% + \usebibmacro{cite:save}}} + {\ifbool{cbx:shorthandibid}% + {\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}% + {\usebibmacro{cite:ibid}}% + {\usebibmacro{cite:shorthand}}} + {\usebibmacro{cite:shorthand}}% + \usebibmacro{cite:save}% + \usebibmacro{cite:reset}}} + {\ifthenelse{\ifciteidem\AND\NOT\boolean{cbx:noidem}% + \AND\NOT\iffirstonpage} + {\usebibmacro{cite:idem}% + \booltrue{cbx:idemfull}} + {}% + \usebibmacro{cite:full}% + \usebibmacro{cite:save}}}} + +\newbibmacro*{footref}{% + \csxdef{cbx@first@\thefield{entrykey}}{\the\value{instcount}}% + \label{cbx@\the\value{instcount}}} + +\newbibmacro*{cite:full}{% + \usebibmacro{footref}% + \ifuseeditor + {\ifnameundef{editor} + {\setunit{}} + {}}% + {\setunit{}}% + \printtext[bibhypertarget]{% + \usedriver + {\ifbool{cbx:option:omitpages} + {\booltrue{cbx:omitpages}} + {}% + \DeclareNameAlias{sortname}{default}} + {\thefield{entrytype}}% + \iffieldundef{shorthand} + {} + {\ifbool{cbx:citedas} + {\addspace\usebibmacro{shorthandintro}} + {}}% + \iffieldundef{pages} + {}% + {\iffieldundef{postnote} + {}% + {\ifthenelse{\boolean{cbx:option:herename}\AND\NOT + \boolean{cbx:omitpages}} + {\global\booltrue{cbx:herename}% + \herenamepunct% + \bibstring{herename}} + {}}}}} + +\newbibmacro*{cite:title}{% + \ifsingletitle + {\setunit{}}% Löschen des \citenamepunct, falls kein Titel ausgegeben wird + {\printtext[bibhyperlink]{% + \printfield[citetitle]{labeltitle}}}% + \ifuseeditor + {} + {\ifbool{cbx:omiteditor} + {} + {\ifnameundef{editor} + {} + {\ifbool{bbx:xrefnoidem}% + {\newunit + \usebibmacro{cite:byeditor}}% + {\ifbool{bbx:edbyidem} + {\newunit + \bibstring{byeditor}% + \setunit{\addspace}% + \bibstring[\mkidem]{idemdat\thefield{gender}}} + {\newunit + \usebibmacro{cite:byeditor}}}}}}% + \usebibmacro{cite:seenote}} + +\newbibmacro*{cite:shorthand}{% + \printtext[bibhyperlink]{\printfield{shorthand}}% + \ifbool{cbx:citedas} + {} + {\usebibmacro{cite:seenote}}} + +\newbibmacro*{cite:seenote}{% + \ifbool{cbx:parencitefoot} + {\addspace\mkbibbrackets{% + \bibstring{seenote}\addnbspace%\ref{\thefield{entrykey}}% + \ref{cbx@\csuse{cbx@first@\thefield{entrykey}}}% + \ifbool{cbx:pageref} + {\ifsamepage{\the\value{instcount}} + {\csuse{cbx@first@\thefield{entrykey}}} + {} + {\addcomma\space\bibstring{page}\addnbspace + \pageref{cbx@\csuse{cbx@first@\thefield{entrykey}}}}} + {}}} + {\addspace\mkbibparens{% + \bibstring{seenote}\addnbspace%\ref{\thefield{entrykey}}% + \ref{cbx@\csuse{cbx@first@\thefield{entrykey}}}% + \ifbool{cbx:pageref} + {\ifsamepage{\the\value{instcount}} + {\csuse{cbx@first@\thefield{entrykey}}} + {} + {\addcomma\space\bibstring{page}\addnbspace + \pageref{cbx@\csuse{cbx@first@\thefield{entrykey}}}}} + {}}}} + +%% xref +\newbibmacro*{cite:xref}{% + \ifciteseen + {\iffieldundef{shorthand} + {\ifuseeditor + {\ifnameundef{labelname} + {}% + {\ifbool{cbx:xrefnoidem} + {\usebibmacro{cite:editor}% + \citenamepunct}% + {\usebibmacro{cite:idem}}}} + {}% + \usebibmacro{cite:title}} + {\usebibmacro{cite:shorthand}}}% + {\ifbool{cbx:xrefnoidem} + {\usebibmacro{cite:fullxref}}% + {\ifbool{bbx:edbyidem} + {\usebibmacro{cite:fullxrefidem}}% + {\usebibmacro{cite:fullxref}}}}}% + +\newbibmacro*{cite:fullxref}{% + \usebibmacro{footref}% + \usedriver + {\ifbool{cbx:option:omitpages} + {\booltrue{cbx:omitpages}} + {}% + \DeclareNameAlias{sortname}{default}} + {xref\thefield{entrytype}}% + \iffieldundef{shorthand} + {} + {\ifbool{cbx:citedas} + {\addspace\usebibmacro{shorthandintro}} + {}}} + +\newbibmacro*{cite:fullxrefidem}{% + \usebibmacro{footref}% + \usedriver + {\ifbool{cbx:option:omitpages} + {\booltrue{cbx:omitpages}} + {}% + \DeclareNameAlias{sortname}{default}% + \clearfield{editor}} + {xrefidem\thefield{entrytype}}% + \iffieldundef{shorthand} + {} + {\ifbool{cbx:citedas} + {\addspace\usebibmacro{shorthandintro}} + {}}}% + +%% falls eine Bibliographie ausgegeben wird, +%% soll kein '(wie Anm. x)' erscheinen +\AtBeginBibliography{% + \renewbibmacro*{cite:xref}{% + \iffieldundef{shorthand}% + {\ifuseeditor + {\ifnameundef{labelname} + {} + {\ifbool{bbx:xrefnoidem}% + {\printnames{labelname}% + \printtext{\labelnamepunct}}% + {\ifbool{bbx:edbyidem} + {\midsentence% + \usebibmacro{cite:idem}}% + {\printnames{labelname}% + \printtext{\labelnamepunct}}}}} + {}% + \iffieldundef{shorttitle}% + {\printfield{title}}% + {\printfield{shorttitle}}% + \ifuseeditor + {} + {\ifbool{cbx:omiteditor} + {} + {\ifnameundef{editor} + {} + {\ifbool{bbx:xrefnoidem}% + {\newunit + \usebibmacro{byeditor}}% + {\ifbool{bbx:edbyidem} + {\newunit + \bibstring{byeditor}% + \setunit{\addspace}% + \bibstring[\mkidem]{idemdat\thefield{gender}}} + {\newunit + \usebibmacro{byeditor}}}}}}}% + {\printtext[bibhyperref]{\printfield{shorthand}}}}} + +\DeclareCiteCommand{\cite}[\mkfootnotecite] + {\usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{cite}} + {\multicitedelim} + {\usebibmacro{cite:postnote}} + +\DeclareCiteCommand{\parencite}[\mkparencite] + {\usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{cite}} + {\multicitedelim} + {\usebibmacro{cite:postnote}} + +\DeclareCiteCommand{\footcite}[\mkfootnotecite] + {\bibsentence + \usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{cite}} + {\multicitedelim} + {\usebibmacro{cite:postnote}} + +\DeclareCiteCommand{\fullcite}[\mkfootnotecite] + {\usebibmacro{prenote}} + {\usedriver + {\ifbool{cbx:option:omitpages} + {\booltrue{cbx:omitpages}} + {}% + \DeclareNameAlias{sortname}{default}} + {\thefield{entrytype}}} + {\multicitedelim} + {\iffieldundef{postnote} + {} + {\ifthenelse{\boolean{cbx:option:herename}\AND\NOT + \(\iffieldundef{pages}\OR + \boolean{cbx:omitpages}\)} + {\global\booltrue{cbx:herename}% + \herenamepunct% + \bibstring{herename}} + {\global\boolfalse{cbx:herename}}% + \usebibmacro{postnote}}} + +\DeclareCiteCommand{\footfullcite}[\mkfootnotecite] + {\bibsentence + \usebibmacro{prenote}} + {\usedriver + {\ifbool{cbx:option:omitpages} + {\booltrue{cbx:omitpages}} + {}% + \DeclareNameAlias{sortname}{default}} + {\thefield{entrytype}}} + {\multicitedelim} + {\iffieldundef{postnote} + {} + {\ifthenelse{\boolean{cbx:option:herename}\AND\NOT + \(\iffieldundef{pages}\OR + \boolean{cbx:omitpages}\)} + {\global\booltrue{cbx:herename}% + \herenamepunct% + \bibstring{herename}} + {\global\boolfalse{cbx:herename}}% + \usebibmacro{postnote}}} + +\DeclareMultiCiteCommand{\cites}[\mkfootnotecite]{\cite}{\multicitedelim} +\DeclareMultiCiteCommand{\parencites}[\mkparencite]{\parencite}{\multicitedelim} +\DeclareMultiCiteCommand{\footcites}[\mkfootnotecite]{\footcite}{\multicitedelim} + +%%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% +%%%%% Unverändert aus verbose-trad1 übernommen %%%%% +%%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% + +\newbool{cbx:loccit} + +\DeclareBibliographyOption{ibidpage}[true]{% + \ifstrequal{#1}{true} + {\renewbibmacro*{cite:ibid:page}{\global\booltrue{cbx:loccit}}} + {\renewbibmacro*{cite:ibid:page}{}}} + +\newbibmacro*{cite:opcit}{% + \printtext[bibhyperlink]{\bibstring[\mkibid]{opcit}}} + +\newbibmacro*{cite:loccit}{% + \printtext{% + \bibhyperlink{cite\@nameuse{cbx:lastcite@\thefield{entrykey}}}{% + \bibstring[\mkibid]{loccit}}}% + \global\booltrue{cbx:loccit}} + +\newbibmacro*{cite:ibid}{% + \printtext{% + \bibhyperlink{cite\@nameuse{cbx:lastcite@\thefield{entrykey}}}{% + \bibstring[\mkibid]{ibidem}}}% + \ifloccit + {\usebibmacro{cite:ibid:page}} + {}} + +\newbibmacro*{cite:ibid:page}{} + +\newbibmacro*{cite:postnote}{% + \ifbool{cbx:loccit} + {} + {\usebibmacro{postnote}}} + +\endinput 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 new file mode 100644 index 00000000000..2258c80549e --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-dw/cbx/standard-dw.cbx @@ -0,0 +1,242 @@ +% standard-dw.cbx, Dominik Waßenhoven 2010 + +\ProvidesFile{standard-dw.cbx}[2010/03/11 v1.3 biblatex citation style] + +\newbool{cbx:authedxref} +\newbool{cbx:citedas} +\newbool{cbx:edstringincitations} +\newbool{cbx:firstfullname} +\newbool{cbx:herename} +\newbool{cbx:idemfull} +\newbool{cbx:noidem} +\newbool{cbx:omiteditor} +\newbool{cbx:omitpages} +\newbool{cbx:option:herename} +\newbool{cbx:option:omitpages} +\newbool{cbx:xrefnoidem} +\newbool{cbx:xrefparent:firstcite} +\newbool{cbx:shorthandibid} + +\DeclareBibliographyOption{citedas}[true]{% + \csuse{bool#1}{cbx:citedas}} +\DeclareBibliographyOption{edstringincitations}[true]{% + \csuse{bool#1}{cbx:edstringincitations}} +\DeclareBibliographyOption{firstfullname}[true]{% + \csuse{bool#1}{cbx:firstfullname}} +\DeclareBibliographyOption{herename}[true]{% + \csuse{bool#1}{cbx:option:herename}} +\DeclareBibliographyOption{omiteditor}[true]{% + \csuse{bool#1}{cbx:omiteditor}} +\DeclareBibliographyOption{omitpages}[true]{% + \csuse{bool#1}{cbx:option:omitpages}} +\DeclareBibliographyOption{shorthandibid}[true]{% + \csuse{bool#1}{cbx:shorthandibid}} + +\DeclareEntryOption{citedas}[true]{% + \csuse{bool#1}{cbx:citedas}} +\DeclareEntryOption{shorthandibid}[true]{% + \csuse{bool#1}{cbx:shorthandibid}} + +\ExecuteBibliographyOptions{ + autocite=footnote, + citedas=true, + citetracker=true, + edstringincitations=true, + herename=true, + ibidtracker=constrict, + idemtracker=constrict, + loccittracker=false, + opcittracker=false, + pagetracker=true, + shorthandibid=true +} + +\InitializeCitationStyle{% + \usebibmacro{cite:reset}} + +\OnManualCitation{% + \usebibmacro{cite:reset}} + +\newbibmacro*{cite:reset}{% + \global\undef\cbx@lasthash% + \global\booltrue{cbx:noidem}} + +\newbibmacro*{cite:save}{% + \savefield{namehash}{\cbx@lasthash}% + \csxdef{cbx:lastcite@\thefield{entrykey}}{\the\value{instcount}}% + \global\boolfalse{cbx:noidem}} + +% Ausschalten von annotation und library für Zitate im Text +\AtEveryCite{% + \boolfalse{bbx:annotation}% + \boolfalse{bbx:library}% +} + +%% Doppelpunkt nach Autoren/Editoren +\newcommand*{\citenamepunct}{\addcolon\space} + +%% Slashes zwischen Autoren/Editoren +\newcommand*{\citerevsdnamedelim}{} +\newcommand*{\citemultinamedelim}{\slash} +\newcommand*{\citefinalnamedelim}{\slash} +\AtEveryCite{% + \let\revsdnamedelim\citerevsdnamedelim + \let\multinamedelim\citemultinamedelim + \let\finalnamedelim\citefinalnamedelim +} +\AtBeginBibliography{% am Anfang des Literaturverzeichnisses umschalten wegen xref + \let\citerevsdnamedelim\bibrevsdnamedelim + \let\citemultinamedelim\bibmultinamedelim + \let\citefinalnamedelim\bibfinalnamedelim +} + +%% Titelformate in Zitaten +\DeclareFieldFormat{citetitle}{#1} +\DeclareFieldFormat[article]{citetitle}{#1} +\DeclareFieldFormat[inbook]{citetitle}{#1} +\DeclareFieldFormat[incollection]{citetitle}{#1} +\DeclareFieldFormat[inproceedings]{citetitle}{#1} +\DeclareFieldFormat[patent]{citetitle}{#1} +\DeclareFieldFormat[thesis]{citetitle}{#1} +\DeclareFieldFormat[unpublished]{citetitle}{#1} +\DeclareFieldFormat{labelyear}{#1}% e.g., the 'a' in '1995a' + +%% herename +\newcommand*{\herenamepunct}{\addcomma\space} + +\newbibmacro*{cite:name}{% + \printnames{labelname}% + \ifbool{cbx:edstringincitations} + {\usebibmacro{cite:editorstrg/translatorstrg}} + {}% + \setunit*{\citenamepunct}} + +\newbibmacro*{cite:idem}{% + \bibstring[\mkidem]{idem\thefield{gender}}% + \ifbool{cbx:edstringincitations} + {\usebibmacro{cite:editorstrg/translatorstrg}} + {}% + \setunit{\citenamepunct}} + +\newbibmacro*{cite:editorstrg/translatorstrg}{% + \ifthenelse{\ifuseeditor\AND\ifnameundef{author}% + \AND\NOT\ifnameundef{editor}} + {\ifdefstring{\bbx@option@editorstring}{brackets}% + {\addspace}% + {\ifdefstring{\bbx@option@editorstring}{parens}% + {\addspace}% + {\addcomma\space}}% + \usebibmacro{editorstrg}% + \clearname{editor}} + {}% + \ifthenelse{\ifusetranslator\AND\ifnameundef{author}% + \AND\ifnameundef{editor}% + \AND\NOT\ifnameundef{translator}} + {\ifdefstring{\bbx@option@editorstring}{brackets}% + {\addspace}% + {\ifdefstring{\bbx@option@editorstring}{parens}% + {\addspace}% + {\addcomma\space}}% + \usebibmacro{translatorstrg}% + \clearname{translator}} + {}} + +\renewbibmacro*{postnote}{% + \iffieldundef{postnote} + {} + {\ifthenelse{\boolean{cbx:herename}\AND\NOT + \boolean{cbx:omitpages}} + {\addspace} + {\postnotedelim}% + \printfield{postnote}}} + +% Option 'nameseen' +\newcommand*{\cbx@seennames}{} +\newrobustcmd*{\cbx@nameseen}[1]{% + \listxadd{\cbx@seennames}{\detokenize{#1}}} +\newrobustcmd*{\cbx@ifnameseen}[1]{% + \xifinlist{\detokenize{#1}}{\cbx@seennames}} + +\AtBeginDocument{% + \ifbool{cbx:firstfullname} + {\DeclareNameFormat{citeauthor}{% + \cbx@ifnameseen{#1#3#5#7} + {\usebibmacro{name:last}{#1}{#3}{#5}{#7}}% + {\usebibmacro{name:first-last}{#1}{#3}{#5}{#7}% + \cbx@nameseen{#1#3#5#7}}% + \usebibmacro{name:andothers}} + \DeclareCiteCommand{\citeauthor} + {\boolfalse{citetracker}% + \boolfalse{pagetracker}% + \usebibmacro{prenote}} + {\indexnames{labelname}% + \printnames[citeauthor]{labelname}} + {\multicitedelim} + {\usebibmacro{postnote}}} + {}} + +%% Formatierung von 'ibidem' entsprechend der Option 'ibidemfont' +\providecommand*{\mkibid}[1]{% + \ifdefstring{\bbx@option@ibidemfont}{smallcaps}% + {\textsc{#1}}% + {\ifdefstring{\bbx@option@ibidemfont}{italic}% + {\textit{#1}} + {\ifdefstring{\bbx@option@ibidemfont}{bold}% + {\textbf{#1}} + {#1}}}} + +%% pages (berücksichtigt die Option 'omitpages') +\newbibmacro*{pages}{% + \ifbool{cbx:omitpages} + {}% keine Seitenzahl bei Vollzitat und omitpages=true + {\setunit{\bibpagespunct}% + \printfield{pages}}} + +\renewbibmacro*{chapter+pages}{% + \printfield{chapter}% + \ifbool{cbx:omitpages} + {}% keine Seitenzahl bei Vollzitat und omitpages=true + {\setunit{\bibpagespunct}% + \printfield{pages}}% + \newunit} + +%% in manchen Literaturverweisen (wenn nicht fullcite) +%% müssen statt der vollen Namen (Format [byeditor]) +%% nur die Nachnamen ausgegeben werden (Format [labelname]) +\newbibmacro*{cite:byeditor}{% + \ifnameundef{editor} + {} + {\bibstring{byeditor}% + \setunit{\addspace}% + \printnames[labelname]{editor}}} + +\newbibmacro*{cite:editor}{% + \ifnameundef{editor} + {} + {\printnames[labelname]{editor}% + \ifbool{cbx:edstringincitations} + {\addspace% + \usebibmacro{editorstrg}} + {\citenamepunct} + \clearname{editor}}} + +%% Test, ob author und editor bei xref identisch sind +%% (für xref=true, useeditor=false, edbyidem=true) +\newbibmacro*{authedxrefcheck}{% + \iffieldundef{xref} + {} + {\savefield{xref}{\bbx@tempa}% + \entrydata{\bbx@tempa}{% + \savename{editor}{\bbx@tempa}}% + \ifnameequals{author}{\bbx@tempa}% + {\booltrue{cbx:authedxref}} + {\boolfalse{cbx:authedxref}}}} + +%% xref +\DeclareCiteCommand{\bbx@xref} + {}% + {\usebibmacro{cite:xref}}% + {}% + {}% + +\endinput |