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
add comment

1 Answer

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
add comment

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.
http://tex.stackexchange.com/questions/57509/indent-pagenotes-with-multiple-lines-in-memoir
tex.stackexchange.com
crawl=CC-MAIN-2014-15
69739
application/http; msgtype=response
sha1:ESPASSIJXCB6ULAMFFZHTFIN4WFU2APO
<urn:uuid:b5716533-6770-403b-b9a8-eca670eb9ba6>
2014-04-18T05:42:14Z
198.252.206.140
sha1:7SABBP25HJ4E7263WSWMLQUZZKGAUGD4
<urn:uuid:a22b9c8b-49a9-4640-87c1-6a0840f65b23>
http://tex.stackexchange.com/questions/57509/indent-pagenotes-with-multiple-lines-in-memoir
response
<urn:uuid:88c151ef-c589-4731-9bc0-08a9b7820bc9>
robots: classic
hostname: ip-10-147-4-33.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2014-15
operator: CommonCrawl Admin
description: Wide crawl of the web with URLs provided by Blekko for April 2014
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf