Closed koppor closed 3 months ago
The compression is a bit complex (in the core styles this is covered by separate numeric
and numeric-comp
citations styles), so an option might not work. It's certainly doable to turn it off: the question is whether you also want the square brackets around each number or whether you can just use
\usepackage[bibstyle=ieee,citestyle=numeric]{biblatex}
(this will be sorted but not compressed but won't add brackets around each number).
I've had a look at this, and I'm pretty sure I've got a solution that doesn't need additional files but only a few tweaks in relevant document preambles
\usepackage[style=ieee,backend=biber,citestyle=numeric]{biblatex}
\DeclareCiteCommand{\cite}
{\bibopenbracket\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
\usebibmacro{cite}}
{\multicitedelim}
{\usebibmacro{postnote}\bibclosebracket}
\renewcommand*\multicitedelim{\bibclosebracket\addcomma \space\bibopenbracket}
If that sounds OK I'll update the documentation: I'm also going to use this simplified approach for the main settings (the current version is rather complex for what I now suspect is no good reason!).
There's one thing I'm not clear on here (which affects how best to fix it): how the output of the last citation (\cite{kowalik,loh,almendro}
) should look. Single numbers presumably run into text, but multiple numbers without compression will look rather odd unless separated by commas (at least to me). I'm of course happy to do the latter if it's what's required, but want to be sure (I've been doing some tests).
It works well, thank you for posting this. (@^_^@)
腾讯官方:您的信件已被成功接收~
The IEEETran package documentation states follows:
On tex.sx I read, that the "style includes code for the compression".
For instance, when inputting following
the output is as follows:
First, I thought, I would expect
or even
The output from the tex.sx example is
Maybe, that example is artificial.
Is it possible, to turn off the compression somehow?