I am working on a book using KOMA-script
in LYX 2.3. The first two chapters (Preface and Introduction_ are unnumbered. I can add them to the Table of Contents using e.g., \addcontentsline{toc}{chapter}{Preface}
. However, the page header does not show the chapter name.
I have tried adding \usepackage{scrlayer-scrpage}
to the LaTeX preamble and \pagehead {Preface}
to the text. This results in error message:
"Undefined control sequence" when trying to output pdf.
Any advice?