Generalheader and subsection problems

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
tarektarek
Posts: 30
Joined: Fri Nov 23, 2007 12:56 am

header and subsection problems

Post by tarektarek »

hi;
I am writing a book chapter. As you know in a book class, a header is automatically added to each page indicating the page number as well as the chapter name on even pages. The problem is that my title is very long, so on each even page, the title of the chapter appears not in full (some of it is out of the page), ow can I solve this problem? Another thing, sometimes when I create sections, subsections, subsubsections, there is sometimes a large space between the subsection and the paragraph that follows (for some of the subsections and not all of them)

Regards,

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

header and subsection problems

Post by Stefan Kottwitz »

Hi tarektarek,

use the optional parameter of \chapter to give a short title for the toc and the heading:

Code: Select all

\chapter[short title]{long title}
See sectioning in the hypertext help. But if you want to use the long title for the toc too, use \chaptermark (or \markboth) instead.

Stefan
LaTeX.org admin
tarektarek
Posts: 30
Joined: Fri Nov 23, 2007 12:56 am

Re: header and subsection problems

Post by tarektarek »

Thanks a lot!
Post Reply