Closed henrikmidtiby closed 4 years ago
By taking elements out of the cleanthesis package, the following minimal example was found
\documentclass{scrreprt}
\listfiles
\RequirePackage{xkeyval}
\newlength{\lensectionnumber}
\renewcommand{\sectionmark}[1]{%
\markright{%
\settowidth{\lensectionnumber}{\thesection\quad}
}%
}
\usepackage{calc}
\begin{document}
\chapter{Chap}
\section{Sec 1}
\end{document}
Which fails with the error
! Undefined control sequence.
\in@ #1#2->\begingroup \def \in@@
##1#1{}\toks@ \expandafter {\in@@ #2{}{}#1...
l.17 \section{Sec 1}
The full output from pdflatex is given below for reference:
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./my-thesis.tex
LaTeX2e <2018-04-01> patch level 5
(/usr/local/texlive/2018/texmf-dist/tex/latex/koma-script/scrreprt.cls
Document Class: scrreprt 2018/03/30 v3.25 KOMA-Script document class (report)
(/usr/local/texlive/2018/texmf-dist/tex/latex/koma-script/scrkbase.sty
(/usr/local/texlive/2018/texmf-dist/tex/latex/koma-script/scrbase.sty
(/usr/local/texlive/2018/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2018/texmf-dist/tex/latex/koma-script/scrlfile.sty)))
(/usr/local/texlive/2018/texmf-dist/tex/latex/koma-script/tocbasic.sty)
(/usr/local/texlive/2018/texmf-dist/tex/latex/koma-script/scrsize11pt.clo)
(/usr/local/texlive/2018/texmf-dist/tex/latex/koma-script/typearea.sty))
(/usr/local/texlive/2018/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2018/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2018/texmf-dist/tex/generic/xkeyval/xkvutils.tex)))
(/usr/local/texlive/2018/texmf-dist/tex/latex/tools/calc.sty) (./my-thesis.aux)
chapter 1.
! Undefined control sequence.
\in@ #1#2->\begingroup \def \in@@
##1#1{}\toks@ \expandafter {\in@@ #2{}{}#1...
l.17 \section{Sec 1}
? R
OK, entering \nonstopmode...
! Illegal parameter number in definition of \@themark.
<to be read again>
1
l.17 \section{Sec 1}
! Undefined control sequence.
\in@ ...f \in@@ ##1#1{}\toks@ \expandafter {\in@@
#2{}{}#1}\edef \in@@ {\the...
l.17 \section{Sec 1}
! Undefined control sequence.
\in@ ... \expandafter {\in@@ #2{}{}#1}\edef \in@@
{\the \toks@ }\expandafter...
l.17 \section{Sec 1}
! Extra \else.
\@sect ...name }{\@currenttocentry }\fi \fi \else
\def \@svsechd {#6{\nobrea...
l.17 \section{Sec 1}
[1{/usr/local/texlive/2018/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./my-thesis.aux)
*File List*
scrreprt.cls 2018/03/30 v3.25 KOMA-Script document class (report)
scrkbase.sty 2018/03/30 v3.25 KOMA-Script package (KOMA-Script-dependent bas
ics and keyval usage)
scrbase.sty 2018/03/30 v3.25 KOMA-Script package (KOMA-Script-independent b
asics and keyval usage)
keyval.sty 2014/10/28 v1.15 key=value parser (DPC)
scrlfile.sty 2018/03/30 v3.25 KOMA-Script package (loading files)
tocbasic.sty 2018/03/30 v3.25 KOMA-Script package (handling toc-files)
scrsize11pt.clo 2018/03/30 v3.25 KOMA-Script font size class option (11pt)
typearea.sty 2018/03/30 v3.25 KOMA-Script package (type area)
xkeyval.sty 2014/12/03 v2.7a package option processing (HA)
xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
calc.sty 2017/05/25 v4.3 Infix arithmetic (KKT,FJ)
***********
)
(\end occurred when \ifx on line 17 was incomplete)
(\end occurred when \ifdim on line 17 was incomplete)
(see the transcript file for additional information)</usr/local/texlive/2018/te
xmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/local/texlive/2018/texm
f-dist/fonts/type1/public/amsfonts/cm/cmssbx10.pfb>
Output written on my-thesis.pdf (1 page, 16886 bytes).
SyncTeX written on my-thesis.synctex.gz.
Transcript written on my-thesis.log.
The aforementioned MWE works with the current cleanthesis v0.4.1. So I assume the issue is resolved.
The following minimal example fails to compile on my computer. I use the development branch of cleanthesis (commit id: a9d8d69d7f3960882971d6b0d40a3cfa66cacbbd).
Which lists the following files being used during compilation.