I am using the document class scrreprt
to set a chapter preamble (using \setchapterpreamble{}
) as well as a header on the chapter start page. This usually works fine unless I introduce an abstract
environment in the chapter preamble. In this case, no header is produced on the chapter start page, and no error is reported. Header is produced fine on the other pages. A MWE to reproduce the issue:
\documentclass[twocolumn,twoside,abstract=on]{scrreprt}
\usepackage{scrlayer-scrpage}
\clearpairofpagestyles
\newpairofpagestyles[scrheadings]{test999}{
\KOMAoptions{headsepline=on}
\KOMAoptions{plainheadsepline=on}
\lehead[plain.LEFT]{LEFT}
\rehead[plain.RIGHT]{RIGHT}
\lohead[plain.LEFT]{LEFT}
\rohead[plain.RIGHT]{RIGHT}
\cefoot{\pagemark} \cofoot{\pagemark}
}
\pagestyle{test999}
\renewcommand*\chapterpagestyle{plain.test999}
\usepackage{fontspec}
\usepackage{lipsum}
\begin{document}
\setchapterpreamble{\begin{abstract} \lipsum[1] \end{abstract}}
\chapter{one}
\section{one.one}
\lipsum
\end{document}
Replacing or removing the abstract
environment from the chapter preamble in the above code results in the header being produced correctly on the chapter start page.
I can use the quote
environment to get around this temporarily, but would appreciate any help for a long term solution as I prefer to use the abstract
environment.