Page LayoutAdding Spaces Above the Page Number.

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
spindal
Posts: 3
Joined: Mon Feb 09, 2009 7:41 pm

Adding Spaces Above the Page Number.

Post by spindal »

I need to put two spaces between the text and the page number (every page). I have looked through the post but cannot find anything. I'm sure this has been answered before can anyone point me in the right direction or if you can solve my problem here is the code that defines my page numbers.

Code: Select all

Code, edit and compile here:
% Definition of 'plain' page style.
%
\def\ps@plain{\let\@mkboth\markboth
\def\@oddhead{\hbox{}\hfil\rmfamily} % heading (right)
\def\@oddfoot{\rm\@leftfoot%
\hfil\thepage\hfil\@rightfoot}%
\def\@evenfoot{\rm\@leftfoot%
\hfil\thepage\hfil\@rightfoot} % no feet
\def\@evenhead{\rmfamily\thepage\hfil\hbox{}}} % heading (left)
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I did not write this so I don't know if there is a simple solution or not.

Recommended reading 2024:

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

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

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

Adding Spaces Above the Page Number.

Post by localghost »

Putting your sample code into a minimal working example (MWE), I can't see any difference to the default plain page style. The page number remains centred in the footer. So, in my option you can omit these lines. Regarding the distance between text body and page number, you can simply modify a length to get the desired result.

Code: Select all

\setlength{\footskip}{2\baselineskip}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This line goes of course into the preamble.


Best regards
Thorsten¹
spindal
Posts: 3
Joined: Mon Feb 09, 2009 7:41 pm

Re: Adding Spaces Above the Page Number.

Post by spindal »

ROTFL! This thesis template is a bloated piece of junk. I commented those lines out and nothing changed. I have been messing with those line for a long time. Also, Iadded your line of code and it seemed to have fixed my problem. I still have a 100 pages to go through but everything seems in order now.

Thank you for your help.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Adding Spaces Above the Page Number.

Post by localghost »

The result of the code line I suggested is only slightly different to the default \footskip length. But this difference is visible when comparing the outputs. The default value is a little bit larger.
Post Reply