I want to produce two versions of a book, one with footnotes and the other with endnotes. I'm using the endnote package to convert the footnotes to endnotes to produce the second version. But I need to alter the text on the heading and get the headers on each page to look the same for the endnotes as the other chapters in the book. For example, currently the heading says "Notes", say I wish to change this to "Myheading which is underlined" and then have "something else" appear in the headers of the pages on which the endnotes themselves appear. Is there a simple way to do this?

Thanks

I saw the crosspost to LaTeX-Community.org earlier and already answered there. So I copy my shortened answer to here now.

The relevant definition in endnotes.sty is:

\def\notesname{Notes}%
\@mkboth{\MakeUppercase{\notesname}}{\MakeUppercase{\notesname}}}%
\mbox{}\par\vskip-\baselineskip}


You see, a standard section without numbering would be used, and the headers are set, but with \MakeUppercase. You could remove it in a redefinition.

So, redefinitions may look like, in your own preamble:

\renewcommand*{\notesname}{Myheading}
\makeatletter