LaTeX: continuous footnote numbers and footnote to endnote conversion

Continuous footnote numbering

When writing long documents in LaTeX, like books sometimes you want footnotes to run continuously through the document instead of restarting the count every chapter. This can be accomplished using the chngcntr package like this:

% In the preamble
\usepackage{chngcntr}
\counterwithout{footnote}{chapter}

Converting footnotes to Endnotes

Another thing that you usually see in books is that the footnotes don’t appear at the bottom of the page, but instead appear in the end of the book. The easy way to convert footnotes to endnotes in latex is by using the endnotes package like this:

% In the preamble
\usepackage{endnotes}
\let\footnote=\endnote
 
% In the document where you want the notes to be printed
\newpage
\theendnotes