6

I'd like to have a particular costomization in endnotes with endnotes package. By default, the note number is joined to the first letter of note text. I'd like to have a fixed space between the two ones. At this time the result is

    1Dfh dfhdfh wertwert ertert 
asdf asdf dfgh erty rtuy rtuytu
asdf asdf dfgh erty rtuy rtuytu
    13Dfh dfhdfh wertwert ertert
asdf asdf dfgh erty rtuy rtuytu
asdf asdf dfgh erty rtuy rtuytu

But, I want it to have like

    1  Dfh dfhdfh wertwert ertert
asdf asdf dfgh erty rtuy rtuytu
asdf asdf dfgh erty rtuy rtuytu
    13  Dfh dfhdfh wertwert ertert
asdf asdf dfgh erty rtuy rtuytu
asdf asdf dfgh erty rtuy rtuytu

What setting do I have to modify?

====================================================== ADDENDUM

Sure, even it's trivial...

\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lipsum}
\usepackage{endnotes}
\let\footnote=\endnote
\begin{document}

\footnote{\lipsum[1]}

\footnote{\lipsum[2]}

\theendnotes

\end{document}
user41063
  • 1,967

3 Answers3

5

You can modify the definition of \makeenmark just before the \theendnotes command

\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lipsum}
\usepackage{endnotes}
\let\footnote=\endnote

\begin{document}

\footnote{\lipsum*[1]}

\footnote{\lipsum*[2]}

% modify how \makeenmark works
\renewcommand{\makeenmark}{\textsuperscript{\theenmark}\enspace}
\theendnotes

\end{document}

enter image description here

Another possibility would be

\renewcommand{\makeenmark}{\theenmark\enspace}

enter image description here

If you want to have the code in the preamble, which is probably a good thing to do, just do the following incantation:

\usepackage{etoolbox}
\preto{\theendnotes}{%
  \renewcommand{\makeenmark}{\textsuperscript{\theenmark}\enspace}%
}

Complete example:

\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lipsum}
\usepackage{endnotes}
\usepackage{etoolbox}
\preto{\theendnotes}{%
  \renewcommand{\makeenmark}{\textsuperscript{\theenmark}\enspace}%
}
\let\footnote=\endnote

\begin{document}

\footnote{\lipsum*[1]}

\footnote{\lipsum*[2]}

\theendnotes

\end{document}
egreg
  • 1,121,712
4

Add this lines in your preamble:

\usepackage{etoolbox}
\makeatletter
\patchcmd{\@endnotetext}
  {\@theenmark}
  {\@theenmark\enspace}
  {}
  {}
\makeatother

and you'll have

enter image description here

MWE

\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lipsum}
\usepackage{endnotes}

\let\footnote=\endnote

\usepackage{etoolbox}
\makeatletter
\patchcmd{\@endnotetext}
  {\@theenmark}
  {\@theenmark\enspace}
  {}
  {}
\makeatother


\begin{document}

Some\footnote{\lipsum[1]}text

\footnote{\lipsum[2]}

\theendnotes

\end{document} 
karlkoeller
  • 124,410
3

My answer is similar to egreg's but egreg is quicker...

\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lipsum}
\usepackage{endnotes}
\let\footnote\endnote
\begin{document}

  \footnote{\lipsum[1]}

  \footnote{\lipsum[2]}

  \def\makeenmark{\hbox{\theenmark}\quad}
  \theendnotes

\end{document}

endnotes

Or for flush left numbering, use

\def\makeenmark{\makebox[\parindent]{\theenmark\hfill}}

flush left markers

cfr
  • 198,882