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.

My memoir document has a relatively narrow typeblock (90mm) and a wide margin (55mm) for annotations, with a \marginparsep of 15mm.
I want the footer to cover both the typeblock and the annotation block, so it should be 90+15+55=160mm wide.
When I try to do this with \makerunningwidth, the footer is extended in both margins:

\documentclass[twoside,a4paper,article]{memoir}
\usepackage{kantlipsum}
\setlrmarginsandblock{30mm}{90mm}{*}
\setmarginnotes{15mm}{55mm}{\onelineskip}
\checkandfixthelayout[nearest]
\typeoutlayout
\makepagestyle{test}
\makerunningwidth{test}{160mm} % typeblock + \marginparsep + \marginparwidth
\makeevenfoot{test}{\thepage}{}{spine}
\makeoddfoot{test}{edge}{}{\thepage}
\pagestyle{test}

\begin{document}
\section{Section heading}
Hello. \marginpar{\kant[40]}\kant[1-5]
\end{document}

How can I extend the footer only in the direction of the edge, leaving the spine margin untouched?

share|improve this question

1 Answer 1

You should have a look at the Ruled page style in the memoir source. You need this:

\makeheadposition{test}{flushright}{flushleft}{flushright}{flushleft}
share|improve this answer
    
This helped for me, thanks! –  Wybo May 17 '12 at 10:15
    
It works, but there seems to be a bug here: the footer always follows the header; you can't handle footers differently from headers; so arguments 4 and 5 don't seem to work. –  Wybo May 17 '12 at 10:27
    
You may need the optional argument: \makerunningwidth{test}[160mm]{90mm}, as a wild guess, to set the widths for header and footer to different values. Beware of what you wish for, as it may turn out hideous :). –  Brent.Longborough May 17 '12 at 16:41
    
no, I don't want this for know, the reason for my comment was to report that \makeheadposition can do without its last two arguments - they do nothing. Maybe they should, but then it's a bug. –  Wybo May 19 '12 at 8:06
    
The macro is badly named, the last two are for the footers, the first two for the headers –  daleif May 20 '12 at 10:12

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.