Fancy LaTeX chapter styles
Many books, theses and reports are written in LaTeX using the
report
or
book
document classes. Often, the authors make use of the default chapter
style. There are, however, a great number of alternative styles
available, some of which being very fancy or playful. This post is a
collection of alternative chapter styles available, some as packages,
others simply in form of LaTeX code.
Default chapter style
The default chapter style is often used in (academic) books and theses. Here is an example:
3 | \chapter {Default Chapter Heading} |
Package titlesec
The
titlesec package
allows basic changes to the standard chapter style, including setting
the font style and size or placement of the title. You can do great
things with
titlesec
package and the
titleformat
command in particular, just be creative (and let me know below)!
Here is a neat example:
02 | \usepackage [T1]{fontenc} |
03 | \usepackage {titlesec, blindtext, color} |
04 | \definecolor {gray75}{gray}{0.75} |
05 | \newcommand { \hsp }{ \hspace {20pt}} |
06 | \titleformat { \chapter }[hang]{ \Huge \bfseries }{ \thechapter \hsp \textcolor {gray75}{|} \hsp }{0pt}{ \Huge \bfseries } |
See the
documentation for more details.
Package fncychap
The
fncychap package
has a nice set of predefined chapter styles. The style is set through
the optional argument when loading the package. Available styles
include: Sonny, Lenny, Glenn, Conny, Rejne, Bjarne, and Bjornstrup. The
package documentation has examples for all available styles. The package
will use the LaTeX default chapter style in case the optional argument
is not set (i.e.
\usepackage{fncychap}
).
3 | \usepackage [Sonny]{fncychap} |
Examples of
Glenn and
Bjornstrup chapter styles provided from the
fncychap
package:
Chapter styles with memoir
The
memoir document class is more flexible in terms of
chapter styles than report or book.
I will not go into detail since there is extensive documentation on the
memoir document class (see page 83 onwards). Furthermore, there is additional documentation describing the
memoir chapter styles including code examples and output. Below you’ll find one of the examples taken from that document named
hansen
.
Styling the chapter
Henrik Stuart wrote
this article in 2007 with a series of great chapter styles. They are also based on the memoir document class and the
PGF/TikZ package. Here is an example that I like a lot, simply beautiful!
No comments:
Post a Comment
Thank you