summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-sbl/biblatex-sbl.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-sbl/biblatex-sbl.def')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-sbl/biblatex-sbl.def47
1 files changed, 39 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-sbl/biblatex-sbl.def b/Master/texmf-dist/tex/latex/biblatex-sbl/biblatex-sbl.def
index 99c1fab599f..b7cfe74ca19 100644
--- a/Master/texmf-dist/tex/latex/biblatex-sbl/biblatex-sbl.def
+++ b/Master/texmf-dist/tex/latex/biblatex-sbl/biblatex-sbl.def
@@ -15,13 +15,33 @@
% VERSION STRINGS
% ------------------------------------------------------------------
-\def\sbl@abx@date{2018/05/20}
-\def\sbl@abx@version{0.9}
+\def\sbl@abx@date{2018/05/24}
+\def\sbl@abx@version{0.10}
\def\sbl@abx@bbxid{\sbl@abx@date\space v\sbl@abx@version\space biblatex-sbl bibliography style (DCP)}
\def\sbl@abx@cbxid{\sbl@abx@date\space v\sbl@abx@version\space biblatex-sbl citation style (DCP)}
-\def\sbl@abx@lbxid{\sbl@abx@date\space v\sbl@abx@version\space biblatex-sbl localization}
+\def\sbl@abx@lbxid{\sbl@abx@date\space v\sbl@abx@version\space biblatex-sbl localization (DCP)}
\def\sbl@abx@defid{\sbl@abx@date\space v\sbl@abx@version\space biblatex-sbl definitions and macros (DCP)}
+\def\printsblversion{\sbl@abx@version\space
+ \expandafter\xprintsbldateiso\sbl@abx@date\relax}
+\def\printsbldate{\expandafter\xprintsbldateau\sbl@abx@date\relax}
+\def\xprintsbldateiso#1/#2/#3\relax{%
+ #1-%
+ \ifblank{#2}
+ {\kern 1pt-}
+ {#2-#3}}
+\def\xprintsbldateau#1/#2/#3\relax{%
+ \ifblank{#2}
+ {}
+ {\ifblank{#3}
+ {}
+ {\ifcase#3 \or
+ 1\or 2\or 3\or 4\or 5\or 6\or 7\or 8\or 9\else#3\fi\space}%
+ \ifcase#2 \or
+ January\or February\or March\or April\or May\or June\or July\or
+ August\or September\or October\or November\or December\fi\space}%
+ #1}
+
\ProvidesFile{biblatex-sbl.def}[\sbl@abx@defid]
% ------------------------------------------------------------------
@@ -284,6 +304,10 @@
{\ExecuteBibliographyOptions{loccittracker=true}}
{\ExecuteBibliographyOptions{loccittracker=false}}}
+\newtoggle{blx@dashed}
+\DeclareBibliographyOption{dashed}[true]{%
+ \settoggle{blx@dashed}{#1}}
+
\ExecuteBibliographyOptions{%
citetracker,
punctfont,
@@ -310,6 +334,7 @@
useseries,
accessdate=false,
shorthand=true,
+ dashed=true,
language=american
}
@@ -373,7 +398,7 @@
\DeclareFieldFormat{doi}{%
\printtext{doi}\addcolon
\ifhyperref
- {\href{http://dx.doi.org/#1}{\nolinkurl{#1}}}
+ {\href{https://dx.doi.org/#1}{\nolinkurl{#1}}}
{\nolinkurl{#1}}}
\DeclareFieldFormat{edition}{%
\ifinteger{#1}
@@ -398,7 +423,7 @@
\newunitpunct
arXiv\addcolon\space
\ifhyperref
- {\href{http://arxiv.org/\abx@arxivpath/#1}{%
+ {\href{https://arxiv.org/\abx@arxivpath/#1}{%
\nolinkurl{#1}%
\iffieldundef{eprintclass}
{}
@@ -699,8 +724,7 @@
{\iffieldundef{shortseries}
{}
{\bibhypertarget{\strfield{shortseries}}{}%
- \printfield{series}}
- }
+ \printfield{series}}}
{\bibhypertarget{\strfield{shorthand}}{}%
\iffieldsequal{shorthand}{shorttitle}
{\toggletrue{blx@abbrevcite}}
@@ -2398,7 +2422,13 @@
\ifbool{usevolpostnotedelim}
{\setunit{\volpostnotedelim}}
{\setunit{\postnotedelim}}%
- \usebibmacro{postnote}%
+ \ifboolexpr{
+ test {\ifciteseen}
+ or
+ test {\iffieldundef{pages}}
+ }
+ {\printfield{postnote}}
+ {\usebibmacro{pages}}%
\global\booltrue{suppresspostnote}}
\newbibmacro*{classic:translator+series}{%
@@ -2479,6 +2509,7 @@
or
test {\iffieldequalstr{entrysetcount}{1}}
)
+ and togl {blx@dashed}
}
{#1}
{#2}}