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.

See my picture.

enter image description here

Also I want to add a space between the number and note. Besides writing \endnote{ hello}, are there any formal way?

This is my source code.

\documentclass{article}
\usepackage{endnotes}
\renewcommand{\notesname}{References}
\renewcommand{\theendnote}{[\arabic{endnote}]}

\begin{document}
\section{Introduction}
As traffic in Macao is a problem\endnote{ hello}, we want to do the project to find out the relationship of traffic among different sites\endnote{world}.

\theendnotes
other references...

\end{document}
share|improve this question
1  
From page 3 of the manual, you should redefine \@makeentext{<note>}. Unfortunately, this macro is neither defined nor used in the actual style file. –  Sean Allred Feb 26 '13 at 13:54

1 Answer 1

up vote 6 down vote accepted

The endnotes package uses \makeenmark for typesetting the footnote mark both in the text and in the endnotes.

We can take advantage of the fact that the endnotes are printed in a group to redefine the command locally:

\documentclass{article}
\usepackage{endnotes,etoolbox}

\renewcommand{\notesname}{References}

% end note marker = superscripted number in brackets
\renewcommand\makeenmark{\textsuperscript{[\theenmark]}}

% in the endnotes, we change it without `\textsuperscript`, adding a space
\patchcmd{\theendnotes}
  {\makeatletter}
  {\makeatletter\renewcommand\makeenmark{[\theenmark] }}
  {}{}

\begin{document}
\section{Introduction}

As traffic in Macao is a problem\endnote{hello}, we want to do the project
to find out the relationship of traffic among different sites\endnote{world}.

\theendnotes

other references...

\end{document}

enter image description here

share|improve this answer
    
Thank you very much!! Great stackchange! –  LoveRight Feb 26 '13 at 15:01

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.