1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
%% ---------------------------------------------------------------
%% biblatex-ieee --- A biblatex implementation of the IEEE
%% bibliography style
%% Maintained by Joseph Wright
%% E-mail: joseph.wright@morningstar2.co.uk
%% Released under the LaTeX Project Public License v1.3c or later
%% See http://www.latex-project.org/lppl.txt
%% ---------------------------------------------------------------
%%
\ProvidesFile{ieee.cbx}[2017/03/02 v1.2a biblatex citation style]
\RequireCitationStyle{numeric-comp}
\ExecuteBibliographyOptions{
maxcitenames = 3,
minnames = 3,
sorting = none
}
% Putting brackets around each citation number is a two-part
% operation. First, remove them from around the whole citation by
% redeclaring here.
\DeclareCiteCommand{\cite}%
{\usebibmacro{cite:init}%
\bibopenbracket
\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
\usebibmacro{cite:comp}}
{}
{\usebibmacro{cite:dump}%
\usebibmacro{postnote}%
\bibclosebracket
}
% The second step is to replace \multicitedelim with a version wrapped in
% the appropriate delimiter.
\renewcommand*{\do}[1]{%
\expandafter\patchcmd\expandafter
{\csname abx@macro@\detokenize{#1}\endcsname}%
{\multicitedelim}
{\bibclosebracket\multicitedelim\bibopenbracket}
{}
{%
\PackageError{biblatex-ieee}{Failed to update citation style}\@ehc
}%
}
\docsvlist{cite:comp:comp,cite:comp:end,cite:comp:inset,cite:dump}
% There's also one \bibrangedash to alter.
\expandafter\patchcmd\expandafter
{\csname abx@macro@\detokenize{cite:dump}\endcsname}%
{\bibrangedash}
{\bibclosebracket\bibrangedash\bibopenbracket}
{}
{%
\PackageError{biblatex-ieee}{Failed to update citation style}\@ehc
}%
% More bracket removal required
\DeclareMultiCiteCommand{\cites}{\cite}{\multicitedelim}
%%
%% Copyright (C) 2011-2013,2015-2017 by
%% Joseph Wright <joseph.wright@morningstar2.co.uk>
%%
%% It may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License (LPPL), either version 1.3c of
%% this license or (at your option) any later version. The latest
%% version of this license is in the file:
%%
%% http://www.latex-project.org/lppl.txt
%%
%% This work is "maintained" (as per LPPL maintenance status) by
%% Joseph Wright.
%%
%% This work consists of the files biblatex-ieee.bib,
%% biblatex-ieee.tex,
%% ieee.bbx,
%% ieee.cbx,
%% ieee-alphabetic.bbx and
%% ieee-alphabetic.cbx,
%% and the derived files biblatex-ieee.pdf and
%% biblatex-ieee-alphabetic.pdf.
%%
%%
%% End of file `ieee.cbx'.
|