Generalendnote formatting

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
albright
Posts: 2
Joined: Wed Dec 12, 2007 5:34 am

endnote formatting

Post by albright »

Hi all. Does anyone know how to have the endnote
number appear un-superscripted in the notes section,
but still superscripted in the body of the document?

Also, how do you stop the endnotes from being
indented.

Even better, I'd like a hanging indent for the
endnotes, something like this:

1. some text and
__some more text
__all in the same note

2. the next note similarly
___formatted

(where ___ represents blank space)

TIA<

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

endnote formatting

Post by gmedina »

The code below shows how to achieve what you desire. Feel free to make the necessary modifications according to your needs:

Code: Select all

\documentclass{article}
\usepackage[english]{babel}
\usepackage{endnotes}
\usepackage{blindtext}
\renewcommand\enoteformat{%
   \noindent\theenmark.\ \hangindent .7\parindent%
}

\begin{document}
\blindtext\endnote{This endnote has a lot of text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text.}

\blindtext\endnote{Another endnote.}
\theendnotes
\end{document}
The blindtext package was loaded only to automatically generate some text.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
albright
Posts: 2
Joined: Wed Dec 12, 2007 5:34 am

Re: endnote formatting

Post by albright »

Thanks very much for that. It works but the hanging
indent is correct for notes with a single digit number,
but incorrect for two digit numbered endnotes. (I
hope you see what I mean - with two digit numbers
the text of the first line is "too far" to the right and
does not align with the start of the second line when
I have parindent set to .7. Increasing parindent causes
the first line's text to be "too far" to the left for notes
with a single digit number)

By hacking around with endnote.sty I got a nice effect
where the endnote numbers are offset to the left in
the margin slightly and the note text aligns perfectly ...
Post Reply