我使用ieee
样式biblatex
来插入我想要的引文
[1,2,6-10]
现在我得到了
[1],[2],[6-10]。
我该如何改变这种情况?
答案1
ieee
您只需使用参考书目的样式,但引用的标准即可numeric-comp
。例如
\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{IEEEexample:bookwitheditor,
editor = "J. C. Candy and G. C. Temes",
title = "Oversampling Delta-Sigma Data Converters Theory,
Design and Simulation",
publisher = "{IEEE} Press.",
location = "New York",
year = "1992"
}
@article{IEEEexample:articlelargepages,
author = "A. Castaldini and A. Cavallini and B. Fraboni
and P. Fernandez and J. Piqueras",
title = "Midgap Traps Related to Compensation Processes in
{CdTe} Alloys",
journaltitle = "Phys. Rev. B.",
volume = "56",
number = "23",
year = "1997",
pages = "14897-14900"
}
@article{IEEEexample:TBPmisc,
author = "M. Coates and A. Hero and R. Nowak and B. Yu",
title = "Internet Tomography",
journaltitle = "IEEE J. Selected Areas Commun.",
month = 05,
year = "2002",
note = "to be published"
}
\end{filecontents*}•
\documentclass{article}
\usepackage[backend=bibtex,bibstyle=ieee,citestyle=numeric-comp]{biblatex}
\bibliography{\jobname}
\begin{document}
\cite{IEEEexample:bookwitheditor, IEEEexample:TBPmisc, IEEEexample:articlelargepages}
\printbibliography
\end{document}
(我添加了一些书目数据纯粹是为了创建一个独立的演示。)
请注意,对于应该括在一起、压缩到一个范围内的引用,您应该\cite
在参数中使用一个命令和逗号形式的键列表。
答案2
请注意,此答案仅适用于非
biblatex
用户,因为biblatex
与软件包不兼容cite
!感谢@moewe 指出这一点。
对我有用的就是添加
\renewcommand\citepunct{, }
序言部分,正如城建网包装文档。
以下是结果的截图
但请注意,我刚刚测试了这一点
\documentclass[10pt,final,journal,compsoc,a4paper]{IEEEtran}