TeX 容量超出,抱歉 [grouping levels=255] latex-studio

TeX 容量超出,抱歉 [grouping levels=255] latex-studio

我目前正在写一篇重要的论文。这是我第一次尝试使用 LaTeX,我总是随机遇到这个问题:

TeX 容量超出,抱歉 [grouping levels=255]

有时,如果我只是想创建一个无排序列表,或者只是将 \thanks 标签添加到 \author。我花了很长时间寻找答案,但我找到的每个答案都只是针对特定场景的解决方法。有人能告诉我,是什么导致了这个问题吗?它在不同的地方反复出现,总是找到解决方法根本行不通 :D

我使用的是带有 LaTeX Workshop 扩展和 Tex Live 的 VS Code。我也在 Texmaker 中尝试过,结果相同。我还尝试使用 lualatex 和其他一些工具进行编译,因为这是我唯一能找到的东西。

这是我第一次遇到这个问题,只是从 Overleaf 复制粘贴了教程。这里的例子是有效的

\documentclass[12pt]{article}

\title{cool document}
\author{Mr. Nobody}

\begin{document}

\maketitle

\end{document}

当我添加 \thanks 标签时,代码不再编译,而是输出以下错误。

\documentclass[12pt]{article}

\title{cool document}
\author{Mr. Nobody \thanks{My mom}}
 
\begin{document}
\maketitle
\end{document}

VS Code 中的错误消息:

Fatal error occurred, no output PDF file produced!
Transcript written on test.log.
Latexmk: If appropriate, the -f option can be used to get latexmk
  to try to force complete processing.
Reverting Windows console CPs to (in,out) = (850,850)
Latexmk: Getting log file 'test.log'
Latexmk: Examining 'test.fls'
Latexmk: Examining 'test.log'
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
  pdflatex: Command for 'pdflatex' gave return code 1
      Refer to 'test.log' and/or above output for details

C:\texlive\2023\bin\windows\runscript.tlu:921: command failed with exit code 12:
perl.exe c:\texlive\2023\texmf-dist\scripts\latexmk\latexmk.pl -synctex=1 -interaction=nonstopmode -file-line-error -pdf -outdir=d:/PathToFile

Texmaker 中的错误消息:

! LaTeX Error: Encoding scheme `TS1' unknown.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.54 ...ontFamily{TS1}{cmr}{\hyphenchar\font\m@ne}
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.
)
! TeX capacity exceeded, sorry [grouping levels=255].
\UseTextSymbol #1#2->\hmode@start@before@group {
\def \@wrong@font@char {\Me...
l.8 \maketitle
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:
461 strings out of 474373
9205 string characters out of 2753366
1923078 words of memory out of 5000000
22646 multiletter control sequences out of 15000+600000
559914 words of font info for 42 fonts, out of 8000000 for 9000
1141 hyphenation exceptions out of 8191
253i,11n,486p,137b,2657s stack positions out of 10000i,1000n,20000p,200000b,200000s
! ==> Fatal error occurred, no output PDF file produced!

相关内容