% $Id: authortitle-icomp.cbx,v 0.8 2008/10/02 17:33:27 lehman beta $ \ProvidesFile{authortitle-icomp.cbx} [\blx@cbxid $Id: authortitle-icomp.cbx,v 0.8 2008/10/02 17:33:27 lehman beta $] \ExecuteBibliographyOptions{ibidtracker=constrict,pagetracker,sortcites,autocite=footnote} \providecommand*{\mkibid}[1]{#1} \newbool{cbx:parens} \newbool{cbx:loccit} \DeclareBibliographyOption{ibidpage}[true]{% \ifstrequal{#1}{true} {\ExecuteBibliographyOptions{loccittracker=constrict}} {\ExecuteBibliographyOptions{loccittracker=false}}} \newbibmacro*{cite:init}{% \global\let\cbx@tempa=\empty \global\undef\cbx@lasthash \global\boolfalse{cbx:loccit}} \newbibmacro*{cite}{% \iffieldundef{shorthand} {\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage} {\usebibmacro{cite:ibid}} {\iffieldequals{namehash}{\cbx@lasthash} {\gdef\cbx@tempa{\compcitedelim}} {\cbx@tempa \ifnameundef{labelname} {\global\let\cbx@tempa=\empty} {\printnames{labelname}% \gdef\cbx@tempa{\addcomma\space}}% \savefield{namehash}{\cbx@lasthash}}% \usebibmacro{cite:title}}}% {\usebibmacro{cite:shorthand}% \usebibmacro{cite:init}}% \global\let\cbx@tempa=\multicitedelim} \newbibmacro*{citetitle}{% \iffieldundef{shorthand} {\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage} {\usebibmacro{cite:ibid}} {\usebibmacro{cite:title}}}% {\usebibmacro{cite:shorthand}}% \global\let\cbx@tempa=\multicitedelim} \newbibmacro*{textcite}{% \iffieldequals{namehash}{\cbx@lasthash} {\gdef\cbx@tempa{\compcitedelim}} {\cbx@tempa \ifnameundef{labelname} {\global\let\cbx@tempa=\empty} {\printnames{labelname}% \gdef\cbx@tempa{% \global\booltrue{cbx:parens}% \addspace\bibleftparen}}% \savefield{namehash}{\cbx@lasthash}}% \iffieldundef{shorthand} {\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage} {\usebibmacro{cite:ibid}} {\usebibmacro{cite:title}}}% {\usebibmacro{cite:shorthand}}% \gdef\cbx@tempa{% \ifbool{cbx:parens} {\bibrightparen\global\boolfalse{cbx:parens}} {}% \multicitedelim}} \newbibmacro*{cite:title}{% \cbx@tempa \printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}} \newbibmacro*{cite:shorthand}{% \cbx@tempa \printtext[bibhyperref]{\printfield{shorthand}}} \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{cite:init}% \usebibmacro{prenote}} {\usebibmacro{citeindex}% \usebibmacro{cite}} {} {\usebibmacro{cite:postnote}} \DeclareCiteCommand*{\cite} {\usebibmacro{cite:init}% \usebibmacro{prenote}} {\usebibmacro{citeindex}% \usebibmacro{citetitle}} {} {\usebibmacro{cite:postnote}} \DeclareCiteCommand{\parencite}[\mkbibparens] {\usebibmacro{cite:init}% \usebibmacro{prenote}} {\usebibmacro{citeindex}% \usebibmacro{cite}} {} {\usebibmacro{cite:postnote}} \DeclareCiteCommand*{\parencite}[\mkbibparens] {\usebibmacro{cite:init}% \usebibmacro{prenote}} {\usebibmacro{citeindex}% \usebibmacro{citetitle}} {} {\usebibmacro{cite:postnote}} \DeclareCiteCommand{\footcite}[\mkbibfootnote] {\bibsentence \usebibmacro{cite:init}% \usebibmacro{prenote}} {\usebibmacro{citeindex}% \usebibmacro{cite}} {} {\usebibmacro{cite:postnote}} \DeclareCiteCommand{\textcite} {\boolfalse{cbx:parens}% \usebibmacro{cite:init}% \usebibmacro{prenote}} {\usebibmacro{citeindex}% \usebibmacro{textcite}} {} {\iffieldundef{postnote} {\ifbool{cbx:parens} {\bibrightparen} {}} {\ifbool{cbx:parens} {\postnotedelim} {\addspace\bibleftparen}% \printfield{postnote}\bibrightparen}} \endinput