Page LayoutVariable chapter header size

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
prkrekel
Posts: 2
Joined: Thu Jan 28, 2010 12:59 pm

Variable chapter header size

Post by prkrekel »

Hi,

Okay here's a tough question... I'm creating a style for my thesis. It has several chapters (luckily ;)), some of them have long titles and some of them have short titles. The chapter title is in a \colorbox, making the background gray. Above it, there's another colorbox with the same color and height 18pt.

The problem I have is, that a long title uses two lines, thereby creating a bigger 'combined colorbox' than a short title. Ideally, I want all of the 'combined colorboxes' to be the same size. So the question is: can I conditionally adjust this size, for instance, ONLY if the title uses two lines?

Recommended reading 2024:

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

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

magicmoose
Posts: 90
Joined: Fri Nov 06, 2009 7:29 am

Re: Variable chapter header size

Post by magicmoose »

Point of clarification, for a long title you intend the title to run over the end of the colourbox?
Don't think I can help you but I think that may help clarify the question
prkrekel
Posts: 2
Joined: Thu Jan 28, 2010 12:59 pm

Re: Variable chapter header size

Post by prkrekel »

No, the long titles stay inside the colorbox. Instead, they just take up an extra line.
Post Reply