[Tex/LaTex] Emulate the numeric style multiple cite, with ieee style in biblatex

biblatexieee-style

I am using the style=ieee in biblatex; however, when it comes to multiple cites, I would like to emulate the style=numeric of biblatex. Consider the MWE:

% rebuild command - bash:
% (shopt -s extglob; rm test.!(tex)) && pdflatex test.tex && biber test && pdflatex test.tex && pdflatex test.tex

\documentclass{book}

\usepackage[colorlinks=true,citecolor=blue]{hyperref}
\usepackage[%
  style=ieee,
%   style=numeric,
  isbn=true,
  doi=false,
  sorting=none,
  url=true,
  defernumbers=true,
  bibencoding=utf8,
  backend=biber
]{biblatex}

\addbibresource{biblatex-examples.bib}
% https://tex.stackexchange.com/questions/74296/to-have-no-pagebreak-before-bibliography
\defbibheading{secbib}[\bibname]{%
  \section*{#1}%
  \markboth{#1}{#1}}

\begin{document}

\noindent
Style is: \makeatletter \texttt{\blx@bbxfile} \makeatother

Testing single \verb!\cite!: \cite{aristotle:poetics}, \cite{augustine}, \cite{aksin}, \cite{angenendt};

Testing multiple \verb!\cite!: \cite{augustine, angenendt, aristotle:poetics, aksin}

Testing \verb!\cites!: \cites{aksin}{augustine}{aristotle:poetics}

\printbibliography[heading=secbib]

\end{document}

The results for ieee vs numeric styles are like this:

test-out.png

As it is visible, in ieee, the output of multiple cites in a single command like \cite{citA,citB...} is compacted to [1]-[2], while the biblatex \cites{citA}{citB}... outputs full citations with square brackets with commas in-between: [1], [2], ....

In contrast, for either of those commands, the numeric style opens a single pair of square brackets, and has the citation indexes inside, separated with a comma [1, 2, ...] (and the ordering of citations kept, related Biblatex, numeric style, multicite: Order of references) – which is what I want to achieve with the ieee style.

What would be a way to achieve this? I wouldn't mind using a custom citation command for this ( I just don't know really where to start ), so I could keep keep the default behavior of \cite and \cites in ieee as-is – but ultimately, any suggestion for a fix is welcome :)

Best Answer

With biblatex it is possible to combine different "style" of bibliography, in particular, you can combine the ieee style to control how the bibliography is printed, and numeric-comp to control the output of cite commands:

What you need is:

\usepackage[%
  bibstyle=ieee,
  citestyle=numeric,
  isbn=true,
  doi=false,
  sorting=none,
  url=true,
  defernumbers=true,
  bibencoding=utf8,
  backend=biber
]{biblatex} 

which produces the following output (with the provided MWE)

enter image description here