使用 gb4e 时无法编译

使用 gb4e 时无法编译

我正在写一篇语言学论文,我读到 gb4e 是一个很棒的包,可以插入带编号的示例。当我使用该包时,程序不再编译。我无法找到为什么我会得到这些答案的答案。

以下是我的序言:

\documentclass[11pt]{article}
\usepackage{graphicx}
\usepackage{tipa}
\usepackage{float}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{cite}
\usepackage{natbib}
\usepackage{apalike}
\usepackage[margin=1in]{geometry}
\usepackage[table]{xcolor}
\usepackage{booktabs}
\usepackage{multicol}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\usepackage[utf8]{inputenc}
\usepackage{textcomp}
\usepackage{lmodern}% http://ctan.org/pkg/lmodern
\usepackage{slantsc}% http://ctan.org/pkg/slantsc
%\usepackage{enumitem}
%\setlist{label*=(\arabic*)}
\usepackage{color,soul}
\usepackage{gb4e}

\DeclareUnicodeCharacter{00A0}{ }

\AtBeginDocument{\renewcommand{\bibname}{References}}

\begin{document}

以下是错误消息:

! Missing \endcsname inserted.
<to be read again>
\let
l.10 \newlabel{chapter2_goals}{{1}{1}}
The control sequence marked <to be read again> should
not appear between \csname and \endcsname.
! TeX capacity exceeded, sorry [parameter stack size=10000].
\gb@ifnextchar #1#2#3->
\let \reserved@d =#1\def \reserved@a {#2}\def \reserv...
l.10 \newlabel{chapter2_goals}{{1}{1}}
If you really absolutely need more capacity,
you can ask a wizard to enlarge me.
Here is how much of TeX's memory you used:
5829 strings out of 493014
78303 string characters out of 6133351
194551 words of memory out of 5000000
9310 multiletter control sequences out of 15000+600000
6558 words of font info for 22 fonts, out of 8000000 for 9000
1141 hyphenation exceptions out of 8191
3340i,0n,10001p,237b,56s stack positions out of 5000i,500n,10000p,200000b,80000s
! ==> Fatal error occurred, no output PDF file produced!

感谢您的帮助

答案1

gb4e重新定义下划线字符。从错误消息来看,某些标签中有下划线,这将导致文档无法编译。因此,请尝试从标签中删除下划线。

或者,您可以通过在加载后立即gb4e添加来停止重新定义下划线字符。\noautomathgb4e

相关内容