The titlesec bundle is a set of 3 packages for sectioning titles — when used as such (titlesec), in headers and footers (titleps) and in tables of contents (titletoc). They can be used separately, but you will get most of them when used together. The goal is to provide new features unavailable in current LaTEX, such as:
Different classes and “shapes” of titles, with tools for fancy formats (like margin and “wrap” titles). You can define different formats for left and right pages, or numbered and unnumbered titles, measure the width of the title, add a new section level, use graphics and rules, and many more.
TOC entries, with the possibility of changing the format in the middle of a document, grouping the entries in a single paragraph, pretty free-forms entries, partial tocs, etc.
Page styles with an one-stage higher-level mechanim, without
\rightmark’s. Also top marks
correctly syncronized with titles, even with floats; access to top,
first and bot marks in a single header/footer; rules; headers/footers
for specific floats (kinda
\thispagestyle); multiple sets of marks,
In the following examples the program fully automates the format and no manual intervention is required to readjust individual titles. In the first one, there is a rule of dots whose width is that of the longest line plus 2 pc:
The wrap style measures the title and wraps the text around it:
Finally a margin title with a rule above both title and text.
• Download page for titlesec. Version 2.10.0
of the package (ZIP, 360k). Includes titleps and titletoc.
• titlesecex.pdf. Further samples from from the manual (PDF, 17k).
• titlesec.pdf. Manual (PDF, 195k).
• ttltips.pdf. Tips and tricks (in progress, PDF, 55k).
Feature request: Opción uppercase
Sent by: Gonzalo Medina Arellano (2010-03-31)
Añadir a las opciones «rápidas» (opciones de paquete) una para convertir los títulos a mayúsculas.
Feature request: Compatibility with ltxdoc
Sent by: GL (2011-03-20)
Add compatibility with ltxdoc, which changes lots of catcodes
Bug: assignpagestyle doesn’t work properly
Sent by: Valentino Mariotto (2011-01-27)
\titleformat on a command,
\assignpagestyle no longer works.
The packages listed here are free – you don’t have to pay anything to use them. However, if you have found them useful enough as to give me a little present, I would be very grateful. Just go to the following wish list at Amazon.
You might consider supporting the development of these packages with a donation, too.