背面使用損壞的獨立版?

背面使用損壞的獨立版?

我在 Overleaf 上有一個很長的 tex 文件,它剛剛開始,不知從何而來,無法編譯。我在這裡將其簡化為一個最小的工作範例

\documentclass{article}

%%%%%%%%%%%%%%%%%% Pre-Load Packages Order %%%%%%%%%%%%%%%%%%%
\usepackage[utf8]{inputenc}
\usepackage[margin=1in]{geometry}
\usepackage[mode=buildnew,subpreambles=true,group=false]{standalone} % For side loaded Tikz Figures
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\title{TBD}
\author{Me!}

\begin{document}

\maketitle
blah blah blah

\end{document}

我收到以下錯誤:

Extra }, or forgotten \endgroup.
l.555   }
         %
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.

但是,如果我刪除選項“subpreambles=true”,錯誤就會消失。

答案1

如果沒有日誌中的更多上下文,很難進行偵錯,但顯示的行是第 555 行,standalone.sty其中

\begingroup
  \setbox\@tempboxa\hbox{%
    \makeatother
    \InputIfFileExists{\jobname.sta}{}{\PackageInfo{standalone}{STA file not found!}{}{}}%
  }%
\endgroup

所以我猜測之前的運行寫入了一個錯誤的.sta檔案。

您可以透過背面選單清除所有此類生成的文件

“從頭開始重新編譯”

在此輸入影像描述

或者

“清除快取檔案”

在此輸入影像描述

相關內容