Text FormattingOdd Page Numbering

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Urielnam
Posts: 1
Joined: Mon Feb 28, 2011 10:28 pm

Odd Page Numbering

Post by Urielnam »

Hello all,
I'm writing in LaTeX and so far it's been great. Though right now I'm having an odd problem.
my setup is

Code: Select all

\documentclass[10pt,twoside]{memoir}
\stockaiv
\pageaiv
\usepackage{geometry}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
But, on normal pages the numbering is at the center of the page. on pages with figures on the the numbering goes to the upper right/left (depends on the page "direction")

I'm attaching the figures with

Code: Select all

\begin{figure}
  \centering
   \includegraphics[width=110mm]{somethin.eps} 
   \caption{somethin something}
  \label{fig:somethin}
\end{figure}
If you'd be so kind to point out what I'm doing wrong?
I'd like to have all my pages numbered through their bottom.

Thanks
Urielnam.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Odd Page Numbering

Post by meho_r »

Hi and welcome to the forum.

By default, page numbers and headings are placed in headers when using memoir class, except for the first page of a chapter on which the page number is placed in the footer, centered. I don't think it has anything to do with figures. You can change that by (re)defining page styles either using memoir's own mechanism (as in the example below), or using fancyhdr package. But, since you haven't provided a full compilable Minimal Working Example (MWE), we can only be guessing if page style was the problem. Here's a simple example to get you going. If you need anything else, ask. Also, you might search the forum for instructions how to change page styles as well as memoir's (chapter 7) and/or fancyhdr's documentation. Happy LaTeXing ;)

Code: Select all

\documentclass{memoir}

\usepackage[demo]{graphicx}% “Demo” option is for testing only; remove it to include real pictures

\makepagestyle{main}% A new page style for “normal” pages
\makeoddfoot{main}{}{\thepage}{}% Footer for odd pages
\makeevenfoot{main}{}{\thepage}{}% Footer for even pages
\pagestyle{main}% Activate the style

\begin{document}

\chapter{A chapter}

\section{A section}

Some example text\clearpage

Some example text\clearpage

Some example text\clearpage

\begin{figure}
  \centering
   \includegraphics[width=110mm]{somethin.eps} 
   \caption{somethin something}
  \label{fig:somethin}
\end{figure}

\end{document}
Post Reply