Page LayoutPutting page numbers lower on center bottom

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
wannabegeek
Posts: 10
Joined: Wed Mar 30, 2011 8:43 am

Putting page numbers lower on center bottom

Post by wannabegeek »

Hi all...

I use the geometry package for small margins, ~2cm for top, left and right.
However the page numbers are often too close to my text espcially when using math mode. I have default setting for page numbers at bottom center.

I have been trying to figure out how to move the page numbers lower without success for a few years now...I figure that the fancyheader package plays a roll somewhere, but couldn't figure it out on my own.

This means a lot to me since I really like to conserve paper and I like the way my report looks with most of the page filled.

I have tried savetrees without success for the same reason if I remember correctly.

tia for your help,
wbg

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Putting page numbers lower on center bottom

Post by localghost »

Modify the length \footskip (default value 30pt). Due to the lack of a minimal example this is all I can advise.


Best regards and welcome to the board
Thorsten
wannabegeek
Posts: 10
Joined: Wed Mar 30, 2011 8:43 am

Putting page numbers lower on center bottom

Post by wannabegeek »

Here's a go at a minimial example. The whole thing compiles. I don't know how to use the \footskip command and where to put it. I read about it but
unsure how it works with my packages.

Thanks again for you help,
wbg

Code: Select all

\documentclass[letterpaper,11pt]{article}

\usepackage{graphicx}

\usepackage{amsmath}
\usepackage{float}

\usepackage{parskip}
\usepackage[left=2cm,top=2cm,right=3cm]{geometry}

\usepackage{courier}

\newcommand{\dis}{\displaystyle}

\newcommand{\del}{\partial}
\newcommand{\pd}[2]{\frac{\partial #1}{\partial #2}}



\author{}

\title{}

\date{}

\setlength{\parskip}{.5cm}

\begin{document}
\maketitle

\end{document}

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Putting page numbers lower on center bottom

Post by localghost »

A length is usually set with the \setlength command. For a global setup (like in this case) this would be done in the document preamble.
wannabegeek
Posts: 10
Joined: Wed Mar 30, 2011 8:43 am

Re: Putting page numbers lower on center bottom

Post by wannabegeek »

Hi again localghost,

I tried \setlength{\footskip}{1cm} in the preamble.

It helps, since it prevents a long line of math mode characters from interfering with the bottom center page numbers.

I was hoping to move the page number lower on the page so that my bottom margin can be smaller.

wbg
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Putting page numbers lower on center bottom

Post by localghost »

wannabegeek wrote:[…] It helps, since it prevents a long line of math mode characters from interfering with the bottom center page numbers. […]
Do you mean that the math expression overwrites the page number? Can you give a concrete example (minimal but complete)?
wannabegeek wrote:[…] I was hoping to move the page number lower on the page so that my bottom margin can be smaller. […]
Then specify a bottom margin with geometry. This is the only one you haven't determined yet.
wannabegeek
Posts: 10
Joined: Wed Mar 30, 2011 8:43 am

Re: Putting page numbers lower on center bottom

Post by wannabegeek »

There are times when math characters overwrite the page numbers. I'll work on an example, the problem is intermittent since I often change some other feature of the layout while editing.

In geometery, adding bottom=0.1cm does nothing to the page number position. At the moment a value for bottom margin does nothing at all...

Thanks for your help, I'll need to continue tomorrow it's almost 2 am for me...

cheers,
wbg
wannabegeek
Posts: 10
Joined: Wed Mar 30, 2011 8:43 am

Re: Putting page numbers lower on center bottom

Post by wannabegeek »

I have made an interesting discovery...Using the Geometry package does move the margins and the page numbers just as one would think.

My text used to interfere with small margins but not since using \footskip.

The printed page still had different margins than the dvi.

This is a Ubuntu problem. Comparing the dvi image in Evince and then the print preview, the margins change. Also, the margins change dimension when I use dvipdf from terminal.
Post Reply