参考书目:.bbl 中 beamer 的 bibitem 错误

参考书目:.bbl 中 beamer 的 bibitem 错误

我的文件中有一个错误.bbl,我就是找不到问题所在。我已经尝试了一段时间,但我真的不知道这意味着什么。这是我的.bbl文件:

\begin{thebibliography}{1}
\providecommand{\natexlab}[1]{#1}
\expandafter\ifx\csname urlstyle\endcsname\relax
  \providecommand{\doi}[1]{doi:\discretionary{}{}{}#1}\else
  \providecommand{\doi}{doi:\discretionary{}{}{}\begingroup
  \urlstyle{rm}\Url}\fi

\bibitem[{\textit{Ackerman}(2008)}]{Ackerman2008}
Ackerman, F. (2008), {Critique of Cost-Benefit Analysis, and Alternative
  Approaches to Decision-Making}, \textit{Friends of the Earth England, Wales
  and Northern Ireland}, \textit{4}(4), 84--100.

\end{thebibliography}

错误是:

Use of \@item doesn't match its definition. ...em[{\textit{Ackerman}(2008)}]{Ackerman2008}

.tex它是根据此文件编译出来的:

\documentclass{beamer}

\mode<presentation>
{
    \usetheme{Warsaw}      
    \usecolortheme{beaver} 
    \usefonttheme{default}  
    \setbeamertemplate{navigation symbols}{}
    \setbeamertemplate{caption}[numbered]
} 

\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{tikz}
\usetikzlibrary{trees}

\usepackage{verbatim}
\usepackage{natbib}                         % BibStyles



\begin{document}



    \begin{frame}{Introduction}{The Guardrail Approach}


        \citep{Ackerman2008}



    \end{frame}

    \begin{frame}{References}
    \vspace{3mm}
    \begin{tiny}

    \bibliographystyle{plainnat}
    \bibliography{Text_test}

    \end{tiny}

    \end{frame}
\end{document}

Text_test.bib

@article{Ackerman2008,
    author = {Ackerman, Frank},
    journal = {Friends of the Earth England, Wales and Northern Ireland},
    number = {4},
    pages = {84--100},
    title = {{Critique of Cost-Benefit Analysis, and Alternative Approaches to Decision-Making}},
    volume = {4},
    year = {2008}
}

顺便说一句,我正在使用 TexStudio。有人知道吗?

答案1

好吧,使用当前版本的 MiKTeX,我可以毫无错误地编译您的代码。

请尝试以下 MWE(包filecontents用于bib在一个 MWE 中编译一个文件和一个 TeX 代码):

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{Ackerman2008,
  author  = {Ackerman, Frank},
  journal = {Friends of the Earth England, Wales and Northern Ireland},
  number  = {4},
  pages   = {84--100},
  title   = {{Critique of Cost-Benefit Analysis, and Alternative Approaches to Decision-Making}},
  volume  = {4},
  year    = {2008},
}
\end{filecontents*}


\documentclass{beamer}

\mode<presentation>
{
  \usetheme{Warsaw}
  \usecolortheme{beaver}
  \usefonttheme{default}
  \setbeamertemplate{navigation symbols}{}
  \setbeamertemplate{caption}[numbered]
}

\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{tikz}
\usetikzlibrary{trees}

\usepackage{verbatim}
\usepackage{natbib}                         % BibStyles


\begin{document}

\begin{frame}{Introduction}{The Guardrail Approach}
  \citep{Ackerman2008}
\end{frame}

\begin{frame}{References}
  \vspace{3mm}
  \begin{tiny}
  \bibliographystyle{plainnat}
  \bibliography{\jobname} % to use the bib file created by filecontents
  \end{tiny}
\end{frame}

\end{document}

根据您之前所做的事情,可能是由于您获得了错误的bbl文件而导致错误。

为确保万无一失,请将我的 MWE 复制到您的计算机中mwe.tex,编译三次并检查结果。它应该显示类似以下内容:

在此处输入图片描述

如果仍然有错误,请将命令添加\listfiles为 TeX 代码的第一行并重新编译三次。将使用的软件包和版本号列表复制到您的问题中。您将在文件末尾找到此列表log

相关内容