1

A "blind endnote" consists of the page number to which the endnote refers, some text that precedes where the endnote number would be in the text, and the text of the endnote. In the text itself, there is no number for the endnote. This structure is used for all the endnotes (in this case, in a book using memoir documentclass). This has become a popular endnote style for books targeted at the general public rather than academics.

The text looks like this (assume the text is on page 3):

This is the text with an endnote that will appear in the endnotes, but no endnote number.

The endnote looks like this:

3   "no endnote number": This is the text of the endnote."

The right side of the endnote text is ragged. The left side is left justified, with the left margin for the text even with the start of the footnote text (in the example, even with the opening quotation mark).

I started with unnumbered endnotes referenced by page and extract which gets me close to my desired outcome. I have played with enotez and other packages, but I get farther rather than closer to the desired outcome. I have three problems I can't solve:

  1. I can't replace the endnote number (in the endnotes) with the page number (it tried to redefine @makeenmark as pageref, but that did not work). There should not be a period after the page number.

  2. I can't get the headings in the endnotes for chapters where I have eliminated the chapter number (i.e., the Preface and the Conclusion). I understand I need additional code to address the * version of chapter headings, but the combinations I tried did not get the desired result.

  3. When a chapter does not have endnotes (unlikely, but possible), I want that chapter heading omitted from the endnotes. In the example, the heading for the second chapter would not be in the endnotes.

I have reached the limits of my current abilities. My MWE is as follows:

\documentclass{memoir}

\usepackage{endnotes}
\usepackage{etoolbox}
\usepackage{ebgaramond}

\makeatletter
\def\endnote{\@ifnextchar[\@xendnote{\stepcounter{endnote}%
    \protected@xdef\@theenmark{\theendnote}%
    \label{en:\@theenmark}%
    %\@endnotemark
    \@endnotetext}}

\def\@makeenmark{\pageref{en:\@theenmark}}

\renewcommand{\enotesize}{\normalsize}
\renewcommand\enoteformat{%
    \raggedright
    \leftskip=1.8em
    \makebox[0pt][r]{\theenmark. \rule{0pt}{\dimexpr\ht\strutbox}}%
 }
\apptocmd{\@makechapterhead} {\addtoendnotes{\protect\subsection* {\textsc{\MakeLowercase{\thechapter: #1}}}\indent}}{}{}
\makeatother

\begin{document}

\tableofcontents

\chapter*{Preface}
    \addcontentsline{toc}{chapter}{Preface}
This is a sentence in the preface.\endnote{\textbf{``in the preface'':} This is the preface endnote. I have made each of the endnotes long so that the text will wrap.}

\chapter{First Chapter}
This is a sentence in the first chapter.\endnote{\textbf{``the first chapter'':} This is the first chapter endnote. I have made each of the endnotes long so that the text will wrap.}

\chapter{Second Chapter}
This is a sentence in the second chapter; it does not have an endnote.

\chapter{Third Chapter}
This is a sentence in the third chapter.\endnote{\textbf{``the third chapter'':} This is the third chapter endnote. I have made each of the endnotes long so that the text will wrap.}

\chapter*{Conclusion}
    \addcontentsline{toc}{chapter}{Conclusion}
This is a sentence in the conclusion.\endnote{\textbf{``in the conclusion'':} This is the conclusion endnote. I have made each of the endnotes long so that the text will wrap.}

\clearpage

\theendnotes

\end{document}

The MWE gets me the following (which does not have the Preface or Conclusion headings in the endnotes and does not have the page numbers instead of the endnote numbers): enter image description here

2

Memoir provides \pagenote as an alternative to the endnote package as a way to create endnotes. By tweaking the code for \pagenote you can get a proper blind endnote. The following code builds on Memoir class endnotes reverse order of \idtextinnotes and \printpageinnotes to get the desired results.

Note that the endnotes have the page number followed by some space, then text that shows where the endnote is keyed to text in the chapter (quoted and in boldface), a colon, and then the text of the endnote. Also note that the paragraph containing the text is left justified. This follows the format typically used by publishers.

This solution also addresses the three problems I raised:

  1. It shows the page number for the endnote rather than an endnote number.
  2. It includes in the Notes headings for unnumbered chapters (e.g., Preface, Conclusion).
  3. It does not show headings for chapters without endnotes.
\documentclass{memoir}`

\usepackage{ebgaramond}
\makepagenote
\notepageref

\makeatletter
\renewcommand*{\notedivision}{{\chapter*\notesname}}
\renewcommand*{\pagenotesubhead}[3]{\section*{#2: #3}}
\renewcommand\pagenotesubheadstarred[3]{\section*{#2 #3}}
\renewcommand*{\idtextinnotes}[1]{\textbf{``#1'':}\hskip .5em}
\renewcommand*{\pageinnotes}[1]{\pageref{#1}\hskip .5em}
\renewcommand{\prenoteinnotes}{\par\noindent\hangindent 2em}
\renewcommand\startnoteentrystart[4]{%
  \prenoteinnotes
  \pageinnotes{#3}
  \hskip 1em
  \noteidinnotes{#1}{#2}
  \@ifmtarg{#2}{\def\@currentlabel{#1}}{}
  \pagenoteanchor{#4}
  \prenotetext%
}
\makeatother

\begin{document}

\tableofcontents*

\chapter*{Preface}
    \addcontentsline{toc}{chapter}{Preface}

This is a sentence in the preface.\pagenote[in the preface]{This is the preface endnote. I have made each of the endnotes long so that the text will wrap.} This is a second sentences in the preface, to test what happens when there are two notes.\pagenote[are two notes]{This is the second preface endnote. I have made each of the endnotes long so that the text will wrap.}

\chapter{First Chapter}

This is a sentence in the first chapter.\pagenote[the first chapter]{This is the first chapter endnote. I have made each of the endnotes long so that the text will wrap.}

\chapter{Second Chapter}

This is a sentence in the second chapter; it does not have an endnote.

\chapter{Third Chapter}

This is a sentence in the third chapter.\pagenote[the third chapter]{This is the third chapter endnote. I have made each of the endnotes long so that the text will wrap.}

\chapter*{Conclusion}
    \addcontentsline{toc}{chapter}{Conclusion}

This is a sentence in the conclusion.\pagenote[in the conclusion]{This is the conclusion endnote. I have made each of the endnotes long so that the text will wrap.}

\clearpage

\printpagenotes
    \addcontentsline{toc}{chapter}{Notes}

\end{document}

This is the output:

enter image description here

  • I had a go at this but you beat me both in time and understanding. Well done. – Peter Wilson Apr 3 at 19:49
  • Thanks @PeterWilson, much appreciated! – kgrady Apr 4 at 15:09

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.