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
Text Formatting ⇒ headings in endnote
- Stefan Kottwitz
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
headings in endnote
Changing the name is simple:
Using
This is the relevant definition in
You see, a standard section without numbering would be used, and the headers are set, but with
So, redefinitions may look like, in your own preamble:
The
Your end notes may then look like the other headings in your document, with default article settings like:
Stefan
Code: Select all
\renewcommand*{\notesname}{Myheading}
\markboth
you could adjust the headings, such as in this sample:Code: Select all
\clearpage
\markboth{this and that}{something else}
\begingroup
\parindent 0pt
\parskip 2ex
\def\enotesize{\normalsize}
\theendnotes
\endgroup
endnotes.sty
:Code: Select all
\def\notesname{Notes}%
\def\enoteheading{\section*{\notesname
\@mkboth{\MakeUppercase{\notesname}}{\MakeUppercase{\notesname}}}%
\mbox{}\par\vskip-\baselineskip}
\MakeUppercase
. You could remove it in a redefinition.So, redefinitions may look like, in your own preamble:
Code: Select all
\renewcommand*{\notesname}{Myheading}
\makeatletter
\renewcommand*{\enoteheading}{%
\section*{\notesname}%
\markboth{\notesname}{\notesname}%
\@afterindenttrue}
\makeatother
\@afterindenttrue
is to get the paragraph indentation like for any following line.Your end notes may then look like the other headings in your document, with default article settings like:
Stefan
LaTeX.org admin
headings in endnote
Thanks Stefan. The quick and dirty way I got what I want is to renamed
to
This seems to give me what I want, the label just lets me get a page number in the table of contents, so I thank you and I sure my publisher will thank you as well!!
\notename
as you suggested and then I created a myendnotes.sty
file by changing lines 373-376 in the standard endnotes.sty
file fromCode: Select all
\def\notesname{Notes}%
\def\enoteheading{\section*{\notesname
\@mkboth{\MakeUppercase{\notesname}}{\MakeUppercase{\notesname}}}%
\mbox{}\par\vskip-\baselineskip}
Code: Select all
\def\notesname{Notes}%
\def\enoteheading{\label{endn}\chapter*{\notesname
\@mkboth{\MakeUppercase{\notesname}}{\MakeUppercase{\notesname}}}%
\mbox{}\par\vskip-\baselineskip}