I asked a question on how to set up the footer in koma script to get the right distance between page number and text using scrlayer-scrpage (https://tex.stackexchange.com/a/559567/18561). The solution works if komascript is loaded directly, but I cannot get it to work if I load komascript in a separate class file.
% \documentclass[footlines=1]{scrbook}
\documentclass{debug-langscibook}
% \usepackage{scrlayer-scrpage}
%\usepackage{scrpage2}
\usepackage{showframe}
\usepackage{lipsum}% only for dummy text
\begin{document}
\lipsum[1-20]
\end{document}
This is the self-defined class:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Class
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\LoadClass[
footlines=1,
]{scrbook}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Header and footer
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{datetime}
\usepackage{scrlayer-scrpage}
%\usepackage{scrpage2}
The footline=1 option is simply ignored.
footlines=1
in to the optional argument to\documentclass
it is a global option and will be picked up by packages as well, whereas it is only a local option toscrbook
if you put it in the argument of\LoadClass
. You could use\KOMAoptions
after you loadedscrlayer-scrpage
, or put a\PassOptionsToPackage{footlines=1}{scrlayer-scrpage}
before you loadscrlayer-scrpage
, or put it in the optional argument of\documentclass
for your own class as well.