summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-sbl
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-12-13 20:53:38 +0000
committerKarl Berry <karl@freefriends.org>2021-12-13 20:53:38 +0000
commit14d5f409fda09a143e93e1cbad523cbf46060307 (patch)
tree4b27d83ad6b9328067cfc044d55c2afec2b730a9 /Master/texmf-dist/tex/latex/biblatex-sbl
parentf2fef87d1b1a46e5ea63693d33e7a7ec1752956a (diff)
biblatex-sbl (13dec21)
git-svn-id: svn://tug.org/texlive/trunk@61295 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-sbl')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-sbl/biblatex-sbl.def33
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-sbl/sbl.cbx3
2 files changed, 32 insertions, 4 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 0f8ece1b0da..65bc3e8e810 100644
--- a/Master/texmf-dist/tex/latex/biblatex-sbl/biblatex-sbl.def
+++ b/Master/texmf-dist/tex/latex/biblatex-sbl/biblatex-sbl.def
@@ -15,8 +15,8 @@
% VERSION STRINGS
% ------------------------------------------------------------------
-\def\sbl@abx@date{2020/11/04}
-\def\sbl@abx@version{0.12}
+\def\sbl@abx@date{2021/12/13}
+\def\sbl@abx@version{0.13}
\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 (DCP)}
@@ -2682,7 +2682,34 @@
{\printfield{prenote}%
\setunit{\prenotedelim}}}
-\DeclareFieldFormat{altpostnote}{\mkcomprange{#1}}
+% sections and parts of ancient works shouldn't be compressed
+% See SBLHS2 ยง4.2.6
+\DeclareFieldFormat{altpostnote}{\mknormrange{#1}}
+
+% page ranges beginning with a multiple of 100 shouldn't be compressed
+\def\blx@comprange@check#1#2{%
+ \blx@imc@ifinteger{#1}
+ {\blx@imc@ifinteger{#2}
+ {\@firstoftwo}
+ {\@secondoftwo}}
+ {\@secondoftwo}
+ {\blx@tempcnta=#1
+ \divide\blx@tempcnta by 100
+ \multiply\blx@tempcnta by 100
+ \multiply\blx@tempcnta by -1
+ \advance\blx@tempcnta by #1\relax
+ \ifnum\blx@tempcnta=0
+ \blx@normrange@process{#1}{#2}%
+ \else
+ \blx@comprange@comp{#1}{#2}%
+ \fi}
+ {\begingroup
+ \protected@edef\blx@tempc{\endgroup
+ \blx@range@out@value{%
+ \blx@range@out@item@process{\unexpanded{#1}}%
+ \noexpand\bibrangedash
+ \blx@range@out@item@process{\unexpanded{#2}}}}%
+ \blx@tempc}}
% ------------------------------------------------------------------
% BIBLIOGRAPHY REPEATED AUTHOR MACROS
diff --git a/Master/texmf-dist/tex/latex/biblatex-sbl/sbl.cbx b/Master/texmf-dist/tex/latex/biblatex-sbl/sbl.cbx
index 6e67fb24f4f..037ffc9621a 100644
--- a/Master/texmf-dist/tex/latex/biblatex-sbl/sbl.cbx
+++ b/Master/texmf-dist/tex/latex/biblatex-sbl/sbl.cbx
@@ -306,7 +306,8 @@
{\multicitedelim}
{\usebibmacro{cite:postnote}}
-\newrobustcmd*{\Citefullauthor}{%
+\providecommand\Citefullauthor{}
+\renewrobustcmd*{\Citefullauthor}{%
\@ifstar{\bibsentence\citefullauthor*}{\bibsentence\citefullauthor}}
\DeclareCiteCommand{\citefullauthor}