3
\documentclass{article}
\usepackage{endnotes}
\begin{document}

text\endnote{test footnote}

\theendnotes

\end{document}

The there will be a word "Note" in front of the notes, how to remove this word "Notes"?

Alan Munn
  • 218,180

2 Answers2

5

You can use \renewcommand*{\enoteheading}{} to remove the heading completely.

Example:

\documentclass{article}
\usepackage{endnotes}
\renewcommand*{\enoteheading}{}% removes the heading comletely
\begin{document}

text\endnote{test footnote}

\theendnotes
\end{document}

If only text »Notes« (but not the vertical space) should be reomved (or replaced), redefine \notesname.

Example:

\documentclass{article}
\usepackage{endnotes}
\renewcommand*{\notesname}{}% removes only the name 
\begin{document}

text\endnote{test footnote}

\theendnotes
\end{document}
esdd
  • 85,675
0

I'm a beginner latex user, thus no expert at all. But yet, I found a solution by adding \def\notesname{\relax} in the definitions of the endnotes.

  • 1
    The other answer has \renewcommand*{\notesname}{}% which should do something similar here. But note that that still typesets a heading with empty title. If you want to get rid of the heading properly, the other answer suggests a better solution. In any case I recommend to avoid \def and use the LaTeX commend \renewcommand. – moewe Jul 27 '20 at 06:59
  • def\notesname{\relax don't leave the space for the notes title as well. – Fábio José de Jesus Jul 27 '20 at 11:43
  • Mhh, in my test \def\notesname{\relax} does leave a space, while \renewcommand*{\enoteheading}{} as in esdd's answer doesn't. In any case, if you want to retain the space, I think esdd's alternative suggestion of \renewcommand*{\notesname}{} is preferable over \def\notesname{\relax} since it uses LaTeX's \renewcommand instead of TeX's \def. – moewe Jul 27 '20 at 12:47
  • I did that using exam doc class. It worked for me. – Fábio José de Jesus Jul 27 '20 at 13:57
  • Mhhh, I get structurally the same behaviour with \documentclass{article} and \documentclass{exam}. \renewcommand*{\notesname}{}% removes the space induced by the section heading. \def\notesname{\relax} and the preferable \renewcommand*{\notesname}{} don't. Can you see a difference between your suggestion \def\notesname{\relax} and the in my eyes preferable \renewcommand*{\notesname}{} in your document? – moewe Jul 27 '20 at 15:47
  • Well, tomorrow I will show you the piece of a code on which I successfully applied that command. But I dropped this approach becouse I managed, with the help of tex stack's members collaboration, to implement newbox on the document I'm typesetting. All the time reading books and posts brought a nice results. – Fábio José de Jesus Jul 28 '20 at 03:16