ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel
  • »
  • Books, Literature, and Writing»
  • How to Write

The LaTeX endnotes package

Updated on May 10, 2010

Scholarly works usually group notes at the end of each chapter or at the end of the documents. These are called endnotes. Endnotes are not supported in standard LATEX, but they can be created by using the package endnotes.

The package endnotes typesets endnotes in a way similar to footnotes. This package was written by John Lavagnino in 1989, with several modifications and revisions by J"org Knappen, Dominik Wujastyk in1991, the stable version is the version of 1991. The latest revision was made by B.Gaulle. The macro file is endnotes.sty. This package forces LaTeX to produce footnotes in a list of notes set in small type at the end of the document instead of as footnotes set on the bottom of the page on which they occur. The package stores the endnotes in an extra external file with the file extension .ent.At the time when this package was written, due to memory constraints the endnotes produced cannot be stored in latex's internal memory. When the \listofendnotes command is invoked, the file is then read back into latex. LaTeX generates a new version of the .ent file each time you typeset the document.

The endnotes package is included automatically in most LaTeX distributions.

To use the endnotes, you can either modify the \documentstyle command to \documentstyle[endnotes]{article}, or when using \documentclass, add the command \usepackage{endnotes} in the preamble to invoke the endnotes package.

You can use either \footnote{text} or \endnote{text} but it is probably preferable to use \footnote for ease of conversion. Because you can turn all the footnotes in your documents into endnotes.

At the end of the document place the command \listofendnotes where you want the endnotes to appear (it must be after the last endnote).

You may want separate endnotes for each chapter, or a big block of them at the end of the whole document. Either will work, you just put \theendnotes wherever you want the endnotes so far to be inserted, which will insert a list of your endnotes and an automatic heading ("Notes"). However, you must add \setcounter{endnote}{0} after that if you want subsequent endnotes to start numbering at 1 again.

To turn all the footnotes in your documents into endnotes by adding \let\footnote=\endnote in your preamble, and then add something like



\parindent 0pt

\parskip 2ex




as the last thing in your document.

With this package, you can also output your footnotes as endnotes by simply giving the command: \renewcommand{\footnote}{\endnote}. The user interface for endnotes is very similar to the one for footnotes after substituting the word “foot” for “end”.

You may wish to precede this command with a \section*{Endnotes} or related command.

You can also use your own special endnote number by using command \endnote[NUM]{NOTE}, to insert an endnote numbered. For example, if endnotes are numbered *, **, etc. within pages, then \endnote[2]{...} produces endnote '**'.

You may want two notes point to the same endnote, you can use \endnotemark[NUM] command to produce just the endnote mark in the text, but no endnote, then use \endnotetext[NUM]{TEXT} Command to produce the endnote but no mark.

\addtoendnotes{TEXT} command to add text or commands to current endnotes file: for inserting headings, pagebreaks, and the like into endnotes sections.



    0 of 8192 characters used
    Post Comment

    • profile image

      Peterson Silva 6 years ago

      Wow, this is awesome, thanks! =D