Texmaker“!额外的\endgroup”编译错误

问题描述

我已经安装了 Miktex 和 Texmaker,并且正在尝试编译一个非常简单的 tex 文件

\documentclass[10pt,twocolumn]{revtex4} 
\begin{document}
hello
\end{document}

但我在 \begin{document} 行 "!Extra\endgroup.\document->\endgroup\init@documenthook\set@typesize@hook\normalsize\set...\begin{document }”。错误image .pdf 显示latex pdf

这是 .log 文件

This is pdfTeX,Version 3.14159265-2.6-1.40.21 (MiKTeX 20.12) (preloaded format=pdflatex 2021.1.16)  16 JAN 2021 17:56
entering extended mode
**./test_2.tex
(test_2.tex
LaTeX2e <2020-10-01> patch level 4
L3 programming layer <2021-01-09> xparse <2020-03-03>
(E:\Miktex\tex/latex/revtex4\revtex4.cls
Document Class: revtex4 2001/08/03 v4.0 (http://publish.aps.org/revtex4/ for do
cumentation)
 copyright (c) 2001 The American Physical Society.
 mailto:revtex@aps.org
 Licensed under the LPPL:
http://www.ctan.org/tex-archive/macros/latex/base/lppl.txt
 Arthur Ogawa <ogawa@teleport.com>
 Based on work by David Carlisle <david@dcarlisle.demon.co.uk>.
ltxutil: portions licensed from W. E. Baxter (web@superscript.com)
Class revtex4 Info: Repairing broken LateX \@sect on input line 596.
\intertabularlinepenalty=\count177
\@tbpen=\count178
\@arstrutBox@hline=\Box47
Class revtex4 Info: Repairing broken LaTeX \@xbitor on input line 1610.
ltxgrid: portions licensed from W. E. Baxter (web@superscript.com)
\c@linecount=\count179
\output=\toks15
\@protection@Box=\Box48
\@topmark@saved=\toks16
\footins@saved=\Box49
\pagesofar=\Box50
\footBox=\Box51
\pagegrid@col=\count180
Class revtex4 Info: Incorporating package {textcase}  [1998/11/12 v0.06 Text on
ly upper/lower case changing (DPC)]. on input line 3682.
(E:\Miktex\tex/latex/url\url.sty
\Urlmuskip=\muskip16
Package: url 2013/09/16  ver 3.4  Verb mode for urls,etc.
)
\c@affil=\count181
\absBox=\Box52
\c@part=\count182
\c@section=\count183
\c@subsection=\count184
\c@subsubsection=\count185
\c@paragraph=\count186
\c@subparagraph=\count187
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\c@figure=\count188
\c@table=\count189
 (E:\Miktex\tex/latex/natbib\natbib.sty
Package: natbib 2010/09/13 8.31b (PWD,AO)
\bibhang=\skip49
\bibsep=\skip50
LaTeX Info: Redefining \cite on input line 694.
\c@NAT@ctr=\count190
)
\widetext@top=\Box53
\widetext@bot=\Box54

(E:\Miktex\tex/latex/revtex4\revsymb.sty
Package: revsymb 2001/08/03 v4.0 (http://publish.aps.org/revtex4/ for documenta
tion)
LaTeX Info: Redefining \REV@mathfrak on input line 118.
))

Class revtex4 Warning: No Society specified,using generic APS style.

(E:\Miktex\tex/latex/revtex4\aps.rtx
File: aps.rtx 2001/08/03 v4.0 (http://publish.aps.org/revtex4/ for documentatio
n)
) (E:\Miktex\tex/latex/revtex4\10pt.rtx
File: 10pt.rtx 2001/08/03 v4.0 (http://publish.aps.org/revtex4/ for documentati
on)
)
! Extra \endgroup.
\document ->\endgroup 
                      \init@documenthook \set@typesize@hook \normalsize \set...
l.2 \begin{document}
                    
Things are pretty mixed up,but I think the worst is over.


! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.2 \begin{document}
                    
You're in trouble here.  Try typing  <return>  to proceed.
If that doesn't work,type  X <return>  to quit.

(E:\Miktex\tex/latex/l3backend\l3backend-pdftex.def
File: l3backend-pdftex.def 2021-01-09 L3 backend support: PDF output (pdfTeX)
\l__kernel_color_stack_int=\count191
\l__pdf_internal_Box=\Box55
) (test_2.aux)
\openout1 = `test_2.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for TS1/cmr/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
Class revtex4 Info: Unrecognized LaTeX tabular. Please update this document cla
ss! (Proceeding with fingers crossed.) on input line 2.
Class revtex4 Info: cite was not loaded (OK!) on input line 2.
Class revtex4 Info: multicol was not loaded (OK!) on input line 2.
 [1{C:/Users/l04sa/AppData/Local/MiKTeX/pdftex/config/pdftex.map}] (test_2.aux)
 ) 
Here is how much of TeX's memory you used:
 1949 strings out of 479618
 26287 string characters out of 2881546
 304780 words of memory out of 3000000
 19187 multiletter control sequences out of 15000+200000
 403430 words of font info for 27 fonts,out of 3000000 for 9000
 1141 hyphenation exceptions out of 8191
 53i,4n,60p,192b,111s stack positions out of 5000i,500n,10000p,200000b,50000s
<E:/Miktex/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on test_2.pdf (1 page,13928 bytes).
PDF statistics:
 10 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 500000)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)

我真的不知道为什么我会得到这个,希望得到任何帮助。如果您需要有关我的设置的更多信息,请告诉我。谢谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)