diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-sbl/sbl.bbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-sbl/sbl.bbx | 379 |
1 files changed, 290 insertions, 89 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-sbl/sbl.bbx b/Master/texmf-dist/tex/latex/biblatex-sbl/sbl.bbx index 496bb634416..e496901a84c 100644 --- a/Master/texmf-dist/tex/latex/biblatex-sbl/sbl.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-sbl/sbl.bbx @@ -6,8 +6,6 @@ \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}% @@ -20,7 +18,13 @@ } \AtEveryBibitem{% - \global\togglefalse{relatedseen}}% + \global\togglefalse{relatedseen}% + \global\togglefalse{inentrytype}}% + +\DeclareBibliographyDriver{set}{% + \booltrue{bbx@inset}% + \entryset{}{}% + \finentry} \DeclareBibliographyDriver{classictext}{% \usebibmacro{begentry}% @@ -42,14 +46,22 @@ \printtext[title]{% \bibhyperlink{\strfield{shorthand}}{\thefield{shorthand}}}}% \setunit{\addspace}% - \usebibmacro{volume+part+pages}% + \printfield{volume}% + \setunit*{\addperiod}% + \printfield{part}% + \setunit{\volpostnotedelim}% + \usebibmacro{pages}% \newunit \entrydata{\thefield{related}}{\printfield{titleaddon}}% - \clearfield{pages}% \setunit{\addcomma\addspace}% - \usebibmacro{volume+part+pages}% + \printfield{volume}% + \setunit*{\addperiod}% + \printfield{part}% \newunit - \entrydata{\thefield{related}}{\usebibmacro{bymaineditor+others}}% + \entrydata{\thefield{related}} + {\usebibmacro{bymaineditor+others}% + \newunit + \usebibmacro{bymaintranslator+others}}% \usebibmacro{publisher+location+date}% \newunit} {\DeclareFieldFormat[ancienttext]{title}{\mkbibemph{##1}}% @@ -65,14 +77,30 @@ \newunit \usebibmacro{title}% \newunit - \usebibmacro{shortjournal+issuetitle}% - \printfield[plainpages]{pages}% + \usebibmacro{bytranslator+others}% + \newunit + \usebibmacro{inissuetitle}% + \newunit + \printfield{version}% \newunit - \usebibmacro{releasedate}% + \printlist{organization}% + \newunit + \printfield{note}% + \newunit + \usebibmacro{shortjournal+issue}% + \usebibmacro{pages}% + \newunit + \printfield{addendum}% + \newunit + \usebibmacro{issn}% \newunit \usebibmacro{doi+eprint+url}% \newunit - \iftoggle{relatedseen} + \ifboolexpr{ + togl {relatedseen} + or + not togl {bbx:related} + } {} {\usebibmacro{related:init}% \usebibmacro{related}}% @@ -80,6 +108,7 @@ } \DeclareBibliographyDriver{book}{% + \clearfield{booktitle}% \usebibmacro{bibindex}% \usebibmacro{begentry}% \iftoggle{blx@abbrevcite} @@ -88,26 +117,52 @@ \printnames[default]{author}} {\usebibmacro{author/editor+others/translator+others}% \newunit - \usebibmacro{title}% - \newunit - \usebibmacro{byauthor}}% + \usebibmacro{title}}% + \newunit + \usebibmacro{byauthor/byeditor+others/bytranslator+others}% \newunit - \usebibmacro{volume+part}% + \usebibmacro{chapter+pagesin}% + \usebibmacro{volume+partof}% \usebibmacro{maintitle}% \newunit - \usebibmacro{bymaineditor+others}% + \usebibmacro{event+venue+date}% + \newunit + \usebibmacro{bymainauthor/bymaineditor+others/bymaintranslator+others}% \newunit \printfield{edition}% \newunit \printfield{volumes}% \newunit - \usebibmacro{shortseries+number}% + \ifentrytype{report} + {\printfield{type}% + \clearfield{type}% + \setunit*{\addspace}% + \printfield{number}} + {\usebibmacro{shortseries+number}}% + \newunit + \printfield{type}% + \newunit + \printfield{version}% + \newunit + \printfield{note}% \newunit \usebibmacro{publisher+location+date}% \newunit + \usebibmacro{ebook}% + \newunit + \printfield{addendum}% + \newunit + \usebibmacro{isbn}% + \newunit + \usebibmacro{isrn}% + \newunit \usebibmacro{doi+eprint+url}% \newunit - \iftoggle{relatedseen} + \ifboolexpr{ + togl {relatedseen} + or + not togl {bbx:related} + } {} {\usebibmacro{related:init}% \usebibmacro{related}}% @@ -119,25 +174,47 @@ \usebibmacro{begentry}% \usebibmacro{author/editor+others/translator+others}% \newunit - \printfield{type}% - \setunit{\addspace}% - \usebibmacro{to}% - \usebibmacro{booktitle+maintitle}% - \setunit{\addcomma\addspace}% - \usebibmacro{bybookauthor}% + \iffieldundef{type} + {\toggletrue{inentrytype}% + \usebibmacro{title}% + \setunit{\addspace}% + \usebibmacro{in}} + {\printfield{type}% + \usebibmacro{language}% + \setunit{\addspace}% + \usebibmacro{to}}% + \usebibmacro{booktitle}% + \usebibmacro{bybookauthor/bybookeditor+others/bybooktranslator+others}% + \clearfield{booktitle}% \newunit - \usebibmacro{byeditor+others}% + \usebibmacro{chapter+pagesin}% + \usebibmacro{volume+partof}% + \usebibmacro{maintitle}% + \newunit + \usebibmacro{bymainauthor/bymaineditor+others/bymaintranslator+others}% \newunit \printfield{edition}% \newunit \printfield{volumes}% \newunit \usebibmacro{shortseries+number}% + \newunit + \printfield{note}% \newunit% \usebibmacro{publisher+location+date}% \newunit + \usebibmacro{ebook}% + \newunit + \printfield{addendum}% + \newunit + \usebibmacro{isbn}% + \newunit \usebibmacro{doi+eprint+url}% - \iftoggle{relatedseen} + \ifboolexpr{ + togl {relatedseen} + or + not togl {bbx:related} + } {} {\usebibmacro{related:init}% \usebibmacro{related}}% @@ -145,6 +222,7 @@ } \DeclareBibliographyDriver{incommentary}{% + \usebibmacro{bibindex}% \usebibmacro{begentry}% \iffieldundef{volume} {\usedriver{}{incollection}} @@ -157,17 +235,33 @@ \DeclareBibliographyDriver{incommentary:short}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% - \usebibmacro{author/editor+others/translator+others}% + \usebibmacro{author/translator+others}% \newunit \usebibmacro{title}% \newunit + \usebibmacro{byauthor}% + \newunit + \usebibmacro{bytranslator+others}% + \newunit + \printfield{note}% + \newunit \usebibmacro{xrefshortmaintitle}% \newunit \usebibmacro{volume+pages}% \newunit + \usebibmacro{ebook}% + \newunit + \printfield{addendum}% + \newunit + \usebibmacro{isbn}% + \newunit \usebibmacro{doi+eprint+url}% \newunit - \iftoggle{relatedseen} + \ifboolexpr{ + togl {relatedseen} + or + not togl {bbx:related} + } {} {\usebibmacro{related:init}% \usebibmacro{related}}% @@ -175,29 +269,36 @@ } \DeclareBibliographyDriver{incollection}{% + \toggletrue{inentrytype}% \usebibmacro{bibindex}% \usebibmacro{begentry}% \usebibmacro{author/editor+others/translator+others}% \newunit \usebibmacro{title}% - \ifentrytype{bookinbook} - {\newunit - \usebibmacro{byeditor+others}} - {}% \newunit - \printfield[pagesin]{pages}% + \ifentrytype{classictext} + {\usebibmacro{byauthor}% + \newunit + \usebibmacro{bytranslator+others}} + {\usebibmacro{byauthor/byeditor+others/bytranslator+others}}% + \newunit + \usebibmacro{chapter+pagesin}% \iffieldundef{booktitle} {} {\usebibmacro{booktitle}% \newunit - \usebibmacro{bybookauthor}% + \usebibmacro{event+venue+date}% \newunit - \usebibmacro{bybookeditor+others}% - \newunit} - \usebibmacro{involume+part}% - \usebibmacro{maintitle}% - \newunit - \usebibmacro{bymaineditor+others}% + \usebibmacro{bybookauthor/bybookeditor+others/bybooktranslator+others}% + \newunit}% + \usebibmacro{volume+partof}% + \iffieldundef{maintitle} + {} + {\usebibmacro{maintitle}% + \newunit + \usebibmacro{event+venue+date}% + \newunit + \usebibmacro{bymainauthor/bymaineditor+others/bymaintranslator+others}}% \newunit \printfield{edition}% \newunit @@ -205,10 +306,22 @@ \newunit \usebibmacro{shortseries+number}% \newunit + \printfield{note}% + \newunit \usebibmacro{publisher+location+date}% \newunit + \usebibmacro{ebook}% + \newunit + \printfield{addendum}% + \newunit + \usebibmacro{isbn}% + \newunit \usebibmacro{doi+eprint+url}% - \iftoggle{relatedseen} + \ifboolexpr{ + togl {relatedseen} + or + not togl {bbx:related} + } {} {\usebibmacro{related:init}% \usebibmacro{related}}% @@ -221,6 +334,7 @@ } \DeclareBibliographyDriver{inreference}{% + \usebibmacro{bibindex}% \usebibmacro{begentry}% \iffieldundef{volume} {\usedriver{}{incollection}} @@ -237,13 +351,29 @@ \newunit \usebibmacro{title}% \newunit - \usebibmacro{xrefshortbooktitle+xrefshortmaintitle}% + \usebibmacro{byauthor}% + \newunit + \usebibmacro{bytranslator+others}% + \newunit + \printfield{note}% + \newunit + \usebibmacro{xrefshortmaintitle+xrefshortbooktitle}% \newunit \usebibmacro{volume+pages}% \newunit + \usebibmacro{ebook}% + \newunit + \printfield{addendum}% + \newunit + \usebibmacro{isbn}% + \newunit \usebibmacro{doi+eprint+url}% \newunit - \iftoggle{relatedseen} + \ifboolexpr{ + togl {relatedseen} + or + not togl {bbx:related} + } {} {\usebibmacro{related:init}% \usebibmacro{related}}% @@ -255,135 +385,206 @@ \usebibmacro{begentry}% \usebibmacro{author/translator+others}% \newunit - \usebibmacro{title}% \iffieldundef{title} {\newunit} - {\setunit{\addcomma\addspace}}% + {\usebibmacro{title}% + \newunit + \usebibmacro{byauthor}% + \newunit + \usebibmacro{bytranslator+others}% + \setunit{\addcomma\addspace}}% \usebibmacro{revdtitle}% \setunit{\addcomma\addspace}% \usebibmacro{revdauthor/revdeditor}% \newunit - \usebibmacro{shortjournal+issuetitle}% - \printfield[plainpages]{pages}% + \usebibmacro{inissuetitle}% + \newunit + \printfield{version}% + \newunit + \printlist{organization}% + \newunit + \printfield{note}% + \newunit + \usebibmacro{shortjournal+issue}% + \usebibmacro{pages}% + \newunit + \printfield{addendum}% + \newunit + \usebibmacro{issn}% \newunit \usebibmacro{doi+eprint+url}% \newunit - \iftoggle{relatedseen} + \ifboolexpr{ + togl {relatedseen} + or + not togl {bbx:related} + } {} {\usebibmacro{related:init}% \usebibmacro{related}}% \usebibmacro{finentry}% } -\DeclareBibliographyDriver{seminarpaper}{% +\DeclareBibliographyDriver{thesis}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% - \usebibmacro{author/editor+others/translator+others}% + \usebibmacro{author}% \newunit \usebibmacro{title}% \newunit - \printfield[pagesin]{pages}% - \iffieldundef{booktitle} - {} - {\usebibmacro{booktitle}% - \newunit - \usebibmacro{bybookeditor+others}% - \newunit} - \usebibmacro{involume+part}% - \usebibmacro{maintitle}% + \usebibmacro{pagesin}% \newunit - \usebibmacro{bymaineditor+others}% + \printfield{note}% \newunit - \printfield{edition}% + \printfield{type}% + \setunit{\addcomma\addspace}% + \usebibmacro{publisher+location+date}% \newunit - \printfield{volumes}% + \usebibmacro{ebook}% \newunit - \usebibmacro{shortseries+number}% + \printfield{addendum}% \newunit - \usebibmacro{publisher+location+date}% + \printfield{isbn}% \newunit \usebibmacro{doi+eprint+url}% \newunit - \iftoggle{relatedseen} + \ifboolexpr{ + togl {relatedseen} + or + not togl {bbx:related} + } {} {\usebibmacro{related:init}% \usebibmacro{related}}% \usebibmacro{finentry}% } -\DeclareBibliographyDriver{thesis}{% +\DeclareBibliographyDriver{misc}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% - \usebibmacro{author}% + \usebibmacro{author/editor+others/translator+others}% \newunit \usebibmacro{title}% + \usebibmacro{byauthor/byeditor+others/bytranslator+others}% \newunit \printfield{type}% - \setunit{\addcomma\addspace}% - \usebibmacro{institution+location+date}% + \newunit + \printfield{version}% + \newunit + \printfield{note}% + \newunit + \usebibmacro{publisher+location+date}% + \newunit + \usebibmacro{ebook}% + \newunit + \printfield{addendum}% \newunit \usebibmacro{doi+eprint+url}% \newunit - \iftoggle{relatedseen} + \ifboolexpr{ + togl {relatedseen} + or + not togl {bbx:related} + } {} {\usebibmacro{related:init}% \usebibmacro{related}}% \usebibmacro{finentry}% } -\DeclareBibliographyDriver{misc}{% +\DeclareBibliographyDriver{conferencepaper}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% - \usebibmacro{author/editor+others/translator+others}% + \usebibmacro{author}% \newunit \usebibmacro{title}% \newunit \printfield{note}% \newunit - \usebibmacro{byauthor}% + \usebibmacro{eventtitle}% \newunit - \usebibmacro{byeditor+others}% + \printfield{organization}% \newunit - \printfield{howpublished}% + \usebibmacro{venue+eventdate}% \newunit - \usebibmacro{shortseries+number}% + \printfield{addendum}% \newunit - \iffieldundef{journaltitle} - {\usebibmacro{publisher+location+date}} - {\usebibmacro{shortjournal+issuetitle}% - \printfield[plainpages]{pages}}% + \usebibmacro{doi+eprint+url}% + \newunit + \ifboolexpr{ + togl {relatedseen} + or + not togl {bbx:related} + } + {} + {\usebibmacro{related:init}% + \usebibmacro{related}}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{periodical}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{editor+others}% + \newunit + \usebibmacro{issuetitle}% + \usebibmacro{language}% + \newunit + \printfield{note}% + \newunit + \usebibmacro{shortjournal+issue}% + \usebibmacro{pages}% + \newunit + \printfield{addendum}% + \newunit + \usebibmacro{issn}% \newunit \usebibmacro{doi+eprint+url}% \newunit - \iftoggle{relatedseen} + \ifboolexpr{ + togl {relatedseen} + or + not togl {bbx:related} + } {} {\usebibmacro{related:init}% \usebibmacro{related}}% \usebibmacro{finentry}% } -\DeclareBibliographyDriver{conferencepaper}{% +\DeclareBibliographyDriver{patent}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% - \usebibmacro{author}% + \usebibmacro{author+holder}% \newunit \usebibmacro{title}% \newunit - \usebibmacro{eventtitle}% - \newunit \printfield{note}% \newunit - \printfield{organization}% + \printfield{type}% + \setunit*{\addspace}% + \printfield{number}% + \iflistundef{location} + {} + {\setunit*{\addspace}% + \printtext[parens]{\printlist{location}}}% + \setunit{\addcomma\space}% + \printfield{version}% + \setunit{\addcomma\space}% + \usebibmacro{patentdate}% \newunit - \usebibmacro{venue+eventdate}% + \printfield{addendum}% \newunit \usebibmacro{doi+eprint+url}% \newunit - \iftoggle{relatedseen} + \ifboolexpr{ + togl {relatedseen} + or + not togl {bbx:related} + } {} {\usebibmacro{related:init}% \usebibmacro{related}}% \usebibmacro{finentry}% } - \endinput |