lyx 中的 apacite+natbib:总是出现错误“太多 }”

lyx 中的 apacite+natbib:总是出现错误“太多 }”

我花了几个小时在网上搜索和思考使用apacitenatbib有什么问题lyx(因为我似乎不是唯一一个......)。以下是我所做的:

  • 在设置中 - 已检查文献natbib(作者年份)
  • 在 latex 序言中写道

\usepackage[english]{babel}

\usepackage[natbibapa]{apacite}

我收到以下错误:

with or without a funny code with all kinds of brackets, i always get the error: "Too many }'s"        \let\fi\fi}
                        {}%
You've closed more groups than you opened.
Such booboos are generally harmless, so keep going.

这是 mwe:

\lyxformat 474 
\begin_document 
\begin_header 
\textclass scrbook 
\begin_preamble 
\usepackage[english]{babel} 
\bibpunct{(}{)}{,}{a}{,}{,} 
\usepackage[natbibapa]{apacite} 
\end_preamble 
\use_default_options true 
\maintain_unincluded_children false 
\language american 
\language_package default 
\inputencoding auto 
\fontencoding global ... 
\bibtex_command bibtex 
\index_command default 
\paperfontsize default 
\spacing single 
\use_hyperref false ... 
\cite_engine natbib 
\cite_engine_type authoryear 
\biblio_style apacite 
\use_bibtopic false 
\use_indices false 
\paperorientation portrait

答案1

natbib如果在此之前额外加载,则会出现此错误apacite

\documentclass{book}

\usepackage{natbib}
\usepackage[natbibapa]{apacite} 

\begin{document}
bla
\end{document}

因此不要加载natbib而仅使用\usepackage[natbibapa]{apacite}(这将加载 natbib)。

相关内容