diff options
author | Karl Berry <karl@freefriends.org> | 2020-11-04 21:35:59 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-11-04 21:35:59 +0000 |
commit | ae7d5aae229b75c5160feb04dafec7616262cd0f (patch) | |
tree | 5c6d92a399252435e595078fecf14fee0437aec1 /Master/texmf-dist/tex/latex/biblatex-sbl/sbl.cbx | |
parent | b357cc24b778d47dd7506cb6aff87cfdfc24370e (diff) |
biblatex-sbl (4nov20)
git-svn-id: svn://tug.org/texlive/trunk@56853 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-sbl/sbl.cbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-sbl/sbl.cbx | 116 |
1 files changed, 81 insertions, 35 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-sbl/sbl.cbx b/Master/texmf-dist/tex/latex/biblatex-sbl/sbl.cbx index bb745ef0b83..6e67fb24f4f 100644 --- a/Master/texmf-dist/tex/latex/biblatex-sbl/sbl.cbx +++ b/Master/texmf-dist/tex/latex/biblatex-sbl/sbl.cbx @@ -130,11 +130,23 @@ \sloppy \hangindent 6em\rlap {\printfield[shorthandwidth]{shortjournal}% - \iffieldundef{shorthand} - {\printfield[shorthandwidth]{shortseries}} - {\iffieldsequal{shorthand}{shorttitle} - {\printtext{\mkbibemph{\printfield[shorthandwidth]{shorthand}}}} - {\printfield[shorthandwidth]{shorthand}}}}% + \iffieldsequal{shorthand}{shorttitle} + {\printtext{\mkbibemph{\printfield[shorthandwidth]{shorthand}}}} + {\printfield[shorthandwidth]{shorthand}}% + \ifentrytype{classictext} + {\printfield{shorttitle}} + {}% + \ifboolexpr{ + not test {\iffieldundef{shorthand}} + or + ( + test {\ifentrytype{classictext}} + and + not test {\iffieldundef{shorttitle}} + ) + } + {} + {\printfield{shortseries}}}% \renewcommand*{\bibhypertarget}[2]{##2}% \hskip 6em \setunit{}\usedriver{}{abbreviations}\par } @@ -294,23 +306,50 @@ {\multicitedelim} {\usebibmacro{cite:postnote}} -\DeclareCiteCommand{\citeseries} - {} +\newrobustcmd*{\Citefullauthor}{% + \@ifstar{\bibsentence\citefullauthor*}{\bibsentence\citefullauthor}} + +\DeclareCiteCommand{\citefullauthor} + {\boolfalse{citetracker}% + \boolfalse{pagetracker}% + \usebibmacro{prenote}} + {\ifciteindex + {\indexnames{labelname}} + {}% + \printnames[given-family]{labelname}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\DeclareCiteCommand*{\citefullauthor} + {\boolfalse{citetracker}% + \boolfalse{pagetracker}% + \usebibmacro{prenote}} + {\ifciteindex + {\indexnames{labelname}} + {}% + \printnames[given-family][1-1]{labelname}} + {\multicitedelim} + {\usebibmacro{postnote}} + +% Thanks to @moewe (https://tex.stackexchange.com/a/497548/87678) +\newcommand*{\DeclareNestableCiteCommand}[2]{% + \newcommand*{#1}[1]{% + \blx@xsanitizeafter\blx@nocite@do{##1}% + \blx@ifdata{##1} + {\begingroup + \blx@blxinit + \entrydata{##1}{#2}% + \endgroup} + {\abx@missing@entry{##1}}}} + +\DeclareNestableCiteCommand{\citeseries} {\usebibmacro{shortseries}} - {} - {} -\DeclareCiteCommand{\citejournal} - {} +\DeclareNestableCiteCommand{\citejournal} {\usebibmacro{shortjournal}} - {} - {} -\DeclareCiteCommand{\citeshorthand} - {} +\DeclareNestableCiteCommand{\citeshorthand} {\usebibmacro{shorthand}} - {} - {} \newbibmacro*{textcite}{% \ifnameundef{labelname} @@ -457,9 +496,9 @@ {\let\ifciteseen\@firstoftwo}% \usebibmacro{author}% \newunit - \usebibmacro{shorttitlenohyperlink}% \iffieldequalstr{entrysubtype}{churchfather} - {\setunit{\addspace}% + {\usebibmacro{shorttitlenohyperlink}% + \setunit{\addspace}% \printfield{altpostnote}% \DeclareFieldFormat{related}{\mkbibparens{##1}}% \renewcommand*{\begrelateddelim}{\addspace}% @@ -467,7 +506,8 @@ \usebibmacro{related:init}% \usebibmacro{related}% \global\toggletrue{relatedseen}} - {\clearfield{pages}% + {\usebibmacro{classictexttitle}% + \clearfield{pages}% \usebibmacro{volume+part+postnote}% \usebibmacro{classic:translator+series}}% \usebibmacro{finentry}} @@ -663,11 +703,13 @@ {\usebibmacro{xrefshortmaintitle}% \iffieldundef{volume} {} - {\setunit{\addspace}% - \printfield{volume}% - \setunit*{\addperiod}% - \printfield{part}% - \global\booltrue{usevolpostnotedelim}}} + {\iffieldpages{postnote} + {\setunit{\addspace}% + \printfield{volume}% + \setunit*{\addperiod}% + \printfield{part}% + \global\booltrue{usevolpostnotedelim}} + {}}} {\printfield{note}% \newunit \usebibmacro{xrefshortmaintitle}% @@ -743,11 +785,13 @@ {\usebibmacro{xrefshortmaintitle+xrefshortbooktitle}% \iffieldundef{volume} {} - {\setunit{\addspace}% - \printfield{volume}% - \setunit*{\addperiod}% - \printfield{part}% - \global\booltrue{usevolpostnotedelim}}} + {\iffieldpages{postnote} + {\setunit{\addspace}% + \printfield{volume}% + \setunit*{\addperiod}% + \printfield{part}% + \global\booltrue{usevolpostnotedelim}} + {}}} {\usebibmacro{title}% \newunit \printfield{note}% @@ -773,11 +817,13 @@ {\newunit \iffieldundef{volume} {} - {\newunit - \global\booltrue{usevolpostnotedelim}% - \printfield{volume}% - \setunit*{\addperiod}% - \printfield{part}}} + {\iffieldpages{postnote} + {\newunit + \global\booltrue{usevolpostnotedelim}% + \printfield{volume}% + \setunit*{\addperiod}% + \printfield{part}} + {}}} {\newunit \printfield{note}% \newunit |