[Tex/LaTex] Hanging Indent for Every Paragraph in Memoir

indentationmemoirparagraphs

I'd like to set a hanging indent for every paragraph in my document. Yes, I know that's unusual but that's the goal for today. I'm using the memoir document class, and so far I have the formatting pretty close to what I want but I still want to do hanging indented paragraphs. I've seen some other answers suggest that this would work:

% hanging indent?
\setlength{\parindent}{-0.2in}
\setlength{\leftskip}{0.2in}

…but I'm unsure whether I'm using that correctly, whether it works with Memoir, etc.

Here's what I've got so far.

\documentclass{memoir}
\medievalpage[10]
\usepackage[paperwidth=6in, paperheight=9in]{geometry}
\usepackage{kantlipsum}
\let\footruleskip\undefined % undo a conflict b/t memoir and fancyhdr
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt} % and the line
\lhead{} %blank
\chead{} %blank
\rhead{} %blank
\lfoot{} %blank
\cfoot{\thepage} %page no.
\rfoot{} %blank

% these two lines don't seem to do anything?
\setlength{\parindent}{-0.2in}
\setlength{\leftskip}{0.2in}

\begin{document}
\kant[1-20]
\end{document}

Best Answer

In order to make use of things like the \medievalpage[] layout, you need to follow memoir's documentation. On their own, such commands will either have no effect or cause havoc. Moreover, combining them with geometry won't work. You must use memoir's commands to layout the page.

It will also be better to avoid the conflict with fancyhdr by not using it. Since you only want a centred page number in the footer, this is easily done using plain. Fancier headers and footers can be configured using the layouts provided by memoir.

Finally, memoir offers significant support for hanging paragraphs. This includes a hangparas environment. If you wish, your entire document can be nestled within such an environment.

The following example assumes you want:

  • stock size of 6"x9"
  • zero trims i.e. the final, trimmed paper size will also be 6"x9"
  • the medieval layout specified in your MWE
  • hanging paragraphs with a .2" indentation

All of this is easy to tweak if I've misunderstood your intent. memoir offers extremely detailed documentation covering every aspect of this.

To set up the layout, we need to tell memoir:

  • the stock size
  • the trims / paper size
  • the layout

and then we must tell memoir to adjust the layout accordingly before proceeding. That is, we have to tell memoir to do the calculations required to layout the pages according to our instructions. This must be done after all tweaking to the layout is complete.

So:

\documentclass{memoir}
\setstocksize{9in}{6in}% sets the stock paper to this size
\settrimmedsize{9in}{6in}{*}% sets the trimmed paper to this size (i.e. no trimming)
\medievalpage[10]% sets the page layout
\checkandfixthelayout% implements the above - without this, nothing doing
\pagestyle{plain}% equivalent to the setup with fancyhdr but avoid conflicts
\usepackage{kantlipsum}
\begin{document}
  \begin{hangparas}{.2in}{1}
    \kant[1-20]
  \end{hangparas}
\end{document}

simple page layout with <code>memoir</code>