我曾使用\bibliographystyle{ieeetr}
before as 样式来编写参考书目,但当我想将 URL 添加到文章条目时,ieeetr 样式无法识别该 URL。因此,我更改了样式,这样就plainurl
无法选择连续递增文档中的引用编号。有没有办法在一种样式中同时实现这两个选项或修复它?
目前我正在文档中获取这个引用编号的序列3,1,2
,并且我想要获得1,2,3
。
特克斯代码
\RequirePackage{filecontents}
\begin{filecontents}{bibliography.bib}
@article{recordingData2,
author = {Leon Stenneth and Ouri Wolfson and Philip S. Yu and Bo Xu},
title = {Transportation Mode Detection using Mobile Phones and {GIS} Information},
journal = {ACM DL},
year = {2011},
pages = {3},
}
@misc{waze,
author = {androidcommunity.com},
title = {Waze traffic app updates with {Foursquare} and {Yelp} integration},
howpublished = {\url{http://androidcommunity.com/waze-traffic-app-updates-with-foursquare-and-yelp-integration-20120131/}},
note = {Accessed: 29.09.2015}
}
@article{recordingData,
author = {Rudolf Giffinger},
title = {Smart cities Ranking of {European} medium-sized cities},
journal = {Report of Centre of Regional Science},
year = 2007,
month = "October",
url = {http://www.smart-cities.eu/download/smart_cities_final_report.pdf},
note = "Accessed: Nov.~6, 2015",
pages = {11}
}
\end{filecontents}
\documentclass[
11pt,english,twoside,a4paper,headsepline,footsepline
]{scrbook}
%%\usepackage{a4}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{cite}
\usepackage{color}
\usepackage[hyphens]{url}
\usepackage[bookmarks=true,bookmarksopen=true,
bookmarksnumbered=true,
colorlinks=true,citecolor=black,linkcolor=black
]{hyperref}
\begin{document}
\cite{recordingData2}, \cite{waze}, \cite{recordingData}
\bibliographystyle{plainurl}
\bibliography{bibliography}
\end{document}
答案1
我建议你做两个改变:
不要加载
cite
包;而是natbib
使用该选项加载包numbers
(因为您似乎使用了数字引用标注):\usepackage[numbers]{natbib}
使用
unsrtnat
参考书目样式,而不是样式plainurl
:\bibliographystyle{unsrtnat}
进行这些修改后,请务必再运行 LaTeX、BibTeX 和 LaTeX 两次,以完全传播所有更改。