summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/biblatex-contrib/biblatex-ieee/ieee.bbx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/biblatex-contrib/biblatex-ieee/ieee.bbx')
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-ieee/ieee.bbx25
1 files changed, 18 insertions, 7 deletions
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-ieee/ieee.bbx b/macros/latex/contrib/biblatex-contrib/biblatex-ieee/ieee.bbx
index 6b42a71dba..77a8b6794d 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-ieee/ieee.bbx
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-ieee/ieee.bbx
@@ -8,11 +8,13 @@
%% ---------------------------------------------------------------
%%
-\ProvidesFile{ieee.bbx}[2021/03/25 v1.3e biblatex bibliography style]
+\ProvidesFile{ieee.bbx}[2021/12/06 v1.3f biblatex bibliography style]
% Load the standard style to avoid copy-pasting unnecessary material
\RequireBibliographyStyle{numeric-comp}
+\newbibmacro*{bbx:savehash}{\savefield{fullhash}{\bbx@lasthash}}
+
% An option that carries through from author-year styles
\DeclareBibliographyOption[boolean]{dashed}[true]{%
\ifstrequal{#1}{true}
@@ -26,7 +28,8 @@
minnames = 1,
maxcitenames = 2,
maxbibnames = 6,
- sorting = none
+ sorting = none,
+ dashed = false,
}
\uspunctuation
@@ -43,7 +46,7 @@
\mkpageprefix[bookpagination][\mkpagegrouped]{#1}%
}
\DeclareFieldFormat{sentencecase}{\bbx@colon@search{\MakeSentenceCase*}{#1}}
-\DeclareFieldFormat[book,inbook,incollection,inproceedings]{series}
+\DeclareFieldFormat[incollection,inproceedings]{series}
{\bibstring{jourser}\addnbspace#1}
\DeclareFieldFormat[online,report]{title}{\mkbibquote{#1\isdot}}
\DeclareFieldFormat{url}{\bibstring{url}\addcolon\space\url{#1}}
@@ -84,7 +87,6 @@
% Support for dashed author name replacement
\InitializeBibliographyStyle{\global\undef\bbx@lasthash}
-\newbibmacro*{bbx:savehash}{\savefield{fullhash}{\bbx@lasthash}}
% Bibliography macros
\renewbibmacro*{author}{%
@@ -283,6 +285,16 @@
\printfield{pages}%
}
+\newbibmacro*{series+number(book)}{%
+ \iffieldundef{series}{}
+ {%
+ \setunit{\addspace}%
+ \printtext[parens]{%
+ \printfield{series}%
+ \setunit*{\addspace}%
+ \printfield{number}%
+ \newunit}}}
+
\renewbibmacro*{title}{%
\ifboolexpr{
test {\iffieldundef{title}}
@@ -494,7 +506,7 @@
\usebibmacro{author/editor+others/translator+others}%
\setunit{\labelnamepunct}\newblock
\usebibmacro{maintitle+title}%
- \newunit
+ \usebibmacro{series+number(book)}%
\printlist{language}%
\newunit\newblock
\printfield{edition}%
@@ -505,7 +517,6 @@
\newunit\newblock
\printfield{volumes}%
\newunit\newblock
- \usebibmacro{series+number}%
\setunit{\adddot\addspace}%
\newblock
\usebibmacro{publisher+location+date}%
@@ -548,7 +559,7 @@
\usebibmacro{in:}%
\usebibmacro{bybookauthor}%
\usebibmacro{maintitle+booktitle}%
- \newunit\newblock
+ \usebibmacro{series+number(book)}%
\usebibmacro{byeditor+others}%
\newunit\newblock
\printfield{edition}%