GeneralFancy header problems

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Antoineql
Posts: 1
Joined: Wed Sep 26, 2007 10:07 pm

Fancy header problems

Post by Antoineql »

I'm using the \pagestyle{fancy} headers and the header style looks like this.

X.x name of section _______________Chap X name of chapter

But Chapter 2 has a long name and it looks like this:


____________Chap 2 very long name that continues on
2.x name of section _________________ the other line.



And Chap 3's header the section name and chapter name overlap.

Any idea how I could keep both of those things from happening.

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

Andy22
Posts: 16
Joined: Wed Jul 25, 2007 10:11 am

Fancy header problems

Post by Andy22 »

I think "fancy" uses the chapter name that appears in your TOC. You can define a shorter one by using:

Code: Select all

text
\chapter[short chapter name]{original very long chapter name}
more text
in your text.

The disadvantage is that the short name will appear in your TOC. Unfortunately I don't know if there is a way to define a chapter name especially for fancy header.
karthik.velugoori
Posts: 1
Joined: Fri Jun 12, 2009 9:58 am

Re: Fancy header problems

Post by karthik.velugoori »

this worked for me
\headsep = 25pt this should increase the head seperation and avoid overlap :-)
Post Reply