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

如何解决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 举报,一经查实,本站将立刻删除。

相关推荐


使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams[&#39;font.sans-serif&#39;] = [&#39;SimHei&#39;] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -&gt; systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping(&quot;/hires&quot;) public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate&lt;String
使用vite构建项目报错 C:\Users\ychen\work&gt;npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-
参考1 参考2 解决方案 # 点击安装源 协议选择 http:// 路径填写 mirrors.aliyun.com/centos/8.3.2011/BaseOS/x86_64/os URL类型 软件库URL 其他路径 # 版本 7 mirrors.aliyun.com/centos/7/os/x86
报错1 [root@slave1 data_mocker]# kafka-console-consumer.sh --bootstrap-server slave1:9092 --topic topic_db [2023-12-19 18:31:12,770] WARN [Consumer clie
错误1 # 重写数据 hive (edu)&gt; insert overwrite table dwd_trade_cart_add_inc &gt; select data.id, &gt; data.user_id, &gt; data.course_id, &gt; date_format(
错误1 hive (edu)&gt; insert into huanhuan values(1,&#39;haoge&#39;); Query ID = root_20240110071417_fe1517ad-3607-41f4-bdcf-d00b98ac443e Total jobs = 1
报错1:执行到如下就不执行了,没有显示Successfully registered new MBean. [root@slave1 bin]# /usr/local/software/flume-1.9.0/bin/flume-ng agent -n a1 -c /usr/local/softwa
虚拟及没有启动任何服务器查看jps会显示jps,如果没有显示任何东西 [root@slave2 ~]# jps 9647 Jps 解决方案 # 进入/tmp查看 [root@slave1 dfs]# cd /tmp [root@slave1 tmp]# ll 总用量 48 drwxr-xr-x. 2
报错1 hive&gt; show databases; OK Failed with exception java.io.IOException:java.lang.RuntimeException: Error in configuring object Time taken: 0.474 se
报错1 [root@localhost ~]# vim -bash: vim: 未找到命令 安装vim yum -y install vim* # 查看是否安装成功 [root@hadoop01 hadoop]# rpm -qa |grep vim vim-X11-7.4.629-8.el7_9.x
修改hadoop配置 vi /usr/local/software/hadoop-2.9.2/etc/hadoop/yarn-site.xml # 添加如下 &lt;configuration&gt; &lt;property&gt; &lt;name&gt;yarn.nodemanager.res