I am sure it is possible by some TeX programming. On the other hand, the hanging package already does most of what you are asking for. Just put all body text, or any number of paragraphs to be hung, inside a \hangparas
environment.
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}
Best Answer
A simple solution with the
everypar
command: