今天我发现了 numeric-comp 样式的一个奇怪行为。由于我使用的是较大的引用列表,因此列表中的引用出现了两次,结果只有第一个引用被引用。
\documentclass{article}
\usepackage[style=numeric-comp,backend=biber]{biblatex}
\addbibresource{biblatex-examples.bib}
\listfiles
\begin{document}
\section{foo}
This works:
\cite{companion,knuth:ct,knuth:ct:a,knuth:ct:b,knuth:ct:c}
This is how to damage it:
\cite{knuth:ct:c,companion,knuth:ct,knuth:ct:a,knuth:ct:b,knuth:ct:c}
\printbibliography
\end{document}
如果我使用第二个 cite 命令,输出不应该也是 [1-5] 吗?
文件列表:
*File List*
article.cls 2007/10/19 v1.4h Standard LaTeX document class
size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
biblatex.sty 2011/11/13 v1.7 programmable bibliographies
etoolbox.sty 2011/01/03 v2.1 e-TeX tools for LaTeX
etex.sty 1998/03/26 v2.0 eTeX basic definition package (PEB)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
logreq.sty 2010/08/04 v1.0 xml request logger
logreq.def 2010/08/04 v1.0 logreq spec v1.0
ifthen.sty 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
url.sty 2006/04/12 ver 3.3 Verb mode for urls, etc.
blx-compat.def 2011/11/13 v1.7 biblatex generic compatibility
biblatex.def 2011/11/13 v1.7 biblatex generic definitions
standard.bbx 2011/11/13 v1.7 biblatex bibliography style
numeric.bbx 2011/11/13 v1.7 biblatex bibliography style
numeric-comp.bbx 2011/11/13 v1.7 biblatex bibliography style
numeric-comp.cbx 2011/11/13 v1.7 biblatex citation style
biblatex.cfg
english.lbx 2011/11/13 v1.7 biblatex localization
problem.bbl
我的系统:
$ uname -a
Linux Artemis 3.11.0-19-generic #33-Ubuntu SMP Tue Mar 11 18:48:34 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
$ dpkg -s texlive-full
Package: texlive-full
Status: install ok installed
Priority: optional
Section: tex
Installed-Size: 90
Maintainer: Ubuntu Developers <[email protected]>
Architecture: all
Source: texlive-base
Version: 2013.20130722-1
...
$ dpkg -s biblatex
Package: biblatex
Status: install ok installed
Priority: extra
Section: tex
Installed-Size: 9392
Maintainer: Ubuntu Developers <[email protected]>
Architecture: all
Version: 1.7-1
Depends: texlive-latex-base, texlive-latex-recommended, texlive-latex-extra, logreq, etoolbox (>= 2.1), dpkg (>= 1.14.18), tex-common (>= 2.00)
Recommends: biber (>= 0.9.6)
Breaks: biblatex-dw (<< 1.2o-1)