TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using a memoir template with page header defined. In the appendix, I maximize the geometry to print a lot of tables with narrow margins. I currently disable the memoir header with \pagestyle{empty} or \pagestyle{plain} which both remove the header but print no page number in the footer, as is the default with \documentclass{article}.

How can I enable a simple footer with the pagenumber in the middle on some pages, and on the right on some others (where the bottom table is in the middle)?

share|improve this question

Section 7.3 of the memoir manual describes how to make your own pagestyles. (Your description of the plain style as not having a page number doesn't seem to match memoir's default, so maybe there is something else going on there.) But here's example of how you can make a pagestyle with numbers on the right:

\usepackage{lipsum} % just for sample text

% Define a new pagestyle called 'right'

% Make a pagestyle called 'myplain', if 'plain' has already been redefined

\pagestyle{plain} % or {myplain} if plain doesn't give what you want here
\chapter{A chapter}


It's possible that the template you are using has redefined the plain pagestyle. If this is the case, then you can use the pagestyle myplain as defined above instead.

share|improve this answer
I've written an PTJ article about the memoir pagestyles, see tug.org/pracjourn/2008-2/madsen – daleif Mar 14 '11 at 17:13
@daleif Thank, Lars. Is there anything you would change about my answer? – Alan Munn Mar 14 '11 at 18:27
nope no need – daleif Mar 30 '11 at 8:37

Your Answer


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.