From 5baa8b8ec1df21574547cd1d1bcb43b7e395923f Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 16 Dec 2018 21:52:21 +0000 Subject: biblatex-sbl (16dec18) git-svn-id: svn://tug.org/texlive/trunk@49426 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/biblatex-sbl/sbl.cbx | 76 ++++++++++++++++++++++++ 1 file changed, 76 insertions(+) (limited to 'Master/texmf-dist/tex/latex/biblatex-sbl/sbl.cbx') diff --git a/Master/texmf-dist/tex/latex/biblatex-sbl/sbl.cbx b/Master/texmf-dist/tex/latex/biblatex-sbl/sbl.cbx index 9d15a05e876..bb745ef0b83 100644 --- a/Master/texmf-dist/tex/latex/biblatex-sbl/sbl.cbx +++ b/Master/texmf-dist/tex/latex/biblatex-sbl/sbl.cbx @@ -86,6 +86,29 @@ {\newunit \printfield{pages}}}} +\newbibmacro*{cite:suppresslabelname}{% + \renewbibmacro*{author}{}% + \renewbibmacro*{author+holder}{}% + \renewbibmacro*{editor}{% + \ifboolexpr{ + test \ifuseeditor + and + not test {\ifnameundef{editor}} + } + {\clearname{editor}} + {}}% + \renewbibmacro*{editor+others}{\usebibmacro{editor}}% + \renewbibmacro*{translator}{% + \ifboolexpr{ + test \ifusetranslator + and + not test {\ifnameundef{translator}} + } + {\clearname{translator}} + {}}% + \renewbibmacro*{translator+others}{\usebibmacro{translator}}% +} + \newbibmacro*{bibentrycite}{% \citereset \global\togglefalse{relatedseen}% @@ -166,12 +189,26 @@ {\multicitedelim} {\usebibmacro{cite:postnote}} +\DeclareCiteCommand*{\smartcite}[\iffootnote\mkbibparens\mkbibfootnote] + {\usebibmacro{prenote}} + {\usebibmacro{cite:suppresslabelname}% + \usebibmacro{cite}} + {\multicitedelim} + {\usebibmacro{cite:postnote}} + \DeclareCiteCommand{\cite} {\usebibmacro{prenote}} {\usebibmacro{cite}} {\multicitedelim} {\usebibmacro{cite:postnote}} +\DeclareCiteCommand*{\cite} + {\usebibmacro{prenote}} + {\usebibmacro{cite:suppresslabelname}% + \usebibmacro{cite}} + {\multicitedelim} + {\usebibmacro{cite:postnote}} + \DeclareCiteCommand{\bibentrycite} {} {\usebibmacro{bibentrycite}} @@ -190,18 +227,39 @@ {\multicitedelim} {\usebibmacro{cite:postnote}} +\DeclareCiteCommand*{\parencite}[\mkbibparens] + {\usebibmacro{prenote}} + {\usebibmacro{cite:suppresslabelname}% + \usebibmacro{cite}} + {\multicitedelim} + {\usebibmacro{cite:postnote}} + \DeclareCiteCommand{\footcite}[\mkbibfootnote] {\usebibmacro{prenote}} {\usebibmacro{cite}} {\multicitedelim} {\usebibmacro{cite:postnote}} +\DeclareCiteCommand*{\footcite}[\mkbibfootnote] + {\usebibmacro{prenote}} + {\usebibmacro{cite:suppresslabelname}% + \usebibmacro{cite}} + {\multicitedelim} + {\usebibmacro{cite:postnote}} + \DeclareCiteCommand{\footcitetext}[\mkbibfootnotetext] {\usebibmacro{prenote}} {\usebibmacro{cite}} {\multicitedelim} {\usebibmacro{cite:postnote}} +\DeclareCiteCommand*{\footcitetext}[\mkbibfootnotetext] + {\usebibmacro{prenote}} + {\usebibmacro{cite:suppresslabelname}% + \usebibmacro{cite}} + {\multicitedelim} + {\usebibmacro{cite:postnote}} + \DeclareCiteCommand{\fullcite} {\usebibmacro{prenote}} {\def\blx@shorthand{false}% @@ -210,6 +268,15 @@ {\multicitedelim} {\usebibmacro{cite:postnote}} +\DeclareCiteCommand*{\fullcite} + {\usebibmacro{prenote}} + {\def\blx@shorthand{false}% + \let\ifciteseen\@secondoftwo + \usebibmacro{cite:suppresslabelname}% + \usebibmacro{cite}} + {\multicitedelim} + {\usebibmacro{cite:postnote}} + \DeclareCiteCommand{\footfullcite}[\mkbibfootnote] {\usebibmacro{prenote}} {\def\blx@shorthand{false}% @@ -218,6 +285,15 @@ {\multicitedelim} {\usebibmacro{cite:postnote}} +\DeclareCiteCommand*{\footfullcite}[\mkbibfootnote] + {\usebibmacro{prenote}} + {\def\blx@shorthand{false}% + \let\ifciteseen\@secondoftwo + \usebibmacro{cite:suppresslabelname}% + \usebibmacro{cite}} + {\multicitedelim} + {\usebibmacro{cite:postnote}} + \DeclareCiteCommand{\citeseries} {} {\usebibmacro{shortseries}} -- cgit v1.2.3