Fehlermeldung bezüglich Titel

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


krustenkaese
Forum-Newbie
Forum-Newbie
Beiträge: 8
Registriert: Mo 1. Jun 2020, 18:26

Fehlermeldung bezüglich Titel

Beitrag von krustenkaese »

Hi ich wollte folgende Dokumentstruktur festlegen bekomme jedoch für die Zeile mit meinem Titel die undefined control sequence Fehlermeldung:

\documentclass[a4paper,10pt]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[amsmath]
\title{dokument}
\author{ich}

Kann mir jemand sagen was ich falsch gemacht habe?


Gast

Beitrag von Gast »

Mehr Kontext bitte.

Ein Lesetipp: April 2018 in ltnews


krustenkaese
Forum-Newbie
Forum-Newbie
Beiträge: 8
Registriert: Mo 1. Jun 2020, 18:26

Re: Fehlermeldung bezüglich Titel

Beitrag von krustenkaese »

LOG FILE :
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 2.9.7440 64-bit) (preloaded format=pdflatex 2020.6.1) 1 JUN 2020 18:43
entering extended mode
**"./BA thesis.tex"
("BA thesis.tex"
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-05-15>
("C:\Users\lydia\AppData\Local\Programs\MiKTeX 2.9\tex/latex/koma-script\scrart
cl.cls"
Document Class: scrartcl 2020/04/19 v3.30 KOMA-Script document class (article)
("C:\Users\lydia\AppData\Local\Programs\MiKTeX 2.9\tex/latex/koma-script\scrkba
se.sty"
Package: scrkbase 2020/04/19 v3.30 KOMA-Script package (KOMA-Script-dependent b
asics and keyval usage)
("C:\Users\lydia\AppData\Local\Programs\MiKTeX 2.9\tex/latex/koma-script\scrbas
e.sty"
Package: scrbase 2020/04/19 v3.30 KOMA-Script package (KOMA-Script-independent
basics and keyval usage)
("C:\Users\lydia\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics\keyval.st
y"
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks15
)
("C:\Users\lydia\AppData\Local\Programs\MiKTeX 2.9\tex/latex/koma-script\scrlfi
le.sty"
Package: scrlfile 2020/04/19 v3.30 KOMA-Script package (loading files)
)))
("C:\Users\lydia\AppData\Local\Programs\MiKTeX 2.9\tex/latex/koma-script\tocbas
ic.sty"
Package: tocbasic 2020/04/19 v3.30 KOMA-Script package (handling toc-files)
\scr@dte@tocline@numberwidth=\skip47
\scr@dte@tocline@numbox=\box45
)
Package tocbasic Info: babel extension for toc' omitted
(tocbasic) because of missing \bbl@set@language on input line 135.
Package scrartcl Info: You've used standard option10pt'.
(scrartcl) This is correct!
(scrartcl) Internally I'm using fontsize=10pt'.
(scrartcl) If you'd like to set the option with \KOMAoptions,
(scrartcl) you'd have to usefontsize=10pt' there
(scrartcl) instead of 10pt', too.
Class scrartcl Info: Filescrsize10pt.clo' used to setup font sizes on input l
ine 2212.
("C:\Users\lydia\AppData\Local\Programs\MiKTeX 2.9\tex/latex/koma-script\scrsiz
e10pt.clo"
File: scrsize10pt.clo 2020/04/19 v3.30 KOMA-Script font size class option (10pt
)
)
("C:\Users\lydia\AppData\Local\Programs\MiKTeX 2.9\tex/latex/koma-script\typear
ea.sty"
Package: typearea 2020/04/19 v3.30 KOMA-Script package (type area)
\ta@bcor=\skip48
\ta@div=\count167
Package typearea Info: You've used standard option a4paper'.
(typearea) This is correct!
(typearea) Internally I'm usingpaper=a4'.
(typearea) If you'd like to set the option with \KOMAoptions,
(typearea) you'd have to use paper=a4' there
(typearea) instead ofa4paper', too.
\ta@hblk=\skip49
\ta@vblk=\skip50
\ta@temp=\skip51
\footheight=\skip52
Package typearea Info: These are the values describing the layout:
(typearea) DIV = 8
(typearea) BCOR = 0.0pt
(typearea) \paperwidth = 597.50793pt
(typearea) \textwidth = 373.44246pt
(typearea) DIV departure = -4%
(typearea) \evensidemargin = 39.76274pt
(typearea) \oddsidemargin = 39.76274pt
(typearea) \paperheight = 845.04694pt
(typearea) \textheight = 538.0pt
(typearea) \topmargin = 0.36087pt
(typearea) \headheight = 15.0pt
(typearea) \headsep = 18.0pt
(typearea) \topskip = 10.0pt
(typearea) \footskip = 42.0pt
(typearea) \baselineskip = 12.0pt
(typearea) on input line 1738.
)
\c@part=\count168
\c@section=\count169
\c@subsection=\count170
\c@subsubsection=\count171
\c@paragraph=\count172
\c@subparagraph=\count173
\scr@dte@section@maxnumwidth=\skip53
Class scrartcl Info: using compatibility default runin=bysign'
(scrartcl) for\section on input line 4761.
Class scrartcl Info: using compatibility default afterindent=bysign'
(scrartcl) for\section on input line 4761.
\scr@dte@part@maxnumwidth=\skip54
Class scrartcl Info: using compatibility default afterindent=false'
(scrartcl) for\part on input line 4769.
\scr@dte@subsection@maxnumwidth=\skip55
Class scrartcl Info: using compatibility default runin=bysign'
(scrartcl) for\subsection on input line 4779.
Class scrartcl Info: using compatibility default afterindent=bysign'
(scrartcl) for\subsection on input line 4779.
\scr@dte@subsubsection@maxnumwidth=\skip56
Class scrartcl Info: using compatibility default runin=bysign'
(scrartcl) for\subsubsection on input line 4789.
Class scrartcl Info: using compatibility default afterindent=bysign'
(scrartcl) for\subsubsection on input line 4789.
\scr@dte@paragraph@maxnumwidth=\skip57
Class scrartcl Info: using compatibility default runin=bysign'
(scrartcl) for\paragraph on input line 4799.
Class scrartcl Info: using compatibility default afterindent=bysign'
(scrartcl) for\paragraph on input line 4799.
\scr@dte@subparagraph@maxnumwidth=\skip58
Class scrartcl Info: using compatibility default runin=bysign'
(scrartcl) for\subparagraph on input line 4809.
Class scrartcl Info: using compatibility default afterindent=bysign'
(scrartcl) for\subparagraph on input line 4809.
\abovecaptionskip=\skip59
\belowcaptionskip=\skip60
\c@pti@nb@sid@b@x=\box46
Package tocbasic Info: babel extension for lof' omitted
(tocbasic) because of missing \bbl@set@language on input line 6040.
\scr@dte@figure@maxnumwidth=\skip61
\c@figure=\count174
Package tocbasic Info: babel extension forlot' omitted
(tocbasic) because of missing \bbl@set@language on input line 6052.
\scr@dte@table@maxnumwidth=\skip62
\c@table=\count175
Class scrartcl Info: Redefining `\numberline' on input line 6216.
\bibindent=\dimen134
)
("C:\Users\lydia\AppData\Local\Programs\MiKTeX 2.9\tex/latex/base\inputenc.sty"
Package: inputenc 2018/08/11 v1.3c Input encoding file
\inpenc@prehook=\toks16
\inpenc@posthook=\toks17
) ("C:\Users\lydia\AppData\Local\Programs\MiKTeX 2.9\tex/generic/babel\babel.st
y"
Package: babel 2020/05/13 3.44 The Babel package
("C:\Users\lydia\AppData\Local\Programs\MiKTeX 2.9\tex/generic/babel\babel.def"
File: babel.def 2020/05/13 3.44 Babel common definitions
\babel@savecnt=\count176
\U@D=\dimen135
\l@babelnohyphens=\language78
("C:\Users\lydia\AppData\Local\Programs\MiKTeX 2.9\tex/generic/babel\txtbabel.d
ef")
\bbl@readstream=\read2
)
\bbl@dirlevel=\count177

*************************************
  • Local config file bblopts.cfg used
    *
    ("C:\Users\lydia\AppData\Local\Programs\MiKTeX 2.9\tex/latex/arabi\bblopts.cfg"
    File: bblopts.cfg 2005/09/08 v0.1 add Arabic and Farsi to "declared" options of
    babel
    )
    ("C:\Users\lydia\AppData\Local\Programs\MiKTeX 2.9\tex/latex/babel-german\ngerm
    an.ldf"
    Language: ngerman 2018/12/08 v2.11 German support for babel (post-1996 orthogra
    phy)
    ("C:\Users\lydia\AppData\Local\Programs\MiKTeX 2.9\tex/latex/babel-german\ngerm
    anb.ldf"
    Language: ngermanb 2018/12/08 v2.11 German support for babel (post-1996 orthogr
    aphy)
    Package babel Info: Making " an active character on input line 121.
    )))
    ("C:\Users\lydia\AppData\Local\Programs\MiKTeX 2.9\tex/latex/base\fontenc.sty"
    Package: fontenc 2020/02/11 v2.0o Standard LaTeX package
    )
    ! Undefined control sequence.
    \GenericError ...
    #4 \errhelp \@err@ ...
    l.6 \title{
    dokument}
    The control sequence at the end of the top line
    of your error message was never \def'ed. If you have
    misspelled it (e.g., \hobx'), typeI' and the correct
    spelling (e.g., I\hbox'). Otherwise just continue,
    and I'll forget about whatever was undefined.
    ! Undefined control sequence.
    \GenericError ...
    \let \@err@ ...
    l.6 \title{
    dokument}
    The control sequence at the end of the top line
    of your error message was never \def'ed. If you have
    misspelled it (e.g.,\hobx'), type I' and the correct
    spelling (e.g.,I\hbox'). Otherwise just continue,
    and I'll forget about whatever was undefined.
    ! Undefined control sequence.
    \GenericError ...
    \@empty \def \MessageBreak...
    l.6 \title{
    dokument}
    The control sequence at the end of the top line
    of your error message was never \def'ed. If you have
    misspelled it (e.g., \hobx'), typeI' and the correct
    spelling (e.g., I\hbox'). Otherwise just continue,
    and I'll forget about whatever was undefined.
    ! Undefined control sequence.
    \GenericError ...
    \endgroup
    l.6 \title{
    dokument}
    The control sequence at the end of the top line
    of your error message was never \def'ed. If you have
    misspelled it (e.g.,\hobx'), type I' and the correct
    spelling (e.g.,I\hbox'). Otherwise just continue,
    and I'll forget about whatever was undefined.
    ! Argument of \zap@space has an extra }.
    <inserted text>
    \par
    l.6 \title{
    dokument}
    I've run across a }' that doesn't seem to match anything.
    For example,\def\a#1{...}' and \a}' would produce
    this error. If you simply proceed now, the\par' that
    I've just inserted will cause me to report a runaway
    argument that might be the root of the problem. But if
    your }' was spurious, just type2' and it will go away.
    Runaway argument?
    \@empty
    ! Paragraph ended before \zap@space was complete.
    <to be read again>
    \par
    l.6 \title{
    dokument}
    I suspect you've forgotten a }', causing me to apply this
    control sequence to too much text. How can we recover?
    My plan is to forget the whole thing and hope for the best.
    Runaway argument?
    \title {\expandafter \reserved@b \reserved@a ,\@nnil ,}\fi \reserved@a \ETC.
    ! Paragraph ended before \@fileswith@pti@ns was complete.
    <to be read again>
    \par
    l.8
    I suspect you've forgotten a}', causing me to apply this
    control sequence to too much text. How can we recover?
    My plan is to forget the whole thing and hope for the best.
    Runaway argument?
    \title {\def \@currenvir {document}\edef \@currenvline {\on@line }\csname \ETC.
    ! Paragraph ended before \@fileswith@pti@ns was complete.
    <to be read again>
    \par
    l.16
    I suspect you've forgotten a }', causing me to apply this
    control sequence to too much text. How can we recover?
    My plan is to forget the whole thing and hope for the best.
    ! Undefined control sequence.
    <argument> \def \scr@execute@dohook
    ##1##2{\def \scr@hook@do ####1{####1{##2...
    l.22 \section
    {Messbarkeit der Vermögensverteilung}
    The control sequence at the end of the top line
    of your error message was never \def'ed. If you have
    misspelled it (e.g.,\hobx'), type I' and the correct
    spelling (e.g.,I\hbox'). Otherwise just continue,
    and I'll forget about whatever was undefined.
    ! Illegal parameter number in definition of \reserved@a.
    <to be read again>
    1
    l.22 \section
    {Messbarkeit der Vermögensverteilung}
    You meant to type ## instead of #, right?
    Or maybe a } was forgotten somewhere earlier, and things
    are all screwed up? I'm going to assume that you meant ##.
    ! Illegal parameter number in definition of \reserved@a.
    <to be read again>
    2
    l.22 \section
    {Messbarkeit der Vermögensverteilung}
    You meant to type ## instead of #, right?
    Or maybe a } was forgotten somewhere earlier, and things
    are all screwed up? I'm going to assume that you meant ##.
    ! Undefined control sequence.
    <argument> ...ute@dohook ##1##2{\def \scr@hook@do
    ####1{####1{##2}}\@nameuse...
    l.22 \section
    {Messbarkeit der Vermögensverteilung}
    The control sequence at the end of the top line
    of your error message was never \def'ed. If you have
    misspelled it (e.g., \hobx'), typeI' and the correct
    spelling (e.g., I\hbox'). Otherwise just continue,
    and I'll forget about whatever was undefined.
    ! Illegal parameter number in definition of \reserved@a.
    <to be read again>
    2
    l.22 \section
    {Messbarkeit der Vermögensverteilung}
    You meant to type ## instead of #, right?
    Or maybe a } was forgotten somewhere earlier, and things
    are all screwed up? I'm going to assume that you meant ##.
    ! Undefined control sequence.
    <argument> ...endcsname \@empty \let \scr@hook@do
    \relax }\ForDoHook {headin...
    l.22 \section
    {Messbarkeit der Vermögensverteilung}
    The control sequence at the end of the top line
    of your error message was never \def'ed. If you have
    misspelled it (e.g.,\hobx'), type I' and the correct
    spelling (e.g.,I\hbox'). Otherwise just continue,
    and I'll forget about whatever was undefined.
    Runaway argument?
    \title {heading/preinit/section}\protected@edef \reserved@b {}\ifx \reserved@a
    \ETC.
    ! Paragraph ended before \@fileswith@pti@ns was complete.
    <to be read again>
    \par
    l.22 \section
    {Messbarkeit der Vermögensverteilung}
    I suspect you've forgotten a }', causing me to apply this
    control sequence to too much text. How can we recover?
    My plan is to forget the whole thing and hope for the best.
    ! Undefined control sequence.
    \GenericError ...
    #4 \errhelp \@err@ ...
    l.22 \section
    {Messbarkeit der Vermögensverteilung}
    The control sequence at the end of the top line
    of your error message was never \def'ed. If you have
    misspelled it (e.g.,\hobx'), type I' and the correct
    spelling (e.g.,I\hbox'). Otherwise just continue,
    and I'll forget about whatever was undefined.
    ! Undefined control sequence.
    \GenericError ...
    \let \@err@ ...
    l.22 \section
    {Messbarkeit der Vermögensverteilung}
    The control sequence at the end of the top line
    of your error message was never \def'ed. If you have
    misspelled it (e.g., \hobx'), typeI' and the correct
    spelling (e.g., I\hbox'). Otherwise just continue,
    and I'll forget about whatever was undefined.
    ! Undefined control sequence.
    \GenericError ...
    \@empty \def \MessageBreak...
    l.22 \section
    {Messbarkeit der Vermögensverteilung}
    The control sequence at the end of the top line
    of your error message was never \def'ed. If you have
    misspelled it (e.g.,\hobx'), type I' and the correct
    spelling (e.g.,I\hbox'). Otherwise just continue,
    and I'll forget about whatever was undefined.
    ! Undefined control sequence.
    \GenericError ...
    \endgroup
    l.22 \section
    {Messbarkeit der Vermögensverteilung}
    The control sequence at the end of the top line
    of your error message was never \def'ed. If you have
    misspelled it (e.g., \hobx'), typeI' and the correct
    spelling (e.g., I\hbox'). Otherwise just continue,
    and I'll forget about whatever was undefined.
    )
    ! Incomplete \iffalse; all text was ignored after line 22.
    <inserted text>
    \fi
    <*> "./BA thesis.tex"
    The file ended while I was skipping conditional text.
    This kind of error happens when you say\if...' and forget
    the matching \fi'. I've inserted a\fi'; this might work.
    ! Emergency stop.
    <*> "./BA thesis.tex"
    *** (job aborted, no legal \end found)
    Here is how much of TeX's memory you used:
    3653 strings out of 480799
    71690 string characters out of 2895785
    439429 words of memory out of 3000000
    19701 multiletter control sequences out of 15000+200000
    533101 words of font info for 25 fonts, out of 3000000 for 9000
    1141 hyphenation exceptions out of 8191
    45i,1n,56p,10135b,246s stack positions out of 5000i,500n,10000p,200000b,50000s
    ! ==> Fatal error occurred, no output PDF file produced!

krustenkaese
Forum-Newbie
Forum-Newbie
Beiträge: 8
Registriert: Mo 1. Jun 2020, 18:26

Re: Fehlermeldung bezüglich Titel

Beitrag von krustenkaese »

Bin noch neu in LaTeX und habe deswegen mal den gesamten Fehlercode kopiert.
Sorry aber kann mir da nicht helfen


Gast

Beitrag von Gast »

Achte auf die Klammern:

\usepackage{amsmath}

Ratgeber

Falsche Klammern

Beitrag von Ratgeber »

Die Zeile, in der der Titel festgelegt wird, ist nicht das Problem. Der befindet sich eine Zeile davor, wo anstelle von geschweiften eckige Klammern benutzt werden, um ein Paket einzubinden. Statt »amsmath« zu laden empfehle ich »mathtools«, welches ersteres lädt und seine Schwachstellen ausmerzt sowie Ergänzungen bietet (s. Anleitung). Und gewöhne dir gleich an, immer ein Minimalbeispiel hinzuzufügen.


krustenkaese
Forum-Newbie
Forum-Newbie
Beiträge: 8
Registriert: Mo 1. Jun 2020, 18:26

Re:

Beitrag von krustenkaese »

Gast hat geschrieben:
Mo 1. Jun 2020, 18:45

Achte auf die Klammern:

\usepackage{amsmath}

U da real MVP

Danke!


krustenkaese
Forum-Newbie
Forum-Newbie
Beiträge: 8
Registriert: Mo 1. Jun 2020, 18:26

Re: Falsche Klammern

Beitrag von krustenkaese »

Ratgeber hat geschrieben:
Mo 1. Jun 2020, 18:46

Die Zeile, in der der Titel festgelegt wird, ist nicht das Problem. Der befindet sich eine Zeile davor, wo anstelle von geschweiften eckige Klammern benutzt werden, um ein Paket einzubinden. Statt »amsmath« zu laden empfehle ich »mathtools«, welches ersteres lädt und seine Schwachstellen ausmerzt sowie Ergänzungen bietet (s. Anleitung). Und gewöhne dir gleich an, immer ein Minimalbeispiel hinzuzufügen.

Vielen Dank auch dir!

Mache ich in Zukunft!


Stamm-Gast

Beispiel statt Protokoll

Beitrag von Stamm-Gast »

krustenkaese hat geschrieben:
Mo 1. Jun 2020, 18:45

Bin noch neu in LaTeX und habe deswegen mal den gesamten Fehlercode kopiert.

Die Protokoll-Datei alleine reicht nicht. Und statt hier den ganzen Text rein zu schreiben, kann die Datei auch als Anhang hinzugefügt werden.


krustenkaese
Forum-Newbie
Forum-Newbie
Beiträge: 8
Registriert: Mo 1. Jun 2020, 18:26

Re: Fehlermeldung bezüglich Titel

Beitrag von krustenkaese »

Ich habe vorhin im Code einen Block von Sections und Subsections ausgeschnitten.
Eigentlich wollte ich den Block an andere Stelle schieben habe aber aus Versehen die Datei geschlossen.
Als ich die Datei wieder geöffnet habe und per paste eingefügt habe, hat LaTeX das nicht akzeptiert und ne Fehlermeldung für Zeile 1 ausgegeben. Als ich alles wieder händisch eingetippt habe, hat es geklappt. Gibt es ne Möglichkeit ne große Menge Code so einzufügen ohne, dass es zu Problemen kommt?


Antworten