Page Layout(Truly) Centering the page number

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Isopropyl
Posts: 29
Joined: Thu Sep 24, 2009 10:49 pm

(Truly) Centering the page number

Post by Isopropyl »

Hi,

I am stuck with the problem of centering the page number in my footer. I am doing this:

Code: Select all

\usepackage[a4paper, left=5cm, right=1.5cm, top=2.5cm, bottom=3cm]{geometry}

\usepackage{scrpage2}
\pagestyle{scrheadings}
\setfootwidth{paper}
\setlength{\footskip}{1.2cm}
\cfoot{\pagemark}
The only problem is that the page number will be centered relative to the page geometry specified. And since this geometry is asymmetric (high left margin low right margin) the page number is not "really" centered. So how can I get it to the actual center of the (paper) page?

Thanks for your help!

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Enda
Posts: 1
Joined: Wed Oct 28, 2009 5:19 pm

(Truly) Centering the page number

Post by Enda »

I'm not sure if this will work, but perhaps you could try a \hspace{} command with an appropriately-negative argument. Something along the lines of

Code: Select all

\cfoot{ \hspace{-1cm} \pagemark }
Post Reply