我的文件中有錯誤.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 程式碼的第一行並重新編譯 3 次。將已使用的軟體包和版本號的清單複製到您的問題中。您將在文件末尾找到此列表log
。