I have tried the solution from Header wrong when using endnotes package. I have adapted it to enotez and use it with KOMA scrbook documentclass.
unfortunately, there seem not to be an effect on the page headers. with the original solution with endnotes the right headers were changed to "Notes" but the right headers were still the last chapter.
I would like that after \printendnotes the effect is the same as with \bibliography which puts the same page header "bibliiography" left and right.
What is the best solution?
here the MWE
\documentclass{scrbook}
\KOMAoptions{paper=
128.5mm:198.4mm, %(5,06" x 7,91") %ziel
DIV=9, %ziel kleines buch
fontsize=12pt,
headings=normal,
}
%%%% Sprache
\usepackage[german]{babel} %scheint
\usepackage{lipsum}
%\usepackage{endnotes}
\usepackage{enotez}
\let\footnote=\endnote
\makeatletter
\def\enoteheading{\section*{\notesname
\markright{\MakeUppercase{\notesname}}}%
\@afterindenttrue
}
\makeatother
% Following command to produce dummy text and notes
\newcommand{\lipnote}{\lipsum*\footnote{\lipsum}\par}
\begin{document}
\chapter{A chapter}
\section{A section}
\lipnote
\lipnote
\clearpage
% \theendnotes
\printendnotes
\end{document}

\markright{right}only sets the right mark. If you want to set both right and left mark use\markboth{left}{right}– cgnieder Apr 23 '20 at 07:23\def\enoteheading...seems not to have any effect. I assume that the keywords forenotezare different and the ones I use are specific forendnotes. I checked the documentation forenotezbut could not find any hint. – user855443 Apr 23 '20 at 13:22