I just performed a full TL update (--all) (1 hr ago) and noticed that one of my documents which used to compile OK now gives an error.
After trial and error, found the problem shows up when including titlesec with scrbook. But this used to work just fine before the update of the TeX distribution.
MWE
\documentclass[11pt]{scrbook}%
%\documentclass[11pt]{book}%
\usepackage[raggedright]{titlesec}
\errorcontextlines=200
\begin{document}
\mainmatter
\chapter{Introduction, Summary of results and lookup table}
\section{Introduction}
stuff
\end{document}
Now lualatex index.tex gives
>lualatex index.tex
This is LuaTeX, Version 1.10.0 (TeX Live 2019)
restricted system commands enabled.
(./index.tex
LaTeX2e <2018-12-01>
luaotfload | main : initialization completed in 0.134 seconds
(/usr/local/texlive/2019/texmf-dist/tex/latex/koma-script/scrbook.cls
Document Class: scrbook 2019/02/01 v3.26b KOMA-Script document class (book)
(/usr/local/texlive/2019/texmf-dist/tex/latex/koma-script/scrkbase.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/koma-script/scrbase.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2019/texmf-dist/tex/latex/koma-script/scrlfile.sty)))
(/usr/local/texlive/2019/texmf-dist/tex/latex/koma-script/tocbasic.sty)
(/usr/local/texlive/2019/texmf-dist/tex/latex/koma-script/scrsize11pt.clo)
(/usr/local/texlive/2019/texmf-dist/tex/latex/koma-script/typearea.sty))
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 5.
(/usr/local/texlive/2019/texmf-dist/tex/latex/titlesec/titlesec.sty
Package titlesec Warning: Non standard sectioning command \section
(titlesec) detected. Using default spacing and no format.
Package titlesec Warning: Non standard sectioning command \subsection
(titlesec) detected. Using default spacing and no format.
Package titlesec Warning: Non standard sectioning command \subsubsection
(titlesec) detected. Using default spacing and no format.
Package titlesec Warning: Non standard sectioning command \paragraph
(titlesec) detected. Using default spacing and no format.
Package titlesec Warning: Non standard sectioning command \subparagraph
(titlesec) detected. Using default spacing and no format.
) (./index.aux)
chapter 1.
! Missing number, treated as zero.
<to be read again>
}
\ttl@select ...@passexplicit \ttl@case \ttl@c {#2}
{#3}{#4}\fi \endgroup
\ttl@straight@ii ...t \ttl@select {#6}{#1}{#2}{#7}
\ttl@finmarks \@ifundefine...
l.13 \section{Introduction}
?
If I use the book class, the preceding MWE compiles with no errors.
What changed to make this fail? Can one no longer use titlesec with scrbook?
TL 2019 on Ubuntu (under windows 10 linux subsystem)


titlesecand KOMA Script don't really go together. This is what the long warning message tries to tell you. The KOMA Script author has added some compatibility code to his document class to lettitlesecdo some of its work even withscrbook, but the compatibility code is only executed fortitlesecversions before2016/03/22. If a newer version is detected, the workaround is inactive. You could contact the KOMA Script developer at https://komascript.de/forum or via email and ask for the fix to be reinstated for newertitlesecversions. ... – moewe Oct 05 '19 at 08:06titlesecwith KOMA Script classes at all. Instead one should try to mirror the effects with KOMA-Script built-ins. (I appreciate that this might take some work. But it would be more future proof.) – moewe Oct 05 '19 at 08:09titlesecwithscrbookfor many years. – egreg Oct 05 '19 at 14:14