Page LayoutWeird Page Layout

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
ahorten
Posts: 4
Joined: Fri Sep 07, 2012 11:03 pm

Weird Page Layout

Post by ahorten »

I've been using fancyhdr, and everything worked perfectly fine, until one of the pages got a different page style. No idea why. Anyone got a good explanation?

Look at the picture. It's the same chapter, same section.. No different settings. Basically, the document has seven pages, and only that one is like that.
Attachments
Capture.PNG
Capture.PNG (108.22 KiB) Viewed 2927 times

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

Re: Weird Page Layout

Post by kaiserkarl13 »

This example is too short to see whether anything is different. If you're expecting the first page of the chapter to look the same as the second, then that's a misunderstanding, but I don't see anything significantly different on the pages you showed.
ahorten
Posts: 4
Joined: Fri Sep 07, 2012 11:03 pm

Re: Weird Page Layout

Post by ahorten »

Well. I've seen other "books", and they don't suddenly have one page with lines in it. You can see the line under "Begrenset" (header and foot).
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Weird Page Layout

Post by Stefan Kottwitz »

Hi arhorten,

welcome to the board!
ahorten wrote:I've been using fancyhdr, and everything worked perfectly fine, until one of the pages got a different page style. No idea why. Anyone got a good explanation?
We could tell you the reason for sure, if you would post your page style settings, i.e. your fancyhdr related commands in the preamble. Generally, try to post code, such as a Infominimal working example. A screenshot or picture is very good as addition, as you posted, just the cause is better to find by looking at the source code.

Without seeing the code, I guess you set a head/foot rule width, or fancyhdr does it by default. You can set both to zero, by adding to your document preamble:

Code: Select all

\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
Stefan
LaTeX.org admin
ahorten
Posts: 4
Joined: Fri Sep 07, 2012 11:03 pm

Weird Page Layout

Post by ahorten »

Code: Select all

\usepackage[usenames]{color}
\usepackage{fancyhdr} 
\setlength{\headheight}{15pt}
\usepackage{pdfpages}
\usepackage{varioref}

\pagestyle{fancyplain}
\lhead{}
\chead{}
\rhead{\textcolor{red}{Begrenset}}
\lfoot{}
\cfoot{\thepage}
\rfoot{\textcolor{red}{Begrenset}}
This is the fancyhdr related codes I'm using.
ahorten
Posts: 4
Joined: Fri Sep 07, 2012 11:03 pm

Weird Page Layout

Post by ahorten »

Stefan_K wrote:Hi arhorten,

Without seeing the code, I guess you set a head/foot rule width, or fancyhdr does it by default. You can set both to zero, by adding to your document preamble:

Code: Select all

\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
Stefan
This worked. Thanks!
Post Reply