LyXAlternate chapter and section headings?

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
onemonkey
Posts: 2
Joined: Mon Oct 20, 2008 5:25 pm

Alternate chapter and section headings?

Post by onemonkey »

In latex one can give short headings for titles, chapters, sections, etc using the square brackets notation

Code: Select all

\section[my short title]{my much fuller title that's too long for my page headers} 
probably i am being stupid but i can't see an elegant way to do this in LyX..

I could start each section with

Code: Select all

\markboth{my short title}{my short title}
but to do that properly i have to reconstruct my header style each time and that's annoying.

and i'm not putting the full section command into a LyXCode ERT cos then LyX wouldn't know about my sections.

Your help would be appreciated.

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
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Alternate chapter and section headings?

Post by Juanjo »

From the Lyx User Guide:
3.3.4.4 Short Titles of Headings

Some section or chapter titles, such as this one, can get quite long. This can cause troubles when there is limited horizontal space. For example, if the header of the page is set to show the current section title, a long title will protrude over the page margins and look awful.

LaTeX allows you to specify a short title for section headings. This short title is used in the header and in the actual table of contents, avoiding the problem mentioned. To specify a short title, use the menu Insert->Short Title. This will insert a box labeled “opt” (stands for “optional”) which you can use to enter the short title text. This also works for captions inside floats.

The title of this section is a good example of using this feature.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
onemonkey
Posts: 2
Joined: Mon Oct 20, 2008 5:25 pm

Re: Alternate chapter and section headings?

Post by onemonkey »

thanks, i knew it must be possible.. I just don't know how to read manuals :oops:
Post Reply