我正在使用文档类article
,并使用以下内容引用参考:
\bibliographystyle{plain}
\bibliography{MyRef}
文章条目的示例如下:
@ARTICLE{KG:2001,
author = "{Ratnesh Kumar and Vijay K. Garg}",
title = "{some Title}",
journal = "{IEEE Transactions on Automatic Control}",
year = {2001},
volume = {46},
number = {4},
month = "",
pages = {593--606},
publisher = "",
address = ""
}
技术报告条目的示例如下:
@TECHREPORT{E:N:T:Z:2003,
author = "{Sameh Elnikety and Erich Nahum and John Tracey and Willy Zwaenepoel}",
title = "{Some Title}",
type ="",
institution = "",
year = "2003",
month = "",
number = ""
}
诉讼记录条目的示例如下:
@INPROCEEDINGS{H:G:2001,
author = "Kau Hun and Diana Glanen",
title = "{Some title}",
booktitle = "{Proceedings of the First International Workshop}",
series = "Lecture Notes in Computer Science",
volume = "1",
pages = "304--305",
year = "2001",
month="",
location="",
editor = "",
publisher = "Springer-Verlag",
address = "London, UK"
}
包含条目的文件名是MyRef.bib
由于某种原因,参考文献按名字排序,而不是按姓氏排序。由于我有很多 bib 条目,你能告诉我解决这个问题的最快方法是什么吗?
答案1
您需要正确格式化参考书目文件。写作
author = "{xxx yyy and aaa bbb}"
将被解释为一个作者,其名字只是一个姓氏。你应该写
author = {xxx yyy and aaa bbb}
或更好
author = {yyy, xxx and bbb, aaa}
每个名字均以姓氏和名字开头:
@TechReport{E:N:T:Z:2003,
author = {Elnikety, Sameh and Nahum, Erich and Tracey, John
and Zwaenepoel, Willy},
title = {Some Title},
institution = {Some Inst.},
year = 2003
}
@InProceedings{H:G:2001,
author = {Hun, Kau and Glanen, Diana},
title = {Some title},
booktitle = {Proceedings of the First International Workshop},
series = {Lecture Notes in Computer Science},
volume = 1,
pages = {304--305},
year = 2001,
publisher = {Springer-Verlag},
address = {London, UK}
}
@Article{KG:2001,
author = {Kumar Ratnesh and Garg, Vijay K.},
title = {Some Title},
journal = {IEEE Transactions on Automatic Control},
year = 2001,
volume = 46,
number = 4,
pages = {593--606}
}
使用 latex 文件创建
\documentclass{article}
\begin{document}
\nocite{*}
\bibliographystyle{plain}
\bibliography{MyRef}
\end{document}
关于文件语法的非常好的解释bib
可以在驯服野兽。正如 Jospeh Wright 指出的那样,您可以使用"..."
而不是,{...}
但同时使用 as"{...}"
将会对内容进行双引号引用,并导致对您的输入进行不必要的解释。
答案2
首先,您需要确保您的输入符合格式。我发现谷歌学术总是可以提供良好的格式。所以我总是将 bibtex 条目从谷歌学术复制并粘贴到我的 *.bib 文件中。
其次,您需要选择一个特定的包来读取 *.bib 并使用 latex。我使用了“biblatex”。就 biblatex 而言,当您在主文件中包含此包时,您可以控制输出格式。例如:
\usepackage[backend=bibtex,backref,style=authoryear,sorting=nyt,firstinits=true]{biblatex}
\addbibresource{reference.bib}
“样式”控制其在上下文中的外观:这里我选择了作者年份;“排序”控制文献在最终参考书目部分的排序方式:这里我选择了 nyt,它代表“作者姓名 - 年份 - 日期”。
更多有用信息可参见:
https://www.sharelatex.com/learn/Bibliography_management_in_LaTeX#!#Reference_guide