summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-sbl/sbl.cbx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-sbl/sbl.cbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-sbl/sbl.cbx76
1 files changed, 76 insertions, 0 deletions
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}}