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.
Page Layout ⇒ Weird Page Layout
Weird Page Layout
- Attachments
-
- Capture.PNG (108.22 KiB) Viewed 2967 times
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Re: Weird Page Layout
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.
Re: Weird Page Layout
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).
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Weird Page Layout
Hi arhorten,
welcome to the board!
minimal 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:
Stefan
welcome to the board!
We could tell you the reason for sure, if you would post your page style settings, i.e. yourahorten 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?
fancyhdr
related commands in the preamble. Generally, try to post code, such as a 
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}
LaTeX.org admin
Weird Page Layout
Code: Select all
Code, edit and compile here:
\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}}
Weird Page Layout
This worked. Thanks!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:StefanCode: Select all
\renewcommand{\headrulewidth}{0pt}\renewcommand{\footrulewidth}{0pt}