获取多个引用;[1-5] 而不是 [1,2,3,4,5]

获取多个引用;[1-5] 而不是 [1,2,3,4,5]

我正在使用该包;

\documentclass[a4paper, twoside, 11pt]{report}
\usepackage[sorting = none, backend = bibtex]{biblatex}
\addbibresource{Refs.bib}

获取我的参考文献。但我想引用多个参考文献,因此看起来像 [1-5],但我只得到 [1,2,3,4,5]。

我必须做什么才能让引用看起来像[1-5]而不是[1,2,3,4,5]?

答案1

看起来你想要这种风格numeric-comp

\documentclass[a4paper]{article}
\usepackage[sorting = none, backend = bibtex, style=numeric-comp]{biblatex}
\addbibresource{biblatex-examples.bib}

\begin{document}
We cite three sources \cite{aristotle:anima, aristotle:physics, aristotle:poetics}.
We then cite one other source \cite{worman}. 
Finally we cite all our sources, but in a different order 
\cite{worman, aristotle:anima,aristotle:poetics, aristotle:physics}

\printbibliography

\end{document}

在此处输入图片描述

答案2

不推荐的方式

我用的是citeBibLaTeX+Biber 时代之前的软件包。我附上了一个例子。

% run: *latex mal-multiple-citations.tex
\documentclass[a4paper,twoside,11pt]{report}
%\usepackage[sorting=none,backend=bibtex]{biblatex}
\usepackage{cite}
\usepackage{filecontents}

% Wikipedia + http://liinwww.ira.uka.de/bibliography/
\begin{filecontents*}{Refs.bib}
@Book{abramowitz+stegun,
 author    = "Milton {Abramowitz} and Irene A. {Stegun}",
 title     = "Handbook of Mathematical Functions with
              Formulas, Graphs, and Mathematical Tables",
 publisher = "Dover",
 year      =  1964,
 address   = "New York",
 edition   = "ninth Dover printing, tenth GPO printing"
  }
@Book{hicks2001,
 author    = "von Hicks, III, Michael",
 title     = "Design of a Carbon Fiber Composite Grid Structure for the GLAST
              Spacecraft Using a Novel Manufacturing Technique",
 publisher = "Stanford Press",
 year      =  2001,
 address   = "Palo Alto",
 edition   = "1st",
 isbn      = "0-69-697269-4"
  }
@Book{Torre2008,
 author    = "Joe Torre and Tom Verducci",
 publisher = "Doubleday",
 title     = "The Yankee Years",
 year      =  2008,
 isbn      = "0385527403"
  }
@Unpublished{shidana,
  title =   "Using Neural Networks to Categorize Bulltin Board
         Message",
  author =  "shidan",
  keywords =    "neural networks",
  scope =   "appl",
  }
@Article{Horne94,
  author =  "Horne",
  title =   "On the Node Complexity of Neural Networks",
  journal = "NNETS: Neural Networks",
  volume =  "7",
  year =    "1994",
}
\end{filecontents*}
%\addbibresource{Refs.bib}

\begin{document}
Text before. \cite{abramowitz+stegun, hicks2001, Torre2008, shidana, Horne94} Text after.
\bibliography{Refs.bib}
\bibliographystyle{plain}
\end{document}

姆韦

相关内容