我一直在各种网站(包括 stackexchange)寻找一种简单的解决方案,让 natbib 在我的 tex 文件中工作,以便使用哈佛参考系统。我只设法让一个参考文献工作,其余的参考文献把我的文档弄得有点乱。
我想要的格式(作者姓氏,年份)并且我的 bib 文件(bibfile.bib)如下所示(至少给出几个例子):
@comment{ Aardvark, T. (2012) China Bans It's Airlines From Taking Part In EU
Emissions Trading Scheme. [online] Available at:
http://toryaardvark.com/2012/02/06/china-bans-its-airlines-from-taking-part-in-eu-emissions-trading-scheme/
[Accessed: 10 Mar 2013]. }
@book{aardvark2013china,
author = "Aardvark, T.",
title = "China Bans It's Airlines From Taking Part In {EU} Emissions Trading Scheme",
publisher = "[online] {Available} at: http://toryaardvark.com/2012/02/06/china- bans-its-airlines-from-taking-part-in-eu-emissions-trading-scheme/ [{Accessed}: 10",
month = mar,
year = 2013"
]}
@comment{ Aef.org.uk (1990) Aviation Environment Federation » Short haul
flights should be “progressively replaced” by rail, says
transport minister. [online] Available at:
http://www.aef.org.uk/?p=803 [Accessed: 10 Mar 2013]. }
@article{aef2013org,
author = "Aef",
title = "org",
journal = "uk",
volume = "10",
month = mar,
year = 2013,
url = "http://www.aef.org.uk/?p=803"
}
我的文件本身有:
\usepackage[numbers]{natbib}
\bibliographystyle{plainnat}
\begin{document}
AEF have been doing so and so \citep{aef2013org} etc.
\bibliography{bibfile}
请帮忙!不断搜索无数网站让我抓狂,而我这周要交两份报告!
答案1
我不确定你是否认为这是一个合适的答案,因为你的问题是“我如何工作natbib
”,而我的回答涉及放弃natbib
将其升级为更现代的版本(几年来没有任何更新)。但话又说回来,你的最终目标是“使用哈佛参考系统”——这很容易做到biblatex,
开箱即用。因此,我建议为此目的使用略有不同的工具...
请考虑以下示例及其输出。注意,我使用了更合适的@online
字段,而不是@book
。
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{filecontents,hyperref}
\usepackage[style=authoryear,backend=biber]{biblatex}
\begin{filecontents}{bibtest.bib}
@online{aardvark2013china,
author = {Aardvark, T.},
title = {China Bans It's Airlines From Taking Part In {EU} Emissions Trading Scheme},
year = {2013},
url = {http://toryaardvark.com/2012/02/06/china-bans-etc/},
urldate = {2013-03-10}
}
@article{aef2013org,
author = {AEF},
title = {Some Title},
journal = {Some Journal},
volume = {10},
number = {3},
year = {2013},
url = {http://www.aef.org.uk/?p=803}
}
\end{filecontents}
\bibliography{bibtest}
\begin{document}
AEF have been doing so and so \parencite{aef2013org}. But \textcite{aardvark2013china} have been etc.
\printbibliography
\end{document}
因此,我的建议是:让我们从那里开始;让我们知道这是否看起来是大致合适的,以及您希望更改哪些细节。例如,如果您更喜欢 »available at« 而不是 »URL«,或 »accessed« 而不是 »visited«,如果您希望每篇在线文章除了 URL 外还标有 »[online]«,如果您想要紫色期刊标题而不是斜体标题——所有这些都非常简单biblatex
,此外,正如提及越早获取帮助,如果需要的话就会容易得多。