I'm writing with TeXStudio, and create pdfs with "pdflatex.exe -synctex=1 -interaction=nonstopmode "Fallout Equestria - Torn Skies".tex"

I updated with the MikTex. Before everything went just fine. Now I keep getting these errors:

Missing number, treated as zero. \subsection{Preface +} Illegal unit of measure (pt inserted). \subsection{Preface +} Missing number, treated as zero. \subsection{Preface +} Illegal unit of measure (pt inserted). \subsection{Preface +}

The Main file looks like this:


    With the usual slight crackling static of Old World Technology, the Holotape player comes to life, lighting up controls, buttons and the Screen of a Stable-Tec terminal. After the usual boot screen, instructions flare up:\\
        \termline{Files marked with a - are pure text.}
        \termline{Files marked with a + are audio recordings.}
        \termline{Files marked with a * are audio-visual recordings.}
        \termline{Files marked with a \# are Rapid Inject Memory Recordings (R.I.M.R.).}
        \termline{Always make sure to use the proper interface for the different file types.}
        \termline{Please keep the R.I.M.R. interface properly maintained and sanitary}
        \termline{to prevent infections, injuries and fatal brain damage.}
        \section{Preface +}
Last Edit: \today




%Ancors in der Inhaltsangabe
    pdfauthor={Silver Fire},
    pdftitle={Fallout Equestria - Torn Skies},
    pdfkeywords={Fallout Equestria, sidefic, gore, grimdark, alternate universe},
    pdfproducer={Latex with hyperref},
%Alle sections auf neuen Seiten anfangen

% Schusterjungen und Hurenkinder vermeiden
\clubpenalty = 10000
\widowpenalty = 10000 
\displaywidowpenalty = 10000

and definition:

\author{Silver Fire}
\title{Fallout Equestria}
\subtitle{Torn Skies}
\date{}%entfernt das datum aus dem titel


\newcommand{\termline}[1]{\>\space #1\\}




Wall of code, I know. Sorry for that. I'm not that firm with LaTeX as I'd like to be. If requested I can provide the complete source for error checking.

  • 1
    Welcome to TeX.SX. You're using the \documentclass in a separate file? That's.... weird ;-)
    – user31729
    Commented Apr 2, 2016 at 13:49
  • 1
    You should also post the part of your document that your log file refers to as the source of the error. In this case it looks like it is choking on something that is somehow related to \subsection{Preface +}
    – A Feldman
    Commented Apr 2, 2016 at 13:56
  • @ChristianHupfer Thanks! Weird is my middle name. It's due to a selfmade template, so I can quickly switch between formatting optimized for computerscreens and paper... Warum schreib ich dir das auf englisch? XD
    – NCRT
    Commented Apr 2, 2016 at 14:04
  • @AFeldman Yes the log says the error comes from the \subsection{Preface +} line, but it occurs on every section, subsection and paragraph in the entire project.
    – NCRT
    Commented Apr 2, 2016 at 14:07
  • You might benefit from creating a really simple MWE without your bells and whistles, seeing if it still throws your error. Seems like you have a lot of moving parts here. Do simple documents compile without error?
    – A Feldman
    Commented Apr 2, 2016 at 14:20

2 Answers 2


The reason can be found in the log file:

Class scrbook Info: Deactivating the titlesec workaround, (scrbook) because package is newer than expected on input line 4.

There was an update of package titlesec. If you really want to use the new version together with a KOMA-Script class you have to install the prerelease of version KOMA-Script version 3.20. There the titlesec workaround is activated for titlesec 2016/03/21 v2.10.2 too. See also Fehler bei Verwendung von titlesec (German).

Update KOMA-Sript Version 3.20 was released on 2016/05/10. It is on CTAN, in MiKTeX 2.9 and in TeX Live 2016.

Suggestion without titlesec

But you can ensure that a section starts on a new page without package titlesec: redefine \sectionlinesformat to insert a \clearpage before section headings.

\usepackage{blindtext}%\dummy text


  \@hangfrom{\hskip #2#3}{#4}%


enter image description here


I've given the log file a closer look and found the following hint:

Class scrbook Warning: Usage of package `titlesec' together
(scrbook)              with a KOMA-Script class is not recommended.
(scrbook)              I'd suggest to use the package only
(scrbook)              if you really need it, because it breaks several
(scrbook)              KOMA-Script features, i.e., option `headings' and
(scrbook)              the extended optional argument of the section
(scrbook)              commands.
(scrbook)              Nevertheless, using requested
(scrbook)              package `titlesec' on input line 25.

I used "titlsec" to ensure that every section starts on a new page. Until today, that never was an issue. I guess a KOMA-script update did that.

  • Looks like you answered your own question!
    – A Feldman
    Commented Apr 2, 2016 at 14:41
  • There has been an update of titlesec recently too
    – user31729
    Commented Apr 3, 2016 at 16:02
  • The titlesec update did break stuff, also for the standard classes. A fix was updated a few days later.
    – Johannes_B
    Commented Jun 7, 2016 at 16:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .