Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % thselstal.cbx aus: authortitle-dw.cbx, Dominik Waßenhoven 2010
- \ProvidesFile{thselstal.cbx}[2010/01/24 v1.2n biblatex citation style]
- \newbool{cbx:citedas}
- \newbool{cbx:edstringincitations}
- \newbool{cbx:firstfullname}
- \newbool{cbx:herename}
- \newbool{cbx:noidem}
- \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{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,
- %by Berta
- loccittracker=true,
- %opcittracker=true,
- %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
- % überprüfen, ob volume bei parent vorhanden (wird nur bei xref=true durchgeführt)
- \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
- }
- %% 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}
- %% Liste mit zitierten Werken zum späteren Auslesen durch
- %% ein child bei xref=true
- \newbibmacro*{xrefparent:cited}{%
- \xifinlistcs{\strfield{entrykey}}{xrefparent:cited}
- {}
- {\listcsxadd{xrefparent:cited}{\thefield{entrykey}}}}
- %% xref
- \DeclareCiteCommand{\bbx@xref}
- {}%
- {\usebibmacro{cite:xref}}%
- {}%
- {}%
- %\endinput
- \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}%
- \usebibmacro{cite:save}}}}%
- {\ifbool{cbx:shorthandibid}%
- {\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}%
- {\usebibmacro{cite:ibid}}
- {\usebibmacro{cite:shorthand}}}%
- {\usebibmacro{cite:shorthand}}}}
- \newbibmacro*{cite:firstfull}{%
- \usebibmacro{xrefparent:cited}%
- \ifthenelse{\ifciteidem\AND\NOT\boolean{cbx:noidem}%
- \AND\NOT\iffirstonpage}
- {\usebibmacro{cite:idem}%
- \printtext[bibhyperref]{\usebibmacro{cite: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:idemfull}{%
- \usedriver
- {\ifbool{cbx:option:omitpages}
- {\global\booltrue{cbx:omitpages}}
- {}%
- \DeclareNameAlias{sortname}{default}}
- {idem\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}
- {\ifnameundef{labelname}
- {}%
- {\ifbool{cbx:xrefnoidem}
- {\printnames{labelname}%
- \citenamepunct}%
- {\usebibmacro{cite:idem}}}%
- \usebibmacro{cite:title}}%
- {\usebibmacro{cite:shorthand}}}%
- {\usebibmacro{xrefparent:cited}%
- \ifbool{cbx:xrefnoidem}
- {\usebibmacro{cite:fullxref}}%
- {\ifbool{bbx:edbyidem}
- {\usebibmacro{cite:fullxrefidem}}%
- {\usebibmacro{cite:fullxref}}}}}%
- {\iffieldundef{shorthand}
- {\ifnameundef{labelname}
- {}%
- {\ifbool{cbx:xrefnoidem}
- {\printnames{labelname}%
- \citenamepunct}%
- {\ifbool{bbx:edbyidem}
- {\usebibmacro{cite:idem}}%
- {\printnames{labelname}%
- \citenamepunct}}}%
- \usebibmacro{cite:title}}%
- {\usebibmacro{cite:shorthand}}}}
- \AtBeginBibliography{%
- \renewbibmacro*{cite:xref}{%
- \iffieldundef{shorthand}%
- {\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}}}%
- {\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}}
- {\usebibmacro{xrefparent:cited}%
- \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}}
- {\usebibmacro{xrefparent:cited}%
- \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\boolflase{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}}}
- %by Berta. Das folgende Macro ist das Original.
- %\newbibmacro*{cite:ibid}{%
- % \cbx@tempa
- % \printtext[bibhyperref]{\bibstring[\mkibid]{ibidem}}%
- % \ifloccit
- % {\global\booltrue{cbx:loccit}}
- % {}}
- % Die Option [bibhyperref] von \printtext macht aus dem Text einen Link ins Literaturverzeichnis. Leider führt die Option jedoch auch dazu, dass der Text nicht mehr automatisch groß geschrieben wird.
- \newbibmacro*{cite:ibid}{%
- \ifloccit{%
- \cbx@tempa
- \printtext[bibhyperref]{\bibstring[\mkibid]{ibidem}}
- \global\booltrue{cbx:loccit}}%
- {\printtext[bibhyperref]{\bibstring{opcit}}}}
- \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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement