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/authortitle-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/authortitle-dw.cbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-dw/cbx/authortitle-dw.cbx | 369 |
1 files changed, 369 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 |