diff options
author | Karl Berry <karl@freefriends.org> | 2016-10-15 22:58:34 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-10-15 22:58:34 +0000 |
commit | 20d033ee630eb6f628a29fa51eeb753b1474922f (patch) | |
tree | d6efdd2805fa867c4be532ca0b10618ac4bd4f8a /Master/texmf-dist/tex/latex/biblatex-sbl/sbl.bbx | |
parent | 05ecdc1151efd8d8a94016b2985013b1ef868ce4 (diff) |
biblatex-sbl (11oct16)
git-svn-id: svn://tug.org/texlive/trunk@42278 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-sbl/sbl.bbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-sbl/sbl.bbx | 389 |
1 files changed, 389 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-sbl/sbl.bbx b/Master/texmf-dist/tex/latex/biblatex-sbl/sbl.bbx new file mode 100644 index 00000000000..496bb634416 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-sbl/sbl.bbx @@ -0,0 +1,389 @@ +\blx@inputonce{biblatex-sbl.def}{biblatex-sbl definitions and macros}{}{}{}{} + +\ProvidesFile{sbl.bbx}[\sbl@abx@bbxid] + +\AtBeginBibliography{% + \citereset + \global\undef\bbx@lasthash + \def\abx@str{abx@lstr}% + \def\blx@entryset#1{\bbx@entryset{#1}} + \def\blx@entryset@i#1{\bbx@entryset@i{#1}} + \renewcommand*{\relateddelim}{\addperiod\space} + \renewcommand*{\revsdnamedelim}{\addcomma}% + \DeclareNameAlias{author}{sortname}% + \DeclareNameAlias{editor}{sortname}% + \DeclareNameAlias{translator}{sortname}% + \renewcommand*{\newunitpunct}{\addperiod\space}% + \renewbibmacro{dashcheck}[2]{\usebibmacro{bbx:dashcheck}{#1}{#2}}% + \renewbibmacro*{savehash}{\savefield{fullhash}{\bbx@lasthash}}% + \sloppy +} + +\AtEveryBibitem{% + \global\togglefalse{relatedseen}}% + +\DeclareBibliographyDriver{classictext}{% + \usebibmacro{begentry}% + \DeclareFieldFormat[classictext]{title}{\mkbibemph{##1}}% + \clearfield{related}% + \usedriver{}{incollection}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{ancienttext}{% + \usebibmacro{begentry}% + \iffieldequalstr{entrysubtype}{ANRW} + {\usebibmacro{bibindex}% + \usebibmacro{author/editor+others/translator+others}% + \newunit + \usebibmacro{title}% + \newunit + \entrydata{\thefield{related}}{% + \printtext[title]{% + \bibhyperlink{\strfield{shorthand}}{\thefield{shorthand}}}}% + \setunit{\addspace}% + \usebibmacro{volume+part+pages}% + \newunit + \entrydata{\thefield{related}}{\printfield{titleaddon}}% + \clearfield{pages}% + \setunit{\addcomma\addspace}% + \usebibmacro{volume+part+pages}% + \newunit + \entrydata{\thefield{related}}{\usebibmacro{bymaineditor+others}}% + \usebibmacro{publisher+location+date}% + \newunit} + {\DeclareFieldFormat[ancienttext]{title}{\mkbibemph{##1}}% + \clearfield{related}% + \usedriver{}{book}}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{article}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others/translator+others}% + \newunit + \usebibmacro{title}% + \newunit + \usebibmacro{shortjournal+issuetitle}% + \printfield[plainpages]{pages}% + \newunit + \usebibmacro{releasedate}% + \newunit + \usebibmacro{doi+eprint+url}% + \newunit + \iftoggle{relatedseen} + {} + {\usebibmacro{related:init}% + \usebibmacro{related}}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{book}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \iftoggle{blx@abbrevcite} + {\usebibmacro{title}% + \newunit + \printnames[default]{author}} + {\usebibmacro{author/editor+others/translator+others}% + \newunit + \usebibmacro{title}% + \newunit + \usebibmacro{byauthor}}% + \newunit + \usebibmacro{volume+part}% + \usebibmacro{maintitle}% + \newunit + \usebibmacro{bymaineditor+others}% + \newunit + \printfield{edition}% + \newunit + \printfield{volumes}% + \newunit + \usebibmacro{shortseries+number}% + \newunit + \usebibmacro{publisher+location+date}% + \newunit + \usebibmacro{doi+eprint+url}% + \newunit + \iftoggle{relatedseen} + {} + {\usebibmacro{related:init}% + \usebibmacro{related}}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{suppbook}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others/translator+others}% + \newunit + \printfield{type}% + \setunit{\addspace}% + \usebibmacro{to}% + \usebibmacro{booktitle+maintitle}% + \setunit{\addcomma\addspace}% + \usebibmacro{bybookauthor}% + \newunit + \usebibmacro{byeditor+others}% + \newunit + \printfield{edition}% + \newunit + \printfield{volumes}% + \newunit + \usebibmacro{shortseries+number}% + \newunit% + \usebibmacro{publisher+location+date}% + \newunit + \usebibmacro{doi+eprint+url}% + \iftoggle{relatedseen} + {} + {\usebibmacro{related:init}% + \usebibmacro{related}}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{incommentary}{% + \usebibmacro{begentry}% + \iffieldundef{volume} + {\usedriver{}{incollection}} + {\iftoggle{fullbibrefs} + {\usedriver{}{incollection}} + {\usedriver{}{incommentary:short}}}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{incommentary:short}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others/translator+others}% + \newunit + \usebibmacro{title}% + \newunit + \usebibmacro{xrefshortmaintitle}% + \newunit + \usebibmacro{volume+pages}% + \newunit + \usebibmacro{doi+eprint+url}% + \newunit + \iftoggle{relatedseen} + {} + {\usebibmacro{related:init}% + \usebibmacro{related}}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{incollection}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others/translator+others}% + \newunit + \usebibmacro{title}% + \ifentrytype{bookinbook} + {\newunit + \usebibmacro{byeditor+others}} + {}% + \newunit + \printfield[pagesin]{pages}% + \iffieldundef{booktitle} + {} + {\usebibmacro{booktitle}% + \newunit + \usebibmacro{bybookauthor}% + \newunit + \usebibmacro{bybookeditor+others}% + \newunit} + \usebibmacro{involume+part}% + \usebibmacro{maintitle}% + \newunit + \usebibmacro{bymaineditor+others}% + \newunit + \printfield{edition}% + \newunit + \printfield{volumes}% + \newunit + \usebibmacro{shortseries+number}% + \newunit + \usebibmacro{publisher+location+date}% + \newunit + \usebibmacro{doi+eprint+url}% + \iftoggle{relatedseen} + {} + {\usebibmacro{related:init}% + \usebibmacro{related}}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{inlexicon}{% + \usebibmacro{begentry}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{inreference}{% + \usebibmacro{begentry}% + \iffieldundef{volume} + {\usedriver{}{incollection}} + {\iftoggle{fullbibrefs} + {\usedriver{}{incollection}} + {\usedriver{}{inreference:short}}}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{inreference:short}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \newunit + \usebibmacro{title}% + \newunit + \usebibmacro{xrefshortbooktitle+xrefshortmaintitle}% + \newunit + \usebibmacro{volume+pages}% + \newunit + \usebibmacro{doi+eprint+url}% + \newunit + \iftoggle{relatedseen} + {} + {\usebibmacro{related:init}% + \usebibmacro{related}}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{review}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \newunit + \usebibmacro{title}% + \iffieldundef{title} + {\newunit} + {\setunit{\addcomma\addspace}}% + \usebibmacro{revdtitle}% + \setunit{\addcomma\addspace}% + \usebibmacro{revdauthor/revdeditor}% + \newunit + \usebibmacro{shortjournal+issuetitle}% + \printfield[plainpages]{pages}% + \newunit + \usebibmacro{doi+eprint+url}% + \newunit + \iftoggle{relatedseen} + {} + {\usebibmacro{related:init}% + \usebibmacro{related}}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{seminarpaper}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others/translator+others}% + \newunit + \usebibmacro{title}% + \newunit + \printfield[pagesin]{pages}% + \iffieldundef{booktitle} + {} + {\usebibmacro{booktitle}% + \newunit + \usebibmacro{bybookeditor+others}% + \newunit} + \usebibmacro{involume+part}% + \usebibmacro{maintitle}% + \newunit + \usebibmacro{bymaineditor+others}% + \newunit + \printfield{edition}% + \newunit + \printfield{volumes}% + \newunit + \usebibmacro{shortseries+number}% + \newunit + \usebibmacro{publisher+location+date}% + \newunit + \usebibmacro{doi+eprint+url}% + \newunit + \iftoggle{relatedseen} + {} + {\usebibmacro{related:init}% + \usebibmacro{related}}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{thesis}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author}% + \newunit + \usebibmacro{title}% + \newunit + \printfield{type}% + \setunit{\addcomma\addspace}% + \usebibmacro{institution+location+date}% + \newunit + \usebibmacro{doi+eprint+url}% + \newunit + \iftoggle{relatedseen} + {} + {\usebibmacro{related:init}% + \usebibmacro{related}}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{misc}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others/translator+others}% + \newunit + \usebibmacro{title}% + \newunit + \printfield{note}% + \newunit + \usebibmacro{byauthor}% + \newunit + \usebibmacro{byeditor+others}% + \newunit + \printfield{howpublished}% + \newunit + \usebibmacro{shortseries+number}% + \newunit + \iffieldundef{journaltitle} + {\usebibmacro{publisher+location+date}} + {\usebibmacro{shortjournal+issuetitle}% + \printfield[plainpages]{pages}}% + \newunit + \usebibmacro{doi+eprint+url}% + \newunit + \iftoggle{relatedseen} + {} + {\usebibmacro{related:init}% + \usebibmacro{related}}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{conferencepaper}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author}% + \newunit + \usebibmacro{title}% + \newunit + \usebibmacro{eventtitle}% + \newunit + \printfield{note}% + \newunit + \printfield{organization}% + \newunit + \usebibmacro{venue+eventdate}% + \newunit + \usebibmacro{doi+eprint+url}% + \newunit + \iftoggle{relatedseen} + {} + {\usebibmacro{related:init}% + \usebibmacro{related}}% + \usebibmacro{finentry}% +} + +\endinput |