我必须使用哈佛参考文献格式来写我的论文,但有一个问题。参考文献列表中没有显示出版商和书籍地址。另外,可以写 edition 而不是 edn. 吗?另外,为什么它不显示(作者姓名,年份),却显示(作者姓名年份)?
.bib 源代码是
@book{thri,
author = {Thirlwal, A. P.},
year = {2011},
title = {Economics of development : theory and evidence},
edition = {9th}
publisher = {Palgrave Macmillan},
address = {New York}
}
论文主体部分包含引用
Firstly, despite the differences, \cite{thri}. commodities’ \cite{thri}{p.71};
\citationstyle{dcu}
\bibliography{essay}
我希望的参考是,
Thirwall,AP(2011)。发展经济学:理论与证据,第 9 版. 纽约:Palgrave Macmillan。
如何添加报价页面?
答案1
使用更适合您需要的参考书目样式。有数千种可供选择。
\documentclass{article}
\begin{filecontents}{\jobname.bib}
@book{thri,
author = {Thirlwal, A. P.},
year = {2011},
title = {Economics of development: theory and evidence},
edition = {9th},
publisher = {Palgrave Macmillan},
address = {New York}
}
@article{ahu61,
author={Arrow, Kenneth J. and Leonid Hurwicz and Hirofumi Uzawa},
title={Constraint qualifications in maximization problems},
journal={Naval Research Logistics Quarterly},
volume={8},
year = {1961},
pages = {175-191}
}
\end{filecontents}
\usepackage[round,authoryear]{natbib}
\begin{document}
Lorem ipsum dolor \citep{ahu61} sit amet, consectetur adipiscing elit.
exports have been raised \citep[p.~42]{thri}.
\bibliographystyle{apalike}
\bibliography{\jobname}
\end{document}
答案2
publisher
缺少和字段的问题address
是由您的 bib 文件中的简单语法错误(缺少逗号)引起的:您需要edition = {9th}
用逗号来终止该行。
如果您希望引文标注显示为(Thirlwal, 2011)
而不是(Thirlwal 2011)
,我建议您 (a) 从harvard
引文管理包更改为natbib
引文管理 以及 (b) 使用\citep
而不是 来\cite
生成引文标注。
如果需要将版本标签“edn”更改为“edition”,我建议您按以下步骤操作:
在你的 TeX 发行版中找到该文件
dcu
。复制此文件,并将副本命名为mydcu.bst
。在文本编辑器中打开文件
mydcu.bst
。你用于 tex 文件的编辑器就可以了。在此文件中,找到名为 的函数
format.edition
。(它应该从第 312 行左右开始。)在此函数中,将两个“edn”实例替换为“edition”。将文件保存
mydcu.bst
在包含主 tex 文件的目录中,或保存在 BibTeX 搜索的目录中。如果选择后者,请务必更新 TeX 发行版的文件名数据库。在您的主 tex 文件中将指令更改
\bibliographystyle{dcu}
为\bibliographystyle{mydcu}
。然后再重新运行 LaTeX、BibTeX 和 LaTeX 两次,以完全传播所有更改。
祝您 BibTeX 愉快!
完整的 MWE:
\RequirePackage{filecontents}
\begin{filecontents}{mybib.bib}
@book{thri,
author = {Thirlwal, A. P.},
year = {2011},
title = {Economics of Development: Theory and Evidence},
edition = {9th},
publisher = {Palgrave Macmillan},
address = {New York}
}
\end{filecontents}
\documentclass{article}
\usepackage{harvard} % or: '\usepackage{natbib,har2nat}'
\bibliographystyle{mydcu}
\begin{document}
\cite{thri}
\bibliography{mybib}
\end{document}
答案3
你想要的几乎是默认的authoryear
风格biblatex
:
\documentclass{article}
\begin{filecontents}{\jobname.bib}
@book{thri,
author = {Thirlwal, A. P.},
year = {2011},
title = {Economics of development: theory and evidence},
edition = {9th},
publisher = {Palgrave Macmillan},
address = {New York}
}
@article{ahu61,
author={Arrow, Kenneth J. and Leonid Hurwicz and Hirofumi Uzawa},
title={Constraint qualifications in maximization problems},
journal={Naval Research Logistics Quarterly},
volume={8},
year = {1961},
pages = {175-191}
}
\end{filecontents}
\usepackage[style=authoryear,backend=biber]{biblatex}
\addbibresource{\jobname.bib}
\begin{document}
Lorem ipsum dolor \parencite{ahu61} sit amet, consectetur adipiscing elit.
exports have been raised \parencite[42]{thri}.
\printbibliography
\end{document}
为了在版本末尾获得单词“edition”,您只需更改字段的格式即可edition
:
\DeclareFieldFormat{edition}{#1\addspace\biblstring{edition}}
更好的解决方案是使用整数值9
而不是序数,9th
并使用类似于默认值的扩展字段格式biblatex
:
\RequirePackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{thri,
author = {Thirlwal, A. P.},
year = {2011},
title = {Economics of development: theory and evidence},
edition = {9},
publisher = {Palgrave Macmillan},
address = {New York}
}
@article{ahu61,
author={Arrow, Kenneth J. and Leonid Hurwicz and Hirofumi Uzawa},
title={Constraint qualifications in maximization problems},
journal={Naval Research Logistics Quarterly},
volume={8},
year = {1961},
pages = {175-191}
}
\end{filecontents}
\usepackage[style=authoryear,backend=biber]{biblatex}
\DeclareLanguageMapping{english}{english-apa}
\addbibresource{\jobname.bib}
\DeclareFieldFormat{edition}{%
\ifinteger{#1}
{\mkbibordedition{#1}~\biblstring{edition}}
{#1\isdot}}
\begin{document}
Lorem ipsum dolor \parencite{ahu61} sit amet, consectetur adipiscing elit.
exports have been raised \parencite[42]{thri}.
\printbibliography
\end{document}