当尝试使用特定包(ling-macros)时,我收到此错误。以前从未遇到过这种情况。大多数情况下它都无法编译。很少会编译,但我的宏(示例中的 \lam{P}{s,t})不会显示在 PDF 中。
这是我的 MRE:
\documentclass{article}
\usepackage{ling-macros}
\usepackage[
backend=biber,
style=apa,
citestyle=authoryear
]{biblatex}
\title{title}
\author{author}
\begin{document}
\maketitle
\section*{}
so this is the end.\\
\lam{P}{s,t}\\
\end{document}
答案1
错误发生在logreq.def
读取时,恰好在第一行代码处
\DeclareLogreqContainer{requests}{(internal | external)*}
如日志文件中所示
! TeX capacity exceeded, sorry [parameter stack size=20000].
\gb@ifnextchar #1#2#3->
\let \reserved@d =#1\def \reserved@a {#2}\def \reserv...
l.8 ...Container{requests}{(internal | external)*}
问题在于gb4e.sty
这使得_
并且^
活跃。
我认为最好在加载\noautomath
时使用(在本例中为),但你可以通过加载来解决问题gb4e
ling-macros
ling-macros
后 biblatex
。
\documentclass{article}
\usepackage{biblatex}
\usepackage{ling-macros}
\noautomath
\begin{document}
\lamd{P}{s,t}
\end{document}
在gb4e.sty
我们阅读
% This file allows _ and ^ to be used in ordinary text, hence must be
% loaded AFTER any file that uses them in their TeX meaning. Hence
% cgloss(n).sty is loaded early in this file. This feature is known to
% cause some problems with other packages, but is maintained for backward
% compatibility. If you have problems, you can try disabling it by
% placing the command \noautomath immediately after loading the gb4e package.
% [Added 2009/12/28]