![如何显示书目条目“booktitle”字段的内容?](https://linux22.com/image/382747/%E5%A6%82%E4%BD%95%E6%98%BE%E7%A4%BA%E4%B9%A6%E7%9B%AE%E6%9D%A1%E7%9B%AE%E2%80%9Cbooktitle%E2%80%9D%E5%AD%97%E6%AE%B5%E7%9A%84%E5%86%85%E5%AE%B9%EF%BC%9F.png)
为什么我获取了booktitle
for中的文本却没有Code snippet 1
获取其中写入的文本Code snippet 2
?两者都包含在同一个.bib
文件中。
代码片段1:
@book{article1,
title={Comprehensive experimental analyses of automotive attack surfaces.},
author={Checkoway, Stephen, McCoy and others},
booktitle={USENIX Security Symposium},
year={2011},
organization={USENIX Security Symposium},
}
代码片段2:
@inproceedings{article35,
title={Securing vehicles against cyber attacks},
author={Larson, Ulf E and Nilsson, Dennis K},
booktitle={Proceedings of the 4th annual workshop on Cyber security and information intelligence research: developing strategies to meet the cyber security and information intelligence challenges ahead},
pages={30},
year={2008},
organization={ACM}
答案1
对于我熟悉的所有参考书目样式(包括unsrt
),booktitle
类型为 的条目将忽略该字段@book
。键为 的条目article1
目前存在(至少)两个错误。首先,条目类型几乎肯定应该是 或@inproceedings
,而@incollection
不是@book
。其次,字段中有错误author
。必须使用关键字and
,而不是逗号,来分隔author
字段中的作者。另外,不仅要提供姓氏,还要提供第二作者(McCoy)的名字。BibTeX 将错误的字段Checkoway, Stephen, McCoy
(错误!)解释为表示姓氏为Checkoway
、“初级部分”为Stephen
、名字为 的单个作者McCoy
。哎哟!不要这样做。
以下是我认为改进的条目。bibtex 信息来自https://dl.acm.org/citation.cfm?id=2028073。
请注意,由于您使用的是相当古老的unsrt
书目样式(自 20 世纪 80 年代末以来没有进行过实质性更新),因此url
不会显示字段的内容。如果您想显示url
字段的内容,则应加载natbib
包并使用unsrtnat
书目样式。
\RequirePackage{filecontents}
\begin{filecontents}{mybib.bib}
@inproceedings{Checkoway:2011,
author = {Checkoway, Stephen and McCoy, Damon and Kantor, Brian and Anderson, Danny and Shacham, Hovav and Savage, Stefan and Koscher, Karl and Czeskis, Alexei and Roesner, Franziska and Kohno, Tadayoshi},
title = {Comprehensive Experimental Analyses of Automotive Attack Surfaces},
booktitle = {Proceedings of the 20th USENIX Conference on Security},
series = {SEC'11},
year = {2011},
location = {San Francisco, CA},
pages = {6--6},
numpages = {1},
url = {http://dl.acm.org/citation.cfm?id=2028067.2028073},
acmid = {2028073},
publisher = {USENIX Association},
address = {Berkeley, CA, USA},
}
\end{filecontents}
\documentclass{article}
\bibliographystyle{unsrt}
\begin{document}
\nocite{*}
\bibliography{mybib}
\end{document}