
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
ファイルが書き込まれたと推測します。
生成されたファイルはすべて、Overleafメニューから消去できます。
「最初から再コンパイル」
または
「キャッシュされたファイルをクリアする」