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.

I'm writing a non fiction book using the memoir package.

I've been playing around quite a lot, and I must say I'm very satisfied with Peter Wilson's guide.

Pagenotes are great because they allow me to have all notes at the end of the book, divided by chapter, with continuos numbering.

There is one thing though I can't seem to find: how to change the indentation of multiples lines in the endnotes (so that the text of the the second and successive lines is aligned with the text of the first line, not with the note number).

With normal footnotes I could do this:

\documentclass{article}

\usepackage[english]{babel}
\usepackage{blindtext}

\usepackage{scrextend}
\deffootnote[1em]{1.5em}{1em}{\textsuperscript{\thefootnotemark}}

\begin{document}

\blindtext\footnote{\blindtext}

\end{document}

How do I achieve the same result with pagenotes?

share|improve this question
1  
Your posting is a bit confusing: You say that you use the memoir document class, yet the MWE uses the article document class and the scrextend package. What gives? –  Mico May 27 '12 at 11:21

1 Answer 1

Updated answer:

My first alternative thought was to set \hangindent to a suitable value but since you mentioned that you have lists in the notes I propose using a list for formatting. This seems a bit improvised, though:

\documentclass{memoir}
\usepackage{lipsum}

\makeatletter
\renewcommand*\prenotetext{%
  \list{}{%
    \setlength\leftmargin{2.5em}%
    \setlength\topsep{-\baselineskip}}
  \item}
\renewcommand*\postnotetext{\endlist\bigskip\medskip}
\makeatother

\renewcommand*\idtextinnotes[1]{#1.\vspace*{-\baselineskip}}
\renewcommand*\notenuminnotes[1]{#1.\vspace*{-\baselineskip}}

\makepagenote

\begin{document}
\chapter{One}
This is some arbitrary\pagenote{%
 \lipsum[1]
 \begin{itemize}
   \item bla
   \item blub
 \end{itemize}
 \lipsum[2]} text.

This is some arbitrary\pagenote[123]{\lipsum[1-2]} text.

\printpagenotes*
\end{document}

Original answer:

Do you mean something like this? This will prevent pagebreaks in a note, though...

\documentclass{memoir}
\usepackage{lipsum}

% redefine \prenotetext and \postnotetext:
\renewcommand*\prenotetext{\hfill\begin{minipage}[t]{\dimexpr\linewidth-2.5em}}
\renewcommand*\postnotetext{\end{minipage}\medskip}

% only that we can see how large note numbers look:
\renewcommand*\idtextinnotes[1]{#1.\space}

\makepagenote
\begin{document}
\chapter{One}
This is some arbitrary\pagenote{\lipsum[1]} text.

This is some arbitrary\pagenote[123]{\lipsum[1]} text.

\printpagenotes*
\end{document}

enter image description here

share|improve this answer
    
Yes, that is precisely what I am looking for, but I need pagebreaks on the notes. In fact, I even have some itemized lists, so the code above does not compile on my book :( –  4v4l0n42 May 27 '12 at 18:57
    
@4v4l0n42 see updated answer. –  cgnieder May 28 '12 at 9:30
    
@4v4l0n42 Did the updated version work for you? –  cgnieder May 29 '12 at 12:43
    
Yes, and no. Other problems arose, most likely because I need to fix other things as well. Thank you for the answer, I'll work in it, and if I can't solve it I'll get back with more questions :) –  4v4l0n42 Jun 13 '12 at 9:37

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.