My minimum code necessary to replicate the error is just three lines:




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:






  • Not without knowing what's in report_template.cls! Dec 14, 2021 at 13:49
  • 5
    Erh, one does not \input a class try \documentclass{report_template}
    – daleif
    Dec 14, 2021 at 13:49
  • please provide a test that produces the error, the above produces ! LaTeX Error: File `report_template.cls' not found. but using \input with a .cls file looks wrong. Dec 14, 2021 at 14:19
  • @DavidCarlisle I have fixed my post to include the error message
    – physBa
    Dec 14, 2021 at 14:26
  • That is still no use to anyone trying to help. why are you using \input with 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 the report_template.cls file. Dec 14, 2021 at 14:34


You must log in to answer this question.

Browse other questions tagged .