josephwright / biblatex-ieee

A biblatex implementation of the IEEE bibliography style
LaTeX Project Public License v1.3c
47 stars 14 forks source link

Incorrect citation output with multi-part pages #15

Closed alick closed 11 years ago

alick commented 11 years ago

It seems the biblatex-ieee style does not work incorrectly with multi-part pages field, while the standard numeric-comp works fine.

Examples:

\documentclass{article}
\usepackage{hyperref}
\usepackage[style=ieee]{biblatex}
%\usepackage[style=numeric-comp]{biblatex}
\addbibresource{\jobname.bib}
\usepackage{filecontents}
\begin{document}

\section{Contents}

Shannon's work~\cite{shannon1948}.

\begin{filecontents}{\jobname.bib}
@ARTICLE{shannon1948,
  author = {Shannon, Claude E.},
  title = {A mathematical theory of communication},
  journal = {Bell System Technical Journal},
  year = {1948},
  volume = {27},
  pages = {379--423, 523--656},
  month = jul # "/" # oct,
  date = {1948-07/1948-10},
  url = {http://cm.bell-labs.com/cm/ms/what/shannonday/paper.html}
}
\end{filecontents}

\printbibliography
% Traditional bibtex way.
%\bibliographystyle{IEEEtran}
%\bibliography{IEEEabrv,\jobname}
\end{document}

With biblatex-ieee, we get citation with pp. 379–423, 523656–. It should be pp. 379–423, 523–656 IMO.

josephwright commented 11 years ago

OK, I see where the issue is: it's the code to group digits. I'll have to trace stuff through to fix this. (To me a single entry with multiple pages is odd, but I guess it should work.)

alick commented 11 years ago

On Tue, 15 Oct 2013 12:00:56 -0700, Joseph Wright wrote:

OK, I see where the issue is: it's the code to group digits. I'll have to trace stuff through to fix this. (To me a single entry with multiple pages is odd, but I guess it should work.)

Thanks. Yeah it is rare case, but Shannon's work was published in two parts at first indeed.