Page LayoutDuplicate page numbers with memoir

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
goltoof
Posts: 15
Joined: Wed Feb 04, 2015 8:08 pm

Duplicate page numbers with memoir

Post by goltoof »

Having trouble nailing down a certain style I like. It's obvious I'm using way more styles than I should to get the desired effect. Main thing I'm after is the fancy chapterstyle with left/right page numbering the same on all pages including chapter pages.

Code: Select all

\documentclass[11pt,letter,oneside]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{fancyhdr}
\OnehalfSpacing
 \chapterstyle{verville}
 \pagestyle{plain}
 \makepagestyle{plain}
% \makeevenhead{plain}{}{}{}
% \makeoddhead{plain}{}{}{}
 \makeevenfoot{plain}{\thepage}{}{}
 \makeoddfoot{plain}{}{}{\thepage}
 \pagestyle{fancy}
 \fancyfoot[RO, LE]{\thepage}
\begin{document}
\blinddocument
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Duplicate page numbers with memoir

Post by Johannes_B »

I think it is more simple than you think.

Code: Select all

\documentclass[11pt,
%letter% JB: unknown
%,oneside%JB: Apparently, you don't want this?
]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{showframe}%JB Demonstrating left and right pages
%\usepackage{fancyhdr}%JB cannot be used with memoir
\OnehalfSpacing
\chapterstyle{verville}
\pagestyle{plain}
\makeevenfoot{plain}{\thepage}{}{}
\makeoddfoot{plain}{}{}{\thepage}
\begin{document}
\blinddocument
\end{document}

Or i misunderstood the question?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
goltoof
Posts: 15
Joined: Wed Feb 04, 2015 8:08 pm

Re: Duplicate page numbers with memoir

Post by goltoof »

Better. Without the fancyhdr though I'm not getting the page headers I'm after with sections number, chapter & section names as in the original example.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Duplicate page numbers with memoir

Post by Johannes_B »

So that was the purpose of fancyhdr.

Code: Select all

\documentclass[11pt,
%letter% JB: unknown
%,oneside%JB: Apparently, you don't want this?
]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{showframe}%JB Demonstrating left and right pages
%\usepackage{fancyhdr}%JB cannot be used with memoir
\OnehalfSpacing
\chapterstyle{verville}
\makeevenhead{headings}{}{}{\slshape\leftmark}
\makeoddhead{headings}{\slshape\rightmark}{}{}
\makeevenfoot{headings}{\thepage}{}{}
\makeoddfoot{headings}{}{}{\thepage}
\begin{document}
\blinddocument
\end{document}

The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
goltoof
Posts: 15
Joined: Wed Feb 04, 2015 8:08 pm

Re: Duplicate page numbers with memoir

Post by goltoof »

Still unclear how the headings work. It's for a manual not a book so the header is the same on every page with Section # & Section Name on the left, and Chapter Title on the right as in the original example.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Duplicate page numbers with memoir

Post by Johannes_B »

What do you see when you click on open in online editor just bove my last code example?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
goltoof
Posts: 15
Joined: Wed Feb 04, 2015 8:08 pm

Duplicate page numbers with memoir

Post by goltoof »

Here's the header I desire, except the chapter name and section should be swapped..
header.png
header.png (9.97 KiB) Viewed 6496 times
In your example it shows the chapter name and section on even page, section only on odd pages.
Last edited by Stefan Kottwitz on Wed Feb 10, 2016 7:05 pm, edited 1 time in total.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Duplicate page numbers with memoir

Post by Johannes_B »

Like this?

Code: Select all

\documentclass[11pt,
%letter% JB: unknown
%,oneside%JB: Apparently, you don't want this?
]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{showframe}%JB Demonstrating left and right pages
%\usepackage{fancyhdr}%JB cannot be used with memoir
\OnehalfSpacing
\chapterstyle{verville}
\makeevenhead{headings}{\slshape\leftmark}{}{\slshape\rightmark}
\makeoddhead{headings}{\slshape\leftmark}{}{\slshape\rightmark}
\makeevenfoot{headings}{\thepage}{}{}
\makeoddfoot{headings}{}{}{\thepage}
\begin{document}
\blinddocument
\end{document}

The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
goltoof
Posts: 15
Joined: Wed Feb 04, 2015 8:08 pm

Re: Duplicate page numbers with memoir

Post by goltoof »

Yes I finally figured it out just after responding. Oddly enough the chapter page is showing the page number in the center again, swore that was fixed before.

It would be nice to show "Page x of xx" for the page #. It would also be nice to show the document revision # on the opposite side of the page number. Is there a good rundown out there how to handle/display document revisions?
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Duplicate page numbers with memoir

Post by Johannes_B »

Package lastpage can help with the page x of y issue.

About the document revision, you need to provide some more information.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply