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
861 stars 185 forks source link

! Package scrbase Error: unknown option `pagenumberwidth=2.1em'. #109

Closed tbm closed 3 years ago

tbm commented 3 years ago

I get the following error after updating kaobook:

! Package scrbase Error: unknown option `pagenumberwidth=2.1em'.

The change was made in 2048120ec12eda29.

Maybe my scrbase is too old? (I'm on Debian 10/stable)

bcw commented 3 years ago

I am having the same issue (also on Debian 10/stable), and yes it does appear that an old version of scrbase is the problem. scrbase is part of KOMA-Script (which this project uses), and texdoc koma-script (or more specifically, texdoc scrguien) on Debian shows the version as 3.25. Searching for pagenumberwidth there gives no results, but the latest documentation, linked from the CTAN page, tells me it's there; but only from version 3.27.

I don't know enough about TeX programming to fix this issue myself, and Debian (and any others still using the old code) may upgrade their version after a while anyway, but it would be nice if some conditional code to check for this feature could be added in the meantime...

fmarotta commented 3 years ago

You are right, I have now added a check so that the pagenumberwidth option is used only if scrbase is at least version 3.27. Could you please confirm that now there are no errors? Thank you.

tbm commented 3 years ago

Now I get:

! Undefined control sequence.
\mainmatter ->\Ifthispageodd 
                             {\afterpage {\blankpage }}{}\oldmainmatter \pag...
l.54 \mainmatter

? 
tbm commented 3 years ago

If I revert b3f57c979cc42ac4b it works.

fmarotta commented 3 years ago

I have added a version check for that as well.

tbm commented 3 years ago

Thanks it works now!