点代替 bibentry

点代替 bibentry

我在使用 BibTeX 时遇到了一些问题,特别是这个 bib 条目:

@Proceedings{un9,
title = {\donothing{i}}{Disarmament, demobilization and reintegration - Report of the Secretary-General},
year = {2006},
address = {New York},
organization = {UNGA [United Nations General Assembly]},
note = {U.N. Doc. A/60/705},
}

在.bbl文件中,它变成:

\bibitem{un9}
{\em \donothing{i}}.

最终打印结果只有一个点。这就是我使用的代码,有什么建议吗?

\documentclass{thesis}

\usepackage{indentfirst}
\usepackage{fancyhdr}
\usepackage{graphicx}
\raggedbottom
\usepackage[a4paper,top=4cm,bottom=4cm,left=3cm,right=3cm]{geometry}
\pagestyle{empty}

\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{textcomp}
\usepackage[utf8]{inputenc}
\usepackage{microtype}
\usepackage{enumitem}

\bibliographystyle{siam}
\usepackage[numbers]{natbib}
\usepackage{chapterbib}
\providecommand*{\donothing}[1]{}

\frenchspacing
\usepackage{setspace}
\onehalfspacing

\usepackage{url}
\urldef\myurl\url{http://www.peacekeepingbestpractices.unlb.org/Pbps/library/Handbook%20on%20UN%20PKOs.pdf}
\urldef\urlhazen\url{http://www.un.org/esa/socdev/sib/egm/paper/Jennifer%20Hazen.pdf}
\urldef\berlinplusurl\url{http://www.consilium.europa.eu/uedocs/cmsUpload/03-11-11%20Berlin%20Plus%20press%20note%20BL.pdf}
\urldef\urlecps\url{http://unrol.org/doc.aspx?d=2117}

\newcommand{\citation}[1]{``#1''}
\makeatletter
\renewcommand\@biblabel[1]{}
\makeatother

\begin{document}
\cleardoublepage
\nocite{*}
\renewcommand\bibsection{\subsection*{UN documents}}
\bibliography{un}
\bibliographystyle{siam}
\end{document}

答案1

这是运行 BibTeX 时的日志:

This is BibTeX, Version 0.99d (TeX Live 2016)
The top-level auxiliary file: un9.aux
The style file: siam.bst
Database file #1: un9.bib
I was expecting a `,' or a `}'---line 2 of file un9.bib
 : title = {\donothing{i}}
 :                        {Disarmament, demobilization and reintegration - Report of the Secretary-General},
I'm skipping whatever remains of this entry
Warning--to sort, need editor, organization, or key in un9
Warning--empty year in un9
(There was 1 error message)

这清楚地表明了问题所在:你在 后面有一个错误的括号\donothing{i}。条目应该是

@Proceedings{un9,
title = {\donothing{i}{Disarmament, demobilization and reintegration - Report of the Secretary-General}},
year = {2006},
address = {New York},
organization = {UNGA [United Nations General Assembly]},
note = {U.N. Doc. A/60/705},
}

删除\newcommand\citation[1]{``#1''}完全错误的。

相关内容