我想阻止我的 *.bbx 文件强制引用:
[1-5]
但我希望引用的论文显示为:
[1,2,3,4,5]
我找到了各种答案,但它们主要指出要改变样式。这不适用于我的情况,因为我创建了自己的样式。因此,我的问题是:样式文件中的哪个命令负责引用论文的外观以及如何修改它?谢谢。
我对 biblatex 使用以下设置:
\usepackage[
natbib=true,
backend=biber,
sorting=none,
style=mine,
date=year,
giveninits=true,
url=false,
citestyle=numeric-comp,
maxbibnames=10]{biblatex}
答案1
只需使用citestyle=numeric
而不是citestyle=numeric-comp
:
\documentclass{article}
\begin{filecontents}{\jobname.bib}
@ARTICLE{smit54,
AUTHOR = {J. G. Smith and H. K. Weston},
TITLE = {Nothing Particular in this Year's History},
YEAR = {1954},
JOURNAL = {J. Geophys. Res.},
VOLUME = {2},
PAGES = {14-15}
}
@BOOK{colu92,
AUTHOR = {Christopher Columbus},
TITLE = {How {I} Discovered {America}},
YEAR = {1492},
PUBLISHER = {Hispanic Press},
ADDRESS = {Barcelona}
}
@ARTICLE{gree00,
AUTHOR = {R. J. Green and U. P. Fred and W. P. Norbert},
TITLE = {Things that Go Bump in the Night},
YEAR = {1900},
JOURNAL = {Psych. Today},
VOLUME = {46},
PAGES = {345-678}
}
\end{filecontents}
\usepackage[%
natbib=true,
backend=biber,
sorting=none,
% bibstyle=mine, % good suggestion by @moewe; uncomment this line in your document
citestyle=numeric,
date=year,
giveninits=true,
url=false,
maxbibnames=10
]{biblatex}
\addbibresource{\jobname.bib}
\begin{document}
\section{First section}
\cite{smit54,colu92,gree00}
\printbibliography
\end{document}