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 followmemoir
's documentation. On their own, such commands will either have no effect or cause havoc. Moreover, combining them withgeometry
won't work. You must usememoir
'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 usingplain
. Fancier headers and footers can be configured using the layouts provided bymemoir
.Finally,
memoir
offers significant support for hanging paragraphs. This includes ahangparas
environment. If you wish, your entire document can be nestled within such an environment.The following example assumes you want:
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
:and then we must tell
memoir
to adjust the layout accordingly before proceeding. That is, we have to tellmemoir
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: