2

I have end notes generated with the package endnotes and now I would like to stop using endnotes and start using enotez.

My end notes rendered with endnotes look like this: enter image description here

while the same end note rendered with enotez looks like this: enter image description here

There are some subtle differences that at this moment I do not care about, my goal is to get the number of the note (in this case the blue 3) in an upper position and without the final dot. Is it possible? And how?

MWE:

\documentclass{article}
\usepackage[backref=true]{enotez}
\usepackage{color,hyperref}
\definecolor{linkcolor}{rgb}{0,0,0.5}
\hypersetup{colorlinks=true,linkcolor=linkcolor,citecolor=linkcolor,
            filecolor=linkcolor,urlcolor=linkcolor}
\let\note=\endnote

\begin{document}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent nunc nisl, egestas non viverra at, sagittis eu mauris. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur malesuada gravida dui, ac dapibus libero auctor vel. Nam eu fermentum justo. Mauris sed aliquam mi. Sed eleifend, erat quis dictum sagittis, elit odio pretium dolor, eu semper dui sapien sit amet justo. In consectetur lacinia diam at venenatis.\note{
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent nunc nisl, egestas non viverra at, sagittis eu mauris. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur malesuada gravida dui, ac dapibus libero auctor vel. Nam eu fermentum justo. Mauris sed aliquam mi. Sed eleifend, erat quis dictum sagittis, elit odio pretium dolor, eu semper dui sapien sit amet justo. In consectetur lacinia diam at venenatis.
}
\printendnotes
\end{document}

Output of the MWE: enter image description here

  • A starter document, compilable, would help to help you – user31729 Feb 13 '16 at 15:53
  • @ChristianHupfer I added it! – Alessandro Jacopson Feb 13 '16 at 15:54
2

In my opinion, the enotez package should offer this style as an option. However, you can create it.

\documentclass{article}

\usepackage[backref=true]{enotez}
\usepackage{xcolor,hyperref}

\definecolor{linkcolor}{rgb}{0,0,0.5}
\hypersetup{
  colorlinks=true,
  linkcolor=linkcolor,
  citecolor=linkcolor,
  filecolor=linkcolor,
  urlcolor=linkcolor
}

\DeclareInstance{enotez-list}{custom}{paragraph}
 {
  number = \makebox[0pt][r]{\textsuperscript{#1}},
  format = \indent\normalfont,
 }

\begin{document}

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent nunc nisl, egestas non viverra at, 
sagittis eu mauris. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos 
himenaeos. Curabitur malesuada gravida dui, ac dapibus libero auctor vel. Nam eu fermentum justo. 
Mauris sed aliquam mi. Sed eleifend, erat quis dictum sagittis, elit odio pretium dolor, eu semper dui 
sapien sit amet justo. In consectetur lacinia diam at venenatis.\endnote{Lorem ipsum dolor sit amet, 
consectetur adipiscing elit. Praesent nunc nisl, egestas non viverra at, sagittis eu mauris. Class 
aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur 
malesuada gravida dui, ac dapibus libero auctor vel. Nam eu fermentum justo. Mauris sed aliquam mi. Sed 
eleifend, erat quis dictum sagittis, elit odio pretium dolor, eu semper dui sapien sit amet justo. In 
consectetur lacinia diam at venenatis.}

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent nunc nisl, egestas non viverra at, 
sagittis eu mauris. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos 
himenaeos. Curabitur malesuada gravida dui, ac dapibus libero auctor vel. Nam eu fermentum justo. 
Mauris sed aliquam mi. Sed eleifend, erat quis dictum sagittis, elit odio pretium dolor, eu semper dui 
sapien sit amet justo. In consectetur lacinia diam at venenatis.\endnote{Lorem ipsum dolor sit amet, 
consectetur adipiscing elit. Praesent nunc nisl, egestas non viverra at, sagittis eu mauris. Class 
aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur 
malesuada gravida dui, ac dapibus libero auctor vel. Nam eu fermentum justo. Mauris sed aliquam mi. Sed 
eleifend, erat quis dictum sagittis, elit odio pretium dolor, eu semper dui sapien sit amet justo. In 
consectetur lacinia diam at venenatis.}

\printendnotes[custom]

\end{document}

enter image description here

  • It works great with number = \textsuperscript{#1} Why do we need to put it in \makebox[0pt][r]){ } ? – Spherical Triangle Apr 25 at 10:56
  • @SphericalTriangle In order to right align the numbers in case they have more than one digit. – egreg Apr 25 at 11:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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