Page LayoutSection text occurs twice - also below the head.

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
andyberg
Posts: 2
Joined: Tue Oct 06, 2009 5:23 pm

Section text occurs twice - also below the head.

Post by andyberg »

I get this annoying error in my layout:
section.jpg
section.jpg (10.21 KiB) Viewed 2546 times
This error applies to the section level headings only. Chapter, subsection, etc. work fine. Anyone knows how to fix this?

Andreas

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

Section text occurs twice - also below the head.

Post by localghost »

Nobody can tell that without seeing the code that unleashes this behaviour. So, build a minimal working example (MWE).

Best regards and welcome to the board
Thorsten¹
andyberg
Posts: 2
Joined: Tue Oct 06, 2009 5:23 pm

Re: Section text occurs twice - also below the head.

Post by andyberg »

I've discovered the error. It was due to my bad use of \renewcommand when changing the header. I wanted to skip the name of the section in the header, and only display the chaptername, as they overlapped.
This works fine:
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[LE,RO]{}

-Andreas
Post Reply