TeX 容量超出,抱歉 [输入堆栈大小=5000] Babel ngerman

TeX 容量超出,抱歉 [输入堆栈大小=5000] Babel ngerman

我的 latex 文档出现错误。如果我输入

\usepackage[ngerman,german]{babel}

进入我的头文件,我得到以下日志:

...
)
\babel@savecnt=\count89
\U@D=\dimen104
)
! TeX capacity exceeded, sorry [input stack size=5000].
<inserted text> 
                U
l.41 ...Init\CurrentOption{captions\CurrentOption}

If you really absolutely need more capacity,
you can ask a wizard to enlarge me.

我需要这个库,用于不同的语言设置,并且我的硕士论文的布局应该是固定的。

有没有什么办法可以解决这个错误?

最小示例:

\documentclass[pdftex,a4paper,12pt,DIV=15,BCOR=20mm,parskip=half,numbers=noenddot]{scrbook}
\usepackage{german, ngerman} %Deutsche Trennungen, Anführungsstriche und mehr
\usepackage[ngerman, german]{babel} % dt. Sprache laden (u.a. auch Ausgabe feststehender Begriffe in deutsch wie etwa Inhaltsverzeichnis statt table of contents)
\begin{document}

\section*{Notes for My Paper}

Don't forget to include examples of topicalization.
They look like this:

{\small
\enumsentence{Topicalization from sentential subject:\\ 
\shortex{7}{a John$_i$ [a & kltukl & [el & 
  {\bf l-}oltoir & er & ngii$_i$ & a Mary]]}
{ & {\bf R-}clear & {\sc comp} & 
  {\bf IR}.{\sc 3s}-love   & P & him & }
{John, (it's) clear that Mary loves (him).}}
}

\subsection*{How to handle topicalization}

I'll just assume a tree structure like (\ex{1}).

{\small
\enumsentence{Structure of A$'$ Projections:\\ [2ex]
\begin{tabular}[t]{cccc}
    & \node{i}{CP}\\ [2ex]
    \node{ii}{Spec} &   &\node{iii}{C$'$}\\ [2ex]
        &\node{iv}{C} & & \node{v}{SAgrP}
\end{tabular}
\nodeconnect{i}{ii}
\nodeconnect{i}{iii}
\nodeconnect{iii}{iv}
\nodeconnect{iii}{v}
}
}

\subsection*{Mood}

Mood changes when there is a topic, as well as when
there is WH-movement.  \emph{Irrealis} is the mood when
there is a non-subject topic or WH-phrase in Comp.
\emph{Realis} is the mood when there is a subject topic
or WH-phrase.

\end{document}

答案1

我认为,使用babel软件包就足够了,不需要\usepackage{german,ngerman}(这两个软件包都在过时软件包列表中https://tex.stackexchange.com/a/26200/36296)。该babel包还支持连字符等。对于引号,我建议手动输入或使用该csquotes包。

\documentclass[pdftex,a4paper,12pt,DIV=15,BCOR=20mm,parskip=half,numbers=noenddot]{scrbook}
%\usepackage{ngerman} %Deutsche Trennungen, Anführungsstriche und mehr
\usepackage[ngerman]{babel} % dt. Sprache laden (u.a. auch Ausgabe feststehender Begriffe in deutsch wie etwa Inhaltsverzeichnis statt table of contents)
\begin{document}

\section*{Notes for My Paper}

Don't forget to include examples of topicalization.
They look like this:

\subsection*{Mood}

Mood changes when there is a topic, as well as when
there is WH-movement.  \emph{Irrealis} is the mood when
there is a non-subject topic or WH-phrase in Comp.
\emph{Realis} is the mood when there is a subject topic
or WH-phrase.

\end{document}

(我删除了部分正文内容,因为我不知道如何定义\enumsentence\shortex可能定义)

相关内容