fmarotta / kaobook

A LaTeX class for books, reports or theses based on https://github.com/kenohori/thesis and https://github.com/Tufte-LaTeX/tufte-latex.
https://github.com/fmarotta/kaobook
LaTeX Project Public License v1.3c
862 stars 186 forks source link

Undefined control sequence \mainmatter #74

Closed Firionus closed 4 years ago

Firionus commented 4 years ago

I tried to compile book-template.tex today, but could not get rid of the error:

! Undefined control sequence.
<write> 
Class \KOMAClasSName 
                               Warning: Usage of deprecated command `\string...
l.198 \mainmatter
                  % Denotes the start of the main document content, resets p...

For full log see this gist: https://gist.github.com/Firionus/7de9836e709ebc7b0fb1e71aedd1f566

I'm using a fresh TeXLive install on Xubuntu 20.04 via tl-install. It's has some collections installed, but far from a full install. Kaobook was freshly cloned from Github, though downloading from LaTeX Templates gives the same result.

I'm stumped why the compiler doesn't recognize the redefinition of \mainmatter in kaobook.cls. While I'm not completely helpless with computers, LaTeX is its own beast, so I'd appreciate any help you can offer.

AlexanderZeilmann commented 4 years ago

The problem is not \mainmatter but \KOMAClasSName which should be \KOMAClassName (with lower case s). This is a bug in KOMAScript which was introduced in a recent version.

A quick fix would be to

I hope this helps, it worked for me.

Bildschirmfoto 2020-09-12 um 10 40 12

Firionus commented 4 years ago

Oh, yes, that seems to be it.

My buggy version was cat-version: 3.31. I updated to the latest koma-script by following https://komascript.de/node/2049. Now I'm at cat-version: 3.32.3541 and the problem is gone - book-template.tex compiles just fine! Thanks a lot.

How you guys do this in your free time without dependency management is a mystery to me...