! Missing $ inserted.
<inserted text>
$
l.15 ...vard.edu/hub_feeds/1984/feed_items/207289}
?
以下是我在 BibTeX 中的参考文献:
@online{
Mark10,
author = {Mark Easton},
title = {What is {C}rime?},
date = {2010-06-17},
url = {http://www.bbc.co.uk/blogs/the reporters/markeaston/2010/06/what\_is\_crime.html},
Year={2010}}
@online{
Doha15,
author={UNODC},
title={13th {U}nited {N}ations {C}ongress on {C}rime {P}revention and {C}riminal {J}ustice},
date={2015-03-31},
url={http://www.un.org/en/events/crimecongress2015/pdf/Factsheet\_2\_The\_State\_of\_Crime\_EN.pdf},
Year={2015}}
顺便说一句:我使用了包url
。
答案1
由于您的两个书目条目都包含一个名为 的字段url
,因此我假设您使用的是可以识别此字段的相当现代的书目样式。(此假设排除了较旧的书目样式,例如plain
、unsrt
、alpha
和apalike
。)
如果你使用如下书目样式plainnat
,那么不必要url
“转义” URL 字符串中的下划线字符。相反,请确保加载诸如或 之类的包hyperref
。
\RequirePackage{filecontents}
\begin{filecontents}{mybib.bib}
@online{Mark10,
author = {Mark Easton},
title = {What is {Crime?}},
date = {2010-06-17},
url = {http://www.bbc.co.uk/blogs/the reporters/markeaston/2010/06/what_is_crime.html},
Year = {2010},
}
@online{Doha15,
author ={UNODC},
title ={{13th United Nations Congress on Crime Prevention and Criminal Justice}},
date ={2015-03-31},
url = {http://www.un.org/en/events/crimecongress2015/pdf/Factsheet_2_The_State_of_Crime_EN.pdf},
Year = {2015},
}
\end{filecontents}
\documentclass{article}
\bibliographystyle{plainnat}
\usepackage{natbib}
\usepackage[hyphens,spaces,obeyspaces]{url}
\usepackage[colorlinks,allcolors=blue]{hyperref}
\begin{document}
\nocite{*}
\bibliography{mybib}
\end{document}