我想使用 biblatex 的 numeric-comp 样式来生成 [1-3] 之类的引用。不幸的是,我得到的只有 [1, 2, 3]。有什么想法可能是什么问题吗?
最小的 tex 文件是:
\documentclass{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[backend=biber,bibstyle=numeric-comp]{biblatex}
\addbibresource{literature.bib}
\begin{document}
MadAnalysis \cite{madanalysis2013, madanalysis2014, madanalysis2015}
\end{document}
我的(精简版)参考书目如下:
@article{madanalysis2013,
author = {E. Conte and B. Fuks and G. Serret},
title = {MadAnalysis~5, a user-friendly framework for collider phenomenology},
journal = {Comput. Phys. Commun.},
year = {2013},
volume = {184},
number = {1}
}
@article{madanalysis2014,
author = {E. Conte and B. Dumont and B. Fuks and C. Wymant},
title = {Designing and recasting LHC analyses with MadAnalysis~5},
journal = {Eur. Phys. J. C},
year = {2014},
volume = {74},
number = {10}
}
@article{madanalysis2015,
author = {B. Dumont and B. Fuks and S. Kraml and S. Bein and Weitere},
title = {Toward a public analysis database for LHC new physics searches using MADANALYSIS~5},
journal = {Eur. Phys. J. C},
year = {2015},
volume = {75},
number = {2}
}
但是运行 pdflatex、biber、pdflatex(Texlive 2015、Biber 2.1)仅会产生:
答案1
它仅作为选项来自写作bibstyle=numeric-comp
。如果您还想压缩引文,则必须添加citestyle=numeric-comp
,或者更好的是,如果您希望两者兼而有之,只需添加style=numeric-comp
。