GeneralText Positioning for End-notes

LaTeX specific issues not fitting into one of the other forums of this category.
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Text Positioning for End-notes

Post by AleCes »

Hello everybody,

I've got two problems with the enotez package and I cannot get to find any information to solve them in the guide.
  1. Note numbers protrude beyond the left edge.
  2. There's too much space between the lines of the same note. I'm not talking about space between different notes here.
Minimal example:

Code: Select all

\documentclass[a5paper, openany, 10pt]{book}
\usepackage[top=1.5cm,headsep=4pt,outer=2cm,inner=1cm,nofoot,bottom=1.5cm]{geometry}
\usepackage{blindtext}
\usepackage{bookmark}
\usepackage{fancyhdr}
\usepackage[reset=true,backref=true,totoc=chapter,split=chapter]{enotez}
\pagestyle{fancy}
\fancyhf{}
\fancypagestyle{plain}{%
\fancyhf{} 
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}
\renewcommand{\chaptermark}[1]{%
\markboth{\MakeUppercase{%
\thechapter.%
\ #1}}{}}
\fancyhead[RO]{\rightmark}
\fancyhead[LE]{\leftmark}
\fancyhead[RE]{\thepage}
\fancyhead[LO]{\thepage}

\begin{document}
\chapter{Introduction}
\blindtext
\blindenumerate[10]
\chapter{Conclusion}
\blindtext
\blindenumerate[10]
\printendnotes
\end{document}
Thanks very much

Recommended reading 2024:

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

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

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Re: Text Positioning for End-notes

Post by cgnieder »

Your example doesn't contain any notes, does it? Can you modify your MWE to actually show the problems your having?

Regards
site moderator & package author
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Text Positioning for End-notes

Post by AleCes »

cgnieder wrote:Your example doesn't contain any notes, does it? Can you modify your MWE to actually show the problems your having?

Regards
I'm sorry, I forgot to insert notes :? Here's the revised minimal example:

Code: Select all

\documentclass[a5paper, openany, 10pt]{book}
\usepackage[
  top=1.5cm,
  bottom=1.5cm
  headsep=4pt,
  outer=2cm,
  inner=1cm,
  nofoot
]{geometry}
\usepackage{blindtext}
\usepackage{bookmark}
\usepackage{fancyhdr}
\usepackage[
  reset=true,
  backref=true,
  totoc=chapter,
  split=chapter
]{enotez}

\fancyhf{}
\fancypagestyle{plain}{%
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}
\renewcommand{\chaptermark}[1]{%
\fancyhead[RO]{\rightmark}
\fancyhead[LE]{\leftmark}
\fancyhead[RE]{\thepage}
\fancyhead[LO]{\thepage}
\pagestyle{fancy}
\markboth{\MakeUppercase{\thechapter.\ #1}}{}}

\begin{document}
  \chapter{Introduction}
    \blindtext
    \endnote{\blindtext}

  \chapter{Conclusion}
    \blindtext
    \endnote{\blindtext}
    \printendnotes
\end{document}
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Text Positioning for End-notes

Post by cgnieder »

You may want to use a different instance of the list, maybe itemize. (The default paragraph instance is missing a \par which is why the notes have the wrong leading. I'll fix this.):

Code: Select all

\documentclass[a5paper, openany, 10pt]{book}
\usepackage[top=1.5cm,headsep=4pt,outer=2cm,inner=1cm,nofoot,bottom=1.5cm]{geometry}
\usepackage{blindtext}
\usepackage{bookmark}
\usepackage{enotez}

\setenotez{
  reset = true ,
  backref = true ,
  totoc = chapter ,
  split = chapter ,
  list-style = itemize
}

\begin{document}
\chapter{Introduction}
\blindtext
\endnote{\blindtext}
\blindtext
\endnote{\blindtext}

\chapter{Conclusion}
\blindtext
\endnote{\blindtext}
\blindtext
\endnote{\blindtext}

\printendnotes
\end{document}
Regards
site moderator & package author
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Text Positioning for End-notes

Post by AleCes »

I've already tried the itemize option, but it's not of my liking because:
  1. Two-digits numbers protrude inward.
  2. Text is indented only in the first line.
Isn't there a workaround code to patch the package on the fly?
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Text Positioning for End-notes

Post by cgnieder »

Re 1.: redefine \enmark.

Re 2.: I don't understand what you mean.

Code: Select all

\documentclass[a5paper, openany, 10pt]{book}
\usepackage[top=1.5cm,headsep=4pt,outer=2cm,inner=1cm,nofoot,bottom=1.5cm]{geometry}
\usepackage{blindtext}
\usepackage{bookmark}
\usepackage{enotez}

\setenotez{
  reset = true ,
  backref = true ,
  totoc = chapter ,
  split = chapter ,
  list-style = itemize
}
\renewcommand*\enmark[1]{\llap{#1}}

\begin{document}
\chapter{Introduction}
\blindtext
\endnote{\blindtext}
\blindtext
\endnote{\blindtext}
\blindtext
\endnote{\blindtext}
\blindtext
\endnote{\blindtext}
\blindtext
\endnote{\blindtext}
\blindtext
\endnote{\blindtext}
\blindtext
\endnote{\blindtext}
\blindtext
\endnote{\blindtext}
\blindtext
\endnote{\blindtext}
\blindtext
\endnote{\blindtext}


\printendnotes
\end{document}
enotez.png
enotez.png (107.68 KiB) Viewed 7187 times
Regards
site moderator & package author
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Text Positioning for End-notes

Post by AleCes »

Never mind, \enmark both points.

Thank you very much!!! ;)
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Text Positioning for End-notes

Post by AleCes »

Sorry to reopen the topic :oops: but I've just remarked that if both \usepackage{fontspec} and \setenotez{backref=true} are present in the prologue, then note markers on the main text cause the line to exceed its normal height and the appearance is ugly.

New minimal example:

Code: Select all

\documentclass[a5paper, openany, 10pt]{book}
\usepackage{fontspec}
\setmainfont{FreeSerif} % or any other font, the result doesn't change
\usepackage[top=1.5cm,headsep=4pt,outer=2cm,inner=1cm,nofoot,bottom=1.5cm]{geometry}
\usepackage{blindtext}
\usepackage{bookmark}
\usepackage{enotez}
\setenotez{
reset = true ,
backref = true ,
totoc = chapter ,
split = chapter ,
list-style = itemize
}
\renewcommand*\enmark[1]{\llap{#1}}

\begin{document}
\chapter{Introduction}
\blindtext
\endnote{\blindtext}
\blindtext
\endnote{\blindtext}
\blindtext
\endnote{\blindtext}
\blindtext
\endnote{\blindtext}
\blindtext
\endnote{\blindtext}
\blindtext
\endnote{\blindtext}
\blindtext
\endnote{\blindtext}
\blindtext
\endnote{\blindtext}
\blindtext
\endnote{\blindtext}
\blindtext
\endnote{\blindtext}
\printendnotes
\end{document}
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Text Positioning for End-notes

Post by cgnieder »

AleCes wrote:I've just remarked that if both \usepackage{fontspec} and \setenotez{backref=true} are present in the prologue, then note markers on the main text cause the line to exceed its normal height and the appearance is ugly.
I cannot reproduce this. I haven't FreeSerif installed so I used another font: everything looks normal. Can you attach a picture maybe?

Regards
site moderator & package author
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Re: Text Positioning for End-notes

Post by AleCes »

I uploaded a pdf, the font this time is Linux Libertine, maybe you have this one.
Attachments
enotez Test.pdf
(26.1 KiB) Downloaded 359 times
Post Reply