Page LayoutExact Page Number Placement

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
rafsh
Posts: 1
Joined: Sat Oct 01, 2011 11:33 am

Exact Page Number Placement

Post by rafsh »

Hello all,

I am preparing a document where I need the margins and page number placements to be placed exactly as follows:

The margins should be 1.5 inches on the left and top, and 1 inch on the right and bottom and all text needs to be doublespaced. I have used

\usepackage[top=1.5in, bottom=1.0in, left=1.5in, right=1.0in]{geometry}
\usepackage{setspace}
\doublespacing

which works perfectly.

I am having some trouble with the page number placement. The page number should be roman for preliminary pages and should be placed \emph{exactly} 3/4 inch from the bottom and centered. I've tried doing the following for the preliminary pages:

\renewcommand{\thepage}{\roman{page}}

\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\thechapter. #1 }}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{}
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}
\addtolength{\headheight}{0.5pt}
\fancypagestyle{plain}{
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0pt}
}

and this places the page number 1/2 inch from the bottom center. All I need to do is change it to 3/4. Thanks for your help.

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

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Exact Page Number Placement

Post by kaiserkarl13 »

Try changing \footskip (e.g., \addtolength{\footskip}{-0.25in}).

You might have a look at this for some more lengths to manipulate:

Code: Select all

\documentclass{article}
\usepackage{layout}
\begin{document}
\layout
\end{document}
Post Reply