1

These two lines:

\documentclass[aps,prl,two column]{revtex4}%
\begin{document}

Produce the following error:

! Extra \endgroup.
\document ->\endgroup 
                      \init@documenthook \set@typesize@hook \normalsize \set...
l.2 \begin{document}
                    
? 
7
  • the exact error from the errors window is: 8 Extra \endgroup. \document ->\endgroup \init@documenthook \set@typesize@hook \normalsize \set... l.8 \begin{document}
    – Gal V
    Commented Oct 24, 2020 at 7:32
  • Do you not have an \end{document} line?
    – Plergux
    Commented Oct 24, 2020 at 7:38
  • 4
    Did you check for updates? The problem should be resolved with the newest version of the class Commented Oct 24, 2020 at 7:52
  • @campa revtex4 is no longer developed, but it did get a maintenance update a couple of weeks ago precisely to fix this error (so updating will fix the issue). But yes, it's ancient and should not be used. Commented Oct 24, 2020 at 11:17
  • 1
    @GalV revtex4-2 is the current version Commented Oct 25, 2020 at 11:59

1 Answer 1

2

Use \documentclass[aps,prl,two column]{revtex4-2} instead of \documentclass[aps,prl,two column]{revtex4}.

1
  • 1
    Even though using revtex4 is not recommended (it's been obsolete for decades now), it was updated to fix this particular issue. Commented May 9, 2022 at 12:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .