You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

LaTeX编译报错:! Extra }, or forgotten \endgroup 问题求助

LaTeX编译错误排查:"! Extra }, or forgotten \endgroup. l.29 }"

错误提示

! Extra }, or forgotten \endgroup. l.29 }

编译的LaTeX代码

\documentclass[12pt]{article}

\usepackage[utf8]{inputenc}
\usepackage{csquotes}
\usepackage[english]{babel}
\usepackage[backend=biber, style=numeric, natbib=true, sorting = none]{biblatex}
\addbibresource{CARRTEL.bib}

\DeclareFieldFormat{urldate}{#1}

\usepackage[nottoc,numbib]{tocbibind}

\usepackage[margin=2.5cm]{geometry}

\newenvironment{sciabstract}{%
\begin{quote} \bf}
{\end{quote}}

\title{Internship report} 

\begin{document} 
\pagenumbering{gobble}
% Double-space the manuscript.

\baselineskip24pt

\maketitle 

\newpage

\tableofcontents

\newpage

\section*{Abstract}

\pagenumbering{arabic}
\addcontentsline{toc}{section}{Abstract}

\section{Introduction}

\subsection{Study site}

Lake Murten, also known as Lake Morat, is located in Switzerland in the Seeland region (the Three Lakes region), nested between the Alps and the Jura mountains on the Swiss Plateau.
It covers an area of 22.8 km$^{2}$ and possesses a volume of 0.55 km$^{3}$. Its surface altitude is 429 meters above sea level. The catchment area is considered to be 693 km$^{2}$. \\
Historically speaking, this region of the Swiss Plateau is rich in archaeological sites covering the last 10000 years.
The very first traces of modern humans living in this area date back to 8,000 years before the Common Era (BCE) \cite{international__swiss_wetzikon_nodate}, but more extensive occupation really started around 4300 BCE \cite{bolliger_archaeological_2020, international_and_swiss_coordination_group_unesco_palafittes_111_nodate, mondial_sites_nodate}.

\addcontentsline{toc}{section}{References}
\printbibliography

\end{document}

引发错误的BibTeX条目

排查发现错误由\cite{international__swiss_wetzikon_nodate}引发,对应bib条目如下:

@online{international__swiss_wetzikon_nodate,
    title = {Wetzikon {\textbar} Robenhausen},
    url = {https://palafittes.org/fundstelle-en.html?sid=220},
    abstract = {Short {DescriptionThe} site at Pfäffiker Lake was discovered in 1858 by Jakob Messikommer, an early pile dwelling researcher. The site is known especially for a wooden door, dated to the Pfyn culture, as well as countless textile artifacts. Many well preserved woven textiles and fishing- and carrying nets were discovered, as well as parts of a Neolithic loom.},
    author = {International {\textbackslash}\& Swiss},
    urldate = {2023-12-08},
    langid = {english},
    file = {Snapshot:C\:\\Users\\Manuel\\Zotero\\storage\\Q9KII9DM\\fundstelle-en.html:text/html},
}

问题原因与解决方法

错误根源在bib条目的author字段:{\textbackslash}\&是错误的转义写法,LaTeX无法正确解析,导致出现多余括号/未闭合组的错误。

修正步骤:

  1. 将author = {International {\textbackslash}\& Swiss}修改为author = {International \& Swiss}
  2. 可选优化:
    • 标题里的{\textbar}可改为\textbar,或者直接用|(LaTeX中\textbar更规范)
    • 摘要里的{DescriptionThe}是导出时的格式错误,可修正为Description: The,让内容更通顺

修改后重新编译(记得运行Biber更新引用),错误即可消除。

内容的提问来源于stack exchange,提问作者MT 74

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.04 06:17:40