复制错误所需的最少代码只有三行:
\input{report_template.cls}
\begin{document}
\end{document}
我怀疑这是“report_template.cls”的问题,但这是我们必须使用的模板。有没有简单的方法可以解决这种错误?
Overleaf 中的错误输出:
Extra \endgroup.
\document ->\endgroup
\document@inithook \true@sw {}\UseOneTimeHook {begindo...
l.3 \begin{document}
LaTeX Error: Missing \begin{document}.
No \begin{document} command was found. Make sure you have included \begin{document} in your preamble, and that your main document is set correctly.
l.3 \begin{document}
模板“.cls”文件包含以下代码:
\NeedsTeXFormat{LaTeX2e}
%\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}
%\ProcessOptions\relax
%\LoadClass[a4paper,11pt]{report}
\documentclass[%
reprint,
amsmath,amssymb,
aps,
floatfix
]{revtex4-2}
\RequirePackage{PRL-lab}
\usepackage[caption=false]{subfig}
\usepackage{natbib}
\bibliographystyle{WLreferences}
\endinput