你好我有三个问题:
1) 如何删除引文上方的两个数字? 2) 如何删除引文前面的数字? 3) 如何使第二行缩进?(启用悬挂缩进)
非常感谢!:) 以下是代码:
你好.bib:
@ARTICLE {anderson,
author = "Anderson, K. and A. Bows",
title = "Philisophical Transactions of the Royal Society A",
journal = {``Beyond 'dangerous' climate change: emission scenarios for a new world ''},
year = {2011},
number = {369:},
pages = {20-33.}
}
@ARTICLE {arrow,
author = "Arrow, K.J.,",
title = "Journal of Political Economy",
journal = {``A Difficulty in the Concept of Social Welfare''},
year = {(August, 1950)},
number = {58(4)},
pages = {328–346}
}
你好.tex:
\documentclass{article}
\begin{document}
\cite{anderson}
\cite{arrow}
\bibliographystyle{plain}
\bibliography{hello}
\end{document}
因此这是输出:
答案1
我不确定,让你做作业是个好主意,所以我只向你展示如何摆脱标签和缩进。
bib
但你的文件中仍有错误我留给你纠正它们真正的家庭作业。查看运行的错误消息和警告bibtex
!
使用\nocite
可以删除文档中的引用标记。使用 样式apalike
或apa
标签会消失,使用\bibhang
可以将缩进设置为零或其他所需的值。filecontents
使用 包可以将bib
文件和 TeX 代码合并为一个文件以供 mwe 使用。
妈妈:
\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@ARTICLE {anderson,
author = "Anderson, K. and A. Bows",
title = "Philisophical Transactions of the Royal Society A",
journal = {``Beyond 'dangerous' climate change: emission scenarios for a new world ''},
year = {2011},
number = {369:},
pages = {20--33.},
}
@ARTICLE {arrow,
author = "Arrow, K.J.,",
title = "Journal of Political Economy",
journal = {``A Difficulty in the Concept of Social Welfare''},
year = {(August, 1950)},
number = {58(4)},
pages = {328-–346},
}
\end{filecontents*}
\documentclass{article}
\usepackage{natbib}
\setlength{\bibhang}{0pt}
\begin{document}
\nocite{*}
\bibliographystyle{apalike} % test both: apa and apalike
\bibliography{\jobname}
\end{document}
结果:
但文件有错误bib
!改正它们!并且请研究我的代码。另请参阅我在文件中所做的小改动bib
。思考一下我为什么这么做。阅读 的文档bibtex
。(在条目 中查找错误的逗号arrow
!)
答案2
bib 文件中确实存在一些错误。其中包括 (i) 两个条目中的journal
和title
字段的内容被颠倒了,(ii)volume
和number
字段的内容没有被分开跟踪,(iii)month
和year
字段的值没有被拆分,以及 (iv) 普通的拼写错误(Philisophical -> Philosophical)。
此外,如果您不想使用数字引文标注样式,则需要指定一种样式(并且可能指定引文管理包的选项,例如natbib
),以便您切换到作者年份引文标注样式。例如,您可能想要研究使用参考书目样式apalike
。
\RequirePackage{filecontents}
\begin{filecontents}{mytest.bib}
@ARTICLE {anderson,
author = "Anderson, K. and A. Bows",
journal = "Philosophical Transactions of the Royal Society~A",
title = {Beyond `dangerous' climate change: emission scenarios for a new world},
year = {2011},
volume = 369,
pages = {20-33}
}
@ARTICLE {arrow,
author = "Arrow, K. J.",
journal = "Journal of Political Economy",
title = "A Difficulty in the Concept of Social Welfare",
year = {1950},
month = "August",
volume = {58},
number = 4,
pages = {328--346}
}
\end{filecontents}
\documentclass{article}
\usepackage[authoryear]{natbib}
\bibliographystyle{apalike}
\begin{document}
\citet{arrow}, \citet{anderson}
\bibliography{mytest}
\end{document}