scrlayer-scrpage produziert Fehler Thema ist als GELÖST markiert

Klassen und Pakete zur einfachen Umsetzung individueller Vorstellungen


PeTeX

scrlayer-scrpage produziert Fehler

Beitrag von PeTeX »

Guten Tag zusammen,

meine Abschlussarbeit habe ich sonst immer im Büro kompiliert. Das war auch nie ein Problem. Nun versuche ich es zuhaus und es klappt einfach nicht. Es scheint ein Problem mit scrlayer-scrpage und pdflatex zu sein. Hier das Minimalbeispiel:
\documentclass{scrbook}
\usepackage{scrlayer-scrpage}
\begin{document}
Beispieltext
\end{document}
Und hier die zugehörige Fehlermeldung:
! Undefined control sequence.
\KV@KOMAarg.definelayer@background ...teProcessed 
                                                  \scrlayer@testunexpectedar...
l.1482 \newpairofpagestyles{scrheadings}{}
                                          %
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.
\@tempc ...xpr #1\relax }\FamilyKeyStateProcessed 
                                                  
l.1482 \newpairofpagestyles{scrheadings}{}
                                          %
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.

! Missing \endcsname inserted.
<to be read again> 
                   \dimexpr 
l.1482 \newpairofpagestyles{scrheadings}{}
                                          %
The control sequence marked <to be read again> should
not appear between \csname and \endcsname.

! You can't use `\dimexpr' in vertical mode.
<recently read> \dimexpr 
                         
l.1482 \newpairofpagestyles{scrheadings}{}
                                          %
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.


! LaTeX Error: Missing \begin{document}.

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

! Extra \endcsname.
<argument> ...csname ds@\CurrentOption \endcsname 
                                                  
l.1482 \newpairofpagestyles{scrheadings}{}
                                          %
I'm ignoring this, since I wasn't doing a \csname.

! Undefined control sequence.
\@tempc ...xpr #1\relax }\FamilyKeyStateProcessed 
                                                  
l.1482 \newpairofpagestyles{scrheadings}{}
                                          %
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.

! Missing \endcsname inserted.
<to be read again> 
                   \dimexpr 
l.1482 \newpairofpagestyles{scrheadings}{}
                                          %
The control sequence marked <to be read again> should
not appear between \csname and \endcsname.

! You can't use `\dimexpr' in horizontal mode.
<recently read> \dimexpr 
                         
l.1482 \newpairofpagestyles{scrheadings}{}
                                          %
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.

! Missing number, treated as zero.
<to be read again> 
                   \endcsname 
l.1482 \newpairofpagestyles{scrheadings}{}
                                          %
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Illegal unit of measure (pt inserted).
<to be read again> 
                   \endcsname 
l.1482 \newpairofpagestyles{scrheadings}{}
                                          %
Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)

! Extra \endcsname.
<recently read> \endcsname 
                           
l.1482 \newpairofpagestyles{scrheadings}{}
                                          %
I'm ignoring this, since I wasn't doing a \csname.

! Undefined control sequence.
\@tempc ...xpr #1\relax }\FamilyKeyStateProcessed 
                                                  
l.1482 \newpairofpagestyles{scrheadings}{}
                                          %
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.

! Missing \endcsname inserted.
<to be read again> 
                   \textwidth 
l.1482 \newpairofpagestyles{scrheadings}{}
                                          %
The control sequence marked <to be read again> should
not appear between \csname and \endcsname.

! Missing number, treated as zero.
<to be read again> 
                   \endcsname 
l.1482 \newpairofpagestyles{scrheadings}{}
                                          %
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Illegal unit of measure (pt inserted).
<to be read again> 
                   \endcsname 
l.1482 \newpairofpagestyles{scrheadings}{}
                                          %
Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)

! Extra \endcsname.
<recently read> \endcsname 
                           
l.1482 \newpairofpagestyles{scrheadings}{}
                                          %
I'm ignoring this, since I wasn't doing a \csname.

! Undefined control sequence.
\@tempc ...xpr #1\relax }\FamilyKeyStateProcessed 
                                                  
l.1482 \newpairofpagestyles{scrheadings}{}
                                          %
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.
\@tempc ...er @align}{#1}\FamilyKeyStateProcessed 
                                                  
l.1482 \newpairofpagestyles{scrheadings}{}
                                          %
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.
<argument> \@nil 
                 ,\@nil 
l.1482 \newpairofpagestyles{scrheadings}{}
                                          %
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.
<argument> \@nil ,\@nil 
                        
l.1482 \newpairofpagestyles{scrheadings}{}
                                          %
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.
\@iforloop ...x \expandafter \@iforloop \fi #2\@@ 
                                                  #3{#4}
l.1482 \newpairofpagestyles{scrheadings}{}
                                          %
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.

)
! Incomplete \iffalse; all text was ignored after line 1482.
<inserted text> 
                \fi 
l.3 \begin
          {document}
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.

! TeX capacity exceeded, sorry [input stack size=5000].
\scrlayer-scrpage.sty-h@@k ->
                             \let \scrlayer@AtEndOfPackage \@firstofone \scr...
l.3 \begin
          {document}
If you really absolutely need more capacity,
you can ask a wizard to enlarge me.
Mein System ist Windows 7 x64, Miktex 2.9 x64 und TexnicCenter 2.02 x64. Ich bin wirklich ein wenig ratlos und hoffe, dass die Angaben reichen, damit Ihr Euch ein Bild machen könnt.
Vielen Dank für Eure Hilfe,
Peter

Benutzeravatar
u_fischer
Forum-Meister
Forum-Meister
Beiträge: 4266
Registriert: Do 22. Nov 2012, 11:09
Kontaktdaten:

Beitrag von u_fischer »

Dein Minimalbeispiel funktioniert bei mir tadellos. Ist dein Miktex aktuell? Hast du Updates im User + Adminmodus gemacht?

PeTeX

Beitrag von PeTeX »

Hallo Ulrike,

Vielen Dank für Deine Antwort.
Updates habe ich zuletzt heute morgen eingespielt, das waren zwei, weiß aber nicht mehr genau für welche Pakete das war.
Führe ich jetzt bei Miktex --> Maintenance (Admin) --> Update (Admin) aus wird ein oder zwei Minuten lang gesucht, aber "There are currently no updates available."

Ich habe mehrere Repositories ausprobiert.

Noch so einer

Beitrag von Noch so einer »

Füge doch mal ein \listfiles (am einfachste als erste Zeile) in Dein Dokument ein und zeige dann die Dateiliste vom Ende der Log-Datei. Bei mir liefert das übrigens
 *File List*
 scrbook.cls    2014/06/03 v3.13.1761 KOMA-Script document class (book)
scrkbase.sty    2014/06/03 v3.13.1761 KOMA-Script package (KOMA-Script-dependent basics and keyval usage)
 scrbase.sty    2014/06/03 v3.13.1761 KOMA-Script package (KOMA-Script-independent basics and keyval usage)
  keyval.sty    2014/05/08 v1.15 key=value parser (DPC)
scrlfile.sty    2014/06/03 v3.13.1761 KOMA-Script package (loading files)
tocbasic.sty    2014/06/03 v3.13.1761 KOMA-Script package (handling toc-files)
scrsize11pt.clo    2014/06/03 v3.13.1761 KOMA-Script font size class option (11pt)
typearea.sty    2014/06/03 v3.13.1761 KOMA-Script package (type area)
scrlayer-scrpage.sty    2014/04/09 v0.9.1757 KOMA-Script package (end user interface for scrlayer)
scrlayer.sty    2014/01/23 v0.9.1638 KOMA-Script package (defining layers and page styles)
 ***********
Wobei ich TeX Live verwende und die aktuelle, offizielle KOMA-Script-Version installiert habe. Damit funktioniert das Beispiel ebenfalls einwandfrei.

Ich vermute, dass bei Dir irgendwo ältere Dateien von KOMA-Script mit neueren konkurrieren. Das kann man teilweise ebenfalls aus der Dateiliste erkennen. Besser erkennt man es ggf. in der Log-Datei, in der für die geladenen Paketdateien auch die Verzeichnisse mit angegeben sind. Bei KOMA-Script sollten alle Klassen- und Paketdateien aus demselben Verzeichnis stammen.

Benutzeravatar
Johannes_B
Moderator
Moderator
Beiträge: 5079
Registriert: Do 1. Nov 2012, 14:55
Kontaktdaten:

Beitrag von Johannes_B »

Welche KOMA-version hast du denn? Am einfachsten findest du das heraus, indem du \listfiles noch über documentclass schreibsst.

Eventuell brauchst du die neueste KOMA-script Version
TeXwelt - Fragen und Antworten Schaut vorbei und stellt Fragen.
LaTeX-Vorlagen?

Der Weg zum Ziel: Ruhe bewahren und durchatmen, Beiträge und unterstützende Links aufmerksam lesen, Lösungsansätze verstehen und ggf. nachfragen.

PeTeX

Beitrag von PeTeX »

Vielen Dank für Eure Antworten, Euer Verdacht war goldrichtig!

Habe das Update immer nur unter Update (Admin) ausgeführt, nie als User. Habe es noch einmal als User ausgeführt und prompt geht es.

Vielen Dank, Peter

Antworten