Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to use endnotes in my document. I use, of course, {endnotes} packages, but still don't know how to control the indent. I tried this, but it doesn't work:

\documentclass{book}

\usepackage{endnotes}
\let\footnote=\endnote

\begin{document}

Some text. Some text. Some text. Some text.\footnote{Some text. }

\begingroup
\parindent 0pt
\theendnotes
\endgroup

\end{document}

Thanks for any help.

share|improve this question
    
That's precisely how the manual suggests to do it. A bug, imho. –  Florian Oct 14 '11 at 13:07
    
@Florian Yes, it's a "documentation bug"; probably it remained there also after the setting of the paragraph shape for endnotes was deferred to the \enoteformat macro. –  egreg Oct 14 '11 at 13:18
add comment

1 Answer

up vote 6 down vote accepted

The parindent for endnotes is set by the macro \enoteformat: instead of restating its (modified) definition, it's simpler to patch it.

\documentclass{book}

\usepackage{endnotes}
\let\footnote=\endnote
\usepackage{etoolbox}
\patchcmd{\enoteformat}{1.8em}{0pt}{}{}

\begin{document}

Some text. Some text. Some text. Some text.\footnote{Some text. }

\theendnotes

\end{document}

The original definition is

\def\enoteformat{\rightskip=0pt \leftskip=0pt \parindent=1.8em
  \leavevmode\llap{\makeenmark}}

If you want to modify other aspects of endnote typesetting act on this.

share|improve this answer
    
Thank you! It's exactly what I need! –  kotsport Oct 14 '11 at 13:15
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.