My minimum code necessary to replicate the error is just three lines:
\input{report_template.cls}
\begin{document}
\end{document}
I suspect its a problem with the "report_template.cls" however, this is the template we are required to use. Is there an easy work around for this type of error?
Error output in 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}
The template ".cls" file contains the following code:
\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
report_template.cls! – Ian Thompson Dec 14 '21 at 13:49\inputa class try\documentclass{report_template}– daleif Dec 14 '21 at 13:49! LaTeX Error: File \report_template.cls' not found.but using\inputwith a.cls` file looks wrong. – David Carlisle Dec 14 '21 at 14:19\inputwith a .cls file? that is almost certainly wrong. every other .cls file in the tex distribution is used as\documentclass{file}not\input{file.cls}But if you want people to reproduce the error as you say in the question you need to show thereport_template.clsfile. – David Carlisle Dec 14 '21 at 14:34.tex!!!) – David Carlisle Dec 14 '21 at 14:442020/10/03 4.2e– David Carlisle Dec 14 '21 at 14:55