% $Id: verbose-trad2.cbx,v 0.8 2008/10/02 17:33:27 lehman beta $ \ProvidesFile{verbose-trad2.cbx} [\blx@cbxid $Id: verbose-trad2.cbx,v 0.8 2008/10/02 17:33:27 lehman beta $] \ExecuteBibliographyOptions{citetracker=context,ibidtracker=constrict, singletitle,autocite=footnote} \providecommand*{\mkibid}[1]{#1} \newbool{cbx:loccit} \DeclareBibliographyOption{ibidpage}[true]{% \ifstrequal{#1}{true} {\ExecuteBibliographyOptions{loccittracker=constrict}} {\ExecuteBibliographyOptions{loccittracker=false}}} \InitializeCitationStyle{% \usebibmacro{cite:reset}} \OnManualCitation{% \usebibmacro{cite:reset}} \newbibmacro*{cite:reset}{% \global\undef\cbx@lasthash} \newbibmacro*{cite:save}{% \savefield{namehash}{\cbx@lasthash}% \csxdef{cbx@lastcite@\thefield{entrykey}}{\the\value{instcount}}} \newbibmacro*{cite}{% \global\boolfalse{cbx:loccit}% \bibhypertarget{cite\the\value{instcount}}{% \ifciteseen {\iffieldundef{shorthand} {\ifciteibid {\usebibmacro{cite:ibid}% \usebibmacro{cite:reset}} {\iffieldequals{namehash}{\cbx@lasthash}% {\usebibmacro{cite:idem}} {\usebibmacro{cite:name}}% \usebibmacro{cite:title}% \usebibmacro{cite:save}}} {\usebibmacro{cite:shorthand}}} {\usebibmacro{cite:full}% \usebibmacro{cite:save}}}} \newbibmacro*{cite:full}{% \printtext[bibhypertarget]{% \usedriver {\DeclareNameAlias{sortname}{default}} {\thefield{entrytype}}}% \usebibmacro{shorthandintro}} \newbibmacro*{cite:name}{% \printnames{labelname}% \setunit*{\addcomma\space}} \newbibmacro*{cite:idem}{% \bibstring[\mkibid]{idem\thefield{gender}}% \setunit{\addcomma\space}} \newbibmacro*{cite:title}{% \ifsingletitle {} {\printfield[citetitle]{labeltitle}% \setunit{\addcomma\space}}% \printtext[bibhyperlink]{\bibstring[\mkibid]{opcit}}} \newbibmacro*{cite:ibid}{% \printtext{% \bibhyperlink{cite\csuse{cbx@lastcite@\thefield{entrykey}}}{% \bibstring[\mkibid]{ibidem}}}% \ifloccit {\global\booltrue{cbx:loccit}} {}} \newbibmacro*{cite:shorthand}{% \printtext[bibhyperlink]{\printfield{shorthand}}} \newbibmacro*{cite:postnote}{% \ifbool{cbx:loccit} {} {\usebibmacro{postnote}}} \DeclareCiteCommand{\cite} {\usebibmacro{prenote}} {\usebibmacro{citeindex}% \usebibmacro{cite}} {\multicitedelim} {\usebibmacro{cite:postnote}} \DeclareCiteCommand{\parencite}[\mkbibparens] {\usebibmacro{prenote}} {\usebibmacro{citeindex}% \usebibmacro{cite}} {\multicitedelim} {\usebibmacro{cite:postnote}} \DeclareCiteCommand{\footcite}[\mkbibfootnote] {\bibsentence \usebibmacro{prenote}} {\usebibmacro{citeindex}% \usebibmacro{cite}} {\multicitedelim} {\usebibmacro{cite:postnote}} \endinput