diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/biblatex-contrib/biblatex-ieee/ieee.cbx |
Initial commit
Diffstat (limited to 'macros/latex/contrib/biblatex-contrib/biblatex-ieee/ieee.cbx')
-rw-r--r-- | macros/latex/contrib/biblatex-contrib/biblatex-ieee/ieee.cbx | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-ieee/ieee.cbx b/macros/latex/contrib/biblatex-contrib/biblatex-ieee/ieee.cbx new file mode 100644 index 0000000000..3d31f8ebdf --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-ieee/ieee.cbx @@ -0,0 +1,88 @@ +%% --------------------------------------------------------------- +%% 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}[2019/06/19 v1.3a 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-2018 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, +%% ieee-alphabetic.cbx and +%% magyar-ieee.lbx, +%% and the derived files biblatex-ieee.pdf and +%% biblatex-ieee-alphabetic.pdf. +%% +%% +%% End of file `ieee.cbx'. |