Fehler Meldung: ! Extra \endgroup.\document ->\endgroup\document@inithook \true@sw {}\UseOneTimeHook {begindo... \begin{

Fragen und Probleme, die nicht den obigen Kategorien zugeordnet werden können


Cattivo1234
Forum-Newbie
Forum-Newbie
Beiträge: 2
Registriert: Mi 6. Jan 2021, 15:35

Fehler Meldung: ! Extra \endgroup.\document ->\endgroup\document@inithook \true@sw {}\UseOneTimeHook {begindo... \begin{

Beitrag von Cattivo1234 »

Hallo Leute,

ich bin am verzweifeln ...
an meinem Laptop Zuhause will das Paper an dem ich arbeite einfach nicht kompilieren ... am PC in der uni gab es überhaupt kein Problem
das ganze soll auf dem AIP Sientific Intruments laufen dazu schlagen die mir folgenden dokumentenklasse vor

\documentclass[%
aip,
% jmp,
% bmf,
% sd,
% rsi,
amsmath,amssymb,
%preprint,%
reprint,%
%author-year,%
%author-numerical,%
% Conference Proceedings
]{revtex4-1}

ich musste erstmal das revtex4-1 packet ( https://www.ctan.org/pkg/revtex4-1 ) in MikTex hinzufügen das habe ich geschafft und er findet jetzt auch endlich die "aps10pt4-1.rtx " -File

Dummer weiße kommt jetzt der Fehler:
" ! Extra \endgroup.\document ->\endgroup\document@inithook \true@sw {}\UseOneTimeHook {begindo... \begin{document} "

ich habe sowohl \begin{document} als auch \end{document} und bin mir auch ziemlich sicher das ich keine falsche klammern habe ... wie gesagt an meinem Uni PC ging es reibunglos durch ...

kennt jemand das Problem oder kann mir jemand Helfen ?


MoeWe
Forum-Meister
Forum-Meister
Beiträge: 801
Registriert: Fr 30. Aug 2019, 15:35
Kontaktdaten:

Re: Fehler Meldung: ! Extra \endgroup.\document ->\endgroup\document@inithook \true@sw {}\UseOneTimeHook {begindo... \be

Beitrag von MoeWe »

Stelle sicher, dass Dein MikTeX vollständig aktuell ist (in einem Mehrbenutzersystem musst Du ein Update im Admin- und User-Modus machen). Gehe außerdem sicher, dass Du die aktuelle Version von revtex4-1 hast.

Ich hab auf meinem aktuellen MikTeX

\documentclass[%
aip,
% jmp,
% bmf,
% sd,
% rsi,
amsmath,amssymb,
%preprint,%
reprint,%
%author-year,%
%author-numerical,%
% Conference Proceedings
]{revtex4-1}

\begin{document}
Lorem
\end{document}

gerade erfolgreich kompiliert, nachdem ich im selben Ordner die .dtx-Dateien von CTAN entpackt hatte. Es sollte also gehen.

Wenn das nicht hilft, zeig uns bitte die vollständige .log-Datei. Idealerweise von einem möglichst kleinen Beispiel wie dem hier.


Cattivo1234
Forum-Newbie
Forum-Newbie
Beiträge: 2
Registriert: Mi 6. Jan 2021, 15:35

Re: Fehler Meldung: ! Extra \endgroup.\document ->\endgroup\document@inithook \true@sw {}\UseOneTimeHook {begindo... \be

Beitrag von Cattivo1234 »

MiKTEX ist upgedatet ...

Hier das Tamplate:

'
% ****** Start of file aipsamp.tex ******
%
% This file is part of the AIP files in the AIP distribution for REVTeX 4.
% Version 4.1 of REVTeX, October 2009
%
% Copyright (c) 2009 American Institute of Physics.
%
% See the AIP README file for restrictions and more information.
%
% TeX'ing this file requires that you have AMS-LaTeX 2.0 installed
% as well as the rest of the prerequisites for REVTeX 4.1
%
% It also requires running BibTeX. The commands are as follows:
%
% 1) latex aipsamp
% 2) bibtex aipsamp
% 3) latex aipsamp
% 4) latex aipsamp
%
% Use this file as a source of example code for your aip document.
% Use the file aiptemplate.tex as a template for your document.
\documentclass[%
aip,
% jmp,
% bmf,
% sd,
% rsi,
amsmath,amssymb,
%preprint,%
reprint,%
%author-year,%
%author-numerical,%
% Conference Proceedings
]{revtex4-1}

\usepackage{units}
\usepackage{graphicx}% Include figure files
\usepackage{dcolumn}% Align table columns on decimal point
\usepackage{bm}% bold math
%\usepackage[mathlines]{lineno}% Enable numbering of text and display math
%\linenumbers\relax % Commence numbering lines

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{mathptmx}

\begin{document}

HAllo

\end{document}
%
% ****** End of file aipsamp.tex ******

'

und Hier ist die LOG File aus dem Texmaker:
"
LOG FILE :
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 20.12) (preloaded format=pdflatex 2021.1.11) 11 JAN 2021 09:50
entering extended mode
**./aipsamp.tex
(aipsamp.tex
LaTeX2e <2020-10-01> patch level 3
L3 programming layer <2020-12-07> xparse <2020-03-03> (revtex4-1.cls
Document Class: revtex4-1 2010/07/25/20:33:00 4.1r (http://publish.aps.org/revt
ex4/ for documentation)
Copyright (c) 2009 The American Physical Society.
mailto:revtex@aps.org
Licensed under the LPPL:
http://www.ctan.org/tex-archive/macros/ ... e/lppl.txt
Arthur Ogawa <arthur_ogawa at sbcglobal dot net>
Based on work by David Carlisle <david at dcarlisle.demon.co.uk>.
ltxutil[2010/07/25/20:33:00 4.1r utilities package (portions licensed from W. E
. Baxter web at superscript.com)]
LaTeX Info: Redefining \@centercr on input line 308.
Class revtex4-1 Info: Repairing broken LaTeX eqnarray on input line 358.
\eqncolsep=\skip47
Class revtex4-1 Info: Repairing hyperref-unfriendly LaTeX definition of \mpfoot
note on input line 433.
Class revtex4-1 Info: Repairing broken LateX \@sect on input line 755.
\intertabularlinepenalty=\count177
\@tbpen=\count178
\@arstrutbox@hline=\box47
Class revtex4-1 Info: Repairing broken LaTeX \@xbitor on input line 1786.
ltxfront[2010/07/25/20:33:00 4.1r frontmatter package (AO,DPC)]
\c@affil=\count179
\c@collab=\count180
\absbox=\box48
ltxgrid[2010/07/25/20:33:00 4.1r page grid package (portions licensed from W. E
. Baxter web at superscript.com)]
\c@linecount=\count181
\output@latex=\toks15
\box@size@1=\box49
\box@size@2=\box50
\@protection@box=\box51
\@topmark@saved=\toks16
\footins@saved=\box52
\footins@recovered=\box53
\column@recovered=\box54
\pagesofar=\box55
\footsofar=\box56
\pagegrid@col=\count182
Class revtex4-1 Warning: Failed to recognize \@vspace, \@vspacer, \@no@pgbk, \@
newline, and \\; no patches applied. Please get a more up-to-date class, .
\c@part=\count183
\c@section=\count184
\c@subsection=\count185
\c@subsubsection=\count186
\c@paragraph=\count187
\c@subparagraph=\count188
\abovecaptionskip=\skip48
\belowcaptionskip=\skip49
\c@figure=\count189
\fbox@1=\box57
\c@table=\count190
\fbox@2=\box58
\c@video=\count191
\fbox@4=\box59
\@bibdataout=\write3
\widetext@top=\box60
\widetext@bot=\box61
Class revtex4-1 Info: Selecting society aip on input line 7542.
(aip4-1.rtx
File: aip4-1.rtx 2010/07/25 4.1r AIP substyle for REVTeX
Class revtex4-1 Info: RevTeX society AIP selected on input line 75.
)
Class revtex4-1 Warning: No journal specified, using default cha.
Using journal substyle cha.
Class revtex4-1 Info: Reading file aps10pt4-1.rtx on input line 7547.
(C:/local/miktex/texmf-local\tex/latex/revtex\aps10pt4-1.rtx
File: aps10pt4-1 2010/07/25/20:33:00 4.1r (http://publish.aps.org/revtex4/ for
documentation)
Class revtex4-1 Info: RevTeX pointsize 10pt selected on input line 30.
)
Class revtex4-1 Info: Overriding 10pt on input line 7547.
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/textcase\textcase.sty
Package: textcase 2019/09/14 v1.00 Text only upper/lower case changing (DPC)
)
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\amssymb.sty
Package: amssymb 2013/01/14 v3.01 AMS font symbols
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\amsfonts.sty
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
\@emptytoks=\toks17
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info: Redeclaring math symbol \hbar on input line 98.
LaTeX Font Info: Overwriting math alphabet \mathfrak' in versionbold'
(Font) U/euf/m/n --> U/euf/b/n on input line 106.
)) (C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsmath.sty
Package: amsmath 2020/09/23 v2.17i AMS math features
\@mathmargin=\skip50
For additional information on amsmath, use the ?' option.
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amstext.sty
Package: amstext 2000/06/29 v2.01 AMS text
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks18
\ex@=\dimen138
)
LaTeX Info: Redefining \text on input line 28.
)
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise@=\dimen139
)
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsopn.sty
Package: amsopn 2016/03/08 v2.02 operator names
)
\inf@bad=\count192
LaTeX Info: Redefining \frac on input line 234.
\uproot@=\count193
\leftroot@=\count194
LaTeX Info: Redefining \overline on input line 399.
\classnum@=\count195
\DOTSCASE@=\count196
LaTeX Info: Redefining \ldots on input line 496.
LaTeX Info: Redefining \dots on input line 499.
LaTeX Info: Redefining \cdots on input line 620.
\Mathstrutbox@=\box62
\strutbox@=\box63
\big@size=\dimen140
LaTeX Font Info: Redeclaring font encoding OML on input line 743.
LaTeX Font Info: Redeclaring font encoding OMS on input line 744.
\macc@depth=\count197
\c@MaxMatrixCols=\count198
\dotsspace@=\muskip16
\c@parentequation=\count199
\dspbrk@lvl=\count266
\tag@help=\toks19
\row@=\count267
\column@=\count268
\maxfields@=\count269
\andhelp@=\toks20
\eqnshift@=\dimen141
\alignsep@=\dimen142
\tagshift@=\dimen143
\tagwidth@=\dimen144
\totwidth@=\dimen145
\lineht@=\dimen146
\@envbody=\toks21
\multlinegap=\skip51
\multlinetaggap=\skip52
\mathdisplay@stack=\toks22
LaTeX Info: Redefining \[ on input line 2923.
LaTeX Info: Redefining \] on input line 2924.
)
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/url\url.sty
\Urlmuskip=\muskip17
Package: url 2013/09/16 ver 3.4 Verb mode for urls, etc.
)
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/natbib\natbib.sty
Package: natbib 2010/09/13 8.31b (PWD, AO)
\bibhang=\skip53
\bibsep=\skip54
LaTeX Info: Redefining \cite on input line 694.
\c@NAT@ctr=\count270
)
Class revtex4-1 Info: Repairing natbib's \BibitemShut on input line 7549.
(revsymb4-1.sty
Package: revsymb4-1 2010/07/25/20:33:00 4.1r (http://publish.aps.org/revtex4/ f
or documentation)
LaTeX Info: Redefining \frak on input line 95.
LaTeX Info: Redefining \Bbb on input line 111.
LaTeX Info: Redefining \REV@mathfrak on input line 119.
))
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/units\units.sty
Package: units 1998/08/04 v0.9b Typesetting units
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/base\ifthen.sty
Package: ifthen 2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
)
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/units\nicefrac.sty
Package: nicefrac 1998/08/04 v0.9b Nice fractions
\L@UnitsRaiseDisplaystyle=\skip55
\L@UnitsRaiseTextstyle=\skip56
\L@UnitsRaiseScriptstyle=\skip57
))
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/graphics\graphicx.sty
Package: graphicx 2020/09/09 v1.2b Enhanced LaTeX Graphics (DPC,SPQR)
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/graphics\keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks23
)
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/graphics\graphics.sty
Package: graphics 2020/08/30 v1.4c Standard LaTeX Graphics (DPC,SPQR)
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/graphics\trig.sty
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
)
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/graphics-cfg\graphics.c
fg
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: pdftex.def on input line 105.
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/graphics-def\pdftex.def
File: pdftex.def 2020/10/05 v1.2a Graphics/color driver for pdftex
))
\Gin@req@height=\dimen147
\Gin@req@width=\dimen148
)
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/latex-tools\dcolumn.sty
Package: dcolumn 2014/10/28 v1.06 decimal alignment package (DPC)
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/latex-tools\array.sty
Package: array 2020/10/01 v2.5c Tabular extension package (FMi)
\col@sep=\dimen149
\ar@mcellbox=\box64
\extrarowheight=\dimen150
\NC@list=\toks24
\extratabsurround=\skip58
\backup@length=\skip59
\ar@cellbox=\box65
)) (C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/latex-tools\bm.sty
Package: bm 2019/07/24 v1.2d Bold Symbol Support (DPC/FMi)
\symboldoperators=\mathgroup6
\symboldletters=\mathgroup7
\symboldsymbols=\mathgroup8
LaTeX Font Info: Redeclaring math alphabet \mathbf on input line 141.
LaTeX Info: Redefining \bm on input line 209.
)
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/base\inputenc.sty
Package: inputenc 2020/08/01 v1.3d Input encoding file
\inpenc@prehook=\toks25
\inpenc@posthook=\toks26
)
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/base\fontenc.sty
Package: fontenc 2020/08/10 v2.0s Standard LaTeX package
)
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/psnfss\mathptmx.sty
Package: mathptmx 2020/03/25 PSNFSS-v9.3 Times w/ Math, improved (SPQR, WaS)
LaTeX Font Info: Redeclaring symbol fontoperators' on input line 28.
LaTeX Font Info: Overwriting symbol font operators' in versionnormal'
(Font) OT1/cmr/m/n --> OT1/ztmcm/m/n on input line 28.
LaTeX Font Info: Overwriting symbol font operators' in versionbold'
(Font) OT1/cmr/bx/n --> OT1/ztmcm/m/n on input line 28.
LaTeX Font Info: Redeclaring symbol font letters' on input line 29.
LaTeX Font Info: Overwriting symbol fontletters' in version normal'
(Font) OML/cmm/m/it --> OML/ztmcm/m/it on input line 29.
LaTeX Font Info: Overwriting symbol fontletters' in version bold'
(Font) OML/cmm/b/it --> OML/ztmcm/m/it on input line 29.
LaTeX Font Info: Redeclaring symbol fontsymbols' on input line 30.
LaTeX Font Info: Overwriting symbol font symbols' in versionnormal'
(Font) OMS/cmsy/m/n --> OMS/ztmcm/m/n on input line 30.
LaTeX Font Info: Overwriting symbol font symbols' in versionbold'
(Font) OMS/cmsy/b/n --> OMS/ztmcm/m/n on input line 30.
LaTeX Font Info: Redeclaring symbol font largesymbols' on input line 31.
LaTeX Font Info: Overwriting symbol fontlargesymbols' in version normal'
(Font) OMX/cmex/m/n --> OMX/ztmcm/m/n on input line 31.
LaTeX Font Info: Overwriting symbol fontlargesymbols' in version bold'
(Font) OMX/cmex/m/n --> OMX/ztmcm/m/n on input line 31.
\symbold=\mathgroup9
\symitalic=\mathgroup10
LaTeX Font Info: Redeclaring math alphabet \mathbf on input line 34.
LaTeX Font Info: Redeclaring math alphabet \mathit on input line 35.
LaTeX Font Info: Overwriting math alphabet\mathit' in version normal'
(Font) OT1/cmr/m/it --> OT1/ptm/m/it on input line 35.
LaTeX Font Info: Overwriting math alphabet\mathit' in version bold'
(Font) OT1/cmr/bx/it --> OT1/ptm/m/it on input line 35.
LaTeX Info: Redefining \hbar on input line 50.
)
! Extra \endgroup.
\document ->\endgroup
\document@inithook \true@sw {}\UseOneTimeHook {begindo...
l.47 \begin{document}
Things are pretty mixed up, but I think the worst is over.
Class revtex4-1 Info: Unrecognized array package. Please update this document c
lass! (Proceeding with fingers crossed.) on input line 47.
Class revtex4-1 Info: cite was not loaded (OK!) on input line 47.
Class revtex4-1 Info: mcite was not loaded (OK!) on input line 47.
Class revtex4-1 Info: multicol was not loaded (OK!) on input line 47.
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.47 \begin{document}
You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
LaTeX Font Info: Trying to load font information for T1+ptm on input line 47
.
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/psnfss\t1ptm.fd
File: t1ptm.fd 2001/06/04 font definitions for T1/ptm.
)
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/l3backend\l3backend-pdf
tex.def
File: l3backend-pdftex.def 2020-09-24 L3 backend support: PDF output (pdfTeX)
\l__kernel_color_stack_int=\count271
\l__pdf_internal_box=\box66
) (aipsamp.aux)
\openout1 =aipsamp.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 47.
LaTeX Font Info: ... okay on input line 47.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 47.
LaTeX Font Info: ... okay on input line 47.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 47.
LaTeX Font Info: ... okay on input line 47.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 47.
LaTeX Font Info: ... okay on input line 47.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 47.
LaTeX Font Info: ... okay on input line 47.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 47.
LaTeX Font Info: ... okay on input line 47.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 47.
LaTeX Font Info: ... okay on input line 47.
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/context/base/mkii\supp-pdf.mk
ii
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count272
\scratchdimen=\dimen151
\scratchbox=\box67
\nofMPsegments=\count273
\nofMParguments=\count274
\everyMPshowfont=\toks27
\MPscratchCnt=\count275
\MPscratchDim=\dimen152
\MPnumerator=\count276
\makeMPintoPDFobject=\count277
\everyMPtoPDFconversion=\toks28
)
(C:\Users\Carst\AppData\Local\Programs\MiKTeX\tex/latex/epstopdf-pkg\epstopdf-b
ase.sty
Package: epstopdf-base 2020-01-24 v2.11 Base part for package epstopdf
Package epstopdf-base Info: Redefining graphics rule for .eps' on input line 4
85.
)
\openout3 =aipsampNotes.bib'.
[1{C:/Users/Carst/AppData/Local/MiKTeX/pdftex/config/pdftex.map}]
(aipsamp.aux) )
Here is how much of TeX's memory you used:
4914 strings out of 479624
64177 string characters out of 2865147
348810 words of memory out of 3000000
22051 multiletter control sequences out of 15000+200000
406915 words of font info for 30 fonts, out of 3000000 for 9000
1141 hyphenation exceptions out of 8191
79i,4n,82p,550b,112s stack positions out of 5000i,500n,10000p,200000b,50000s
<C:\Users\Carst\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/e
c/dpi600\ecrm1000.pk>{C:/Users/Carst/AppData/Local/Programs/MiKTeX/fonts/enc/dv
ips/base/8r.enc}<C:/Users/Carst/AppData/Local/Programs/MiKTeX/fonts/type1/urw/t
imes/utmr8a.pfb>
Output written on aipsamp.pdf (1 page, 11979 bytes).
PDF statistics:
29 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)

"

Falls du was anders brauchst sag bescheid :)

Vielen Dank das du drüber Guckst


gast

Re: Fehler Meldung: ! Extra \endgroup.\document ->\endgroup\document@inithook \true@sw {}\UseOneTimeHook {begindo... \be

Beitrag von gast »

Deine Version von revtex4-1 ist nicht aktuell. Du verwendest laut log-Datei Version Document Class: revtex4-1 2010/07/25/20:33:00 4.1r. Aktuell ist aber 2020/09/30 4.1s. Das Paket ist aber insgesamt veraltet. Aktuell wäre revtex, das auch ganz einfach über die MiKTeX Console installiert werden kann und die Version 4.2 der AIP Journal Klasse bereitstellt, also revtex4-2.cls. Du solltest erst einmal abklären, ob (und warum) wirklich noch die alte Version verlangt wird und du nicht einfach die neue Version verwenden kannst. Wenn du wirklich die alte Version verwenden musst, musst du die bei MiKTeX AFAIK von Hand installieren, während TeX Live sie über den Paketmanager bereit stellt und dort auch über den Paketmanager aktualisiert werden kann.


Antworten