Page LayoutPage number jumps up and down

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

Page number jumps up and down

Post by Isopropyl »

Hi,

looking at my document today, I discovered that on 2 pages in the document the page number is positioned somewhat higher than on the other pages. Having no idea what might be causing this, I created the following file:

Code: Select all

\documentclass[12pt, numbers=noenddot]{scrartcl}
\usepackage[ngerman]{babel}
\usepackage[babel, german=quotes]{csquotes}
\usepackage[T1]{fontenc}

%Page layout
\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}

%Font
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\defaultfontfeatures{Scale=MatchLowercase, Mapping=tex-text}
\setmainfont{Times New Roman}

\begin{document}
1
\clearpage
2
\clearpage
3
\clearpage
4
\clearpage
5
\end{document}
It uses the same settings as my document. But when I compared the position of the page numbers, I actually found out that all my page numbers in the main document are being pushed downward a bit (compared to the control document). Only on the two pages where they appear to be "too high" do they match position with the control document.

So, what might be possible reasons that my pagenumber gets pushed down? And why does this not happen on (only) two pages?

Thank you 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.

daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: Page number jumps up and down

Post by daleif »

Using xelatex (I assume that is what you are using, you didn't mention) from TeX Live 2009 there are no jumps

Might be an idea to explain in a bit more datail what should be wrong and whether this should be present in your test case
Isopropyl
Posts: 29
Joined: Thu Sep 24, 2009 10:49 pm

Re: Page number jumps up and down

Post by Isopropyl »

Hi daleif,

I am sorry for not being too clear about this. Yes, I am using xelatex with TeXmaker.

Also there should be not jumps in the document I posted. There are none if I compile it either. The point is that this document uses the same basic setup as the supercomplicated document that I am currently writing. Yet, in the complicated document there are these jumps. Namely, the page numbers are positioned higher (on most pages) than what you would get if you compile the above code.

But since my original document is complicated I have no idea even where to start looking for the cause of these jumps. So I could not create a MWE replicating this error...
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Page number jumps up and down

Post by frabjous »

Isopropyl wrote: But since my original document is complicated I have no idea even where to start looking for the cause of these jumps. So I could not create a MWE replicating this error...
It's sure going to be hard to us to diagnose then!

I'd advise taking the MWE example you gave, and copy and paste chunks of your long document into it bit by bit until the problem appears. You'll then have the cause of the problem isolated to the last chunk you add before the problem appears.
Isopropyl
Posts: 29
Joined: Thu Sep 24, 2009 10:49 pm

Page number jumps up and down

Post by Isopropyl »

frabjous wrote: It's sure going to be hard to us to diagnose then!
I am fully aware of that, but I wasn't hoping for a specific diagnosis. I merely thought that someone might have encountered this kind of problem before and could tell me what solved it in his case. Or maybe it is a common problem and I just didn't know that ;-)

Anyway, since the document is still work in progress the text has changed in the meantime. And guess what - now the page number jumps on different pages than before. So it cannot be something in the preamble but has to have to do with the actual text in the document. I tried to identify characteristics of the text contained on these pages to see what might be causing this but could not find any.

1) On some of these pages there are many footnotes, on others there are not

2) On some of these pages there is the last sentence of a paragraph at the top (because I do not use club/widow penalty) but on others there is not

3) On some of these pages there is a table, on others there is not

4) On some of these pages a new section begins, on others there does not

So I am completely at a loss here...
Post Reply