There are many questions in this forum regarding how to produce one or another chapter/section format. However, I can't find a comprehensive catalog of styles (examples with code), something like the titlepages document of Peter Wilson. I am specially interested in book design. Of course, it will depend a great deal on the document class, but the idea is to have some reference (and source of inspiration, if you like).
-
7You mean something like this: Title pages, Chapters, Sections – Werner Feb 13 '15 at 19:40
-
@Werner Precisely! – Ludenticus Feb 13 '15 at 19:49
-
1There is a little gallery in the memoir documentation. – Zoxume Feb 13 '15 at 21:26
1 Answers
Vincent Zoonekynd has accumulated a set of these for Title pages, Chapters and Sections. The don't utilize any packages, so the code is visible for use and change as needed.
Here is one sample for
\maketitle:
\documentclass{report} \usepackage{graphicx} \usepackage[utf8]{inputenc} \makeatletter \def\thickhrulefill{\leavevmode \leaders \hrule height 1pt\hfill \kern \z@} \renewcommand{\maketitle}{\begin{titlepage}% \let\footnotesize\small \let\footnoterule\relax \parindent \z@ \reset@font \null \vskip 10\p@ \hbox{\mbox{% \hspace{4pt}% \fbox{\includegraphics[width=3em]{tiger}}% \hspace{4pt} }% \vrule depth 0.9\textheight% \mbox{\hspace{2em}} \vtop{% %%%%%%%%%%%%%%%%%% \vskip 40\p@ \begin{flushleft} \Large \@author \par \end{flushleft} \vskip 80\p@ \begin{flushleft} \huge \bfseries \@title \par \end{flushleft} \vfil }} \null \end{titlepage}% \setcounter{footnote}{0}% } \makeatother \author{Isidore Ducasse, Comte de Lautréamont} \author{Lautréamont} \title{Les Chants de Maldoror} \date{1874} \begin{document} \maketitle \end{document}Here is one sample for
\chapters that modifies\@makechapterheadand\@makeschapterheadin the usual way:
\documentclass{report} \makeatletter \def\thickhrulefill{\leavevmode \leaders \hrule height 1ex \hfill \kern \z@} \def\@makechapterhead#1{% %\vspace*{50\p@}% \vspace*{10\p@}% {\parindent \z@ \centering \reset@font \thickhrulefill\quad \scshape \@chapapp{} \thechapter \quad \thickhrulefill \par\nobreak \vspace*{10\p@}% \interlinepenalty\@M \hrule \vspace*{10\p@}% \Huge \bfseries #1\par\nobreak \par \vspace*{10\p@}% \hrule %\vskip 40\p@ \vskip 100\p@ }} \def\@makeschapterhead#1{% %\vspace*{50\p@}% \vspace*{10\p@}% {\parindent \z@ \centering \reset@font \thickhrulefill \par\nobreak \vspace*{10\p@}% \interlinepenalty\@M \hrule \vspace*{10\p@}% \Huge \bfseries #1\par\nobreak \par \vspace*{10\p@}% \hrule %\vskip 40\p@ \vskip 100\p@ }} \begin{document} \chapter{Introduction} \end{document}Here is another for
\sections:
\documentclass{article} \usepackage{lettrine,lipsum} \def\LettrineFontHook{\bfseries\sffamily\selectfont} \makeatletter \def\section{\@ifstar\unnumberedsection\numberedsection} \def\numberedsection{\@ifnextchar[%] \numberedsectionwithtwoarguments\numberedsectionwithoneargument} \def\unnumberedsection{\@ifnextchar[%] \unnumberedsectionwithtwoarguments\unnumberedsectionwithoneargument} \def\numberedsectionwithoneargument#1{\numberedsectionwithtwoarguments[#1]{#1}} \def\unnumberedsectionwithoneargument#1{\unnumberedsectionwithtwoarguments[#1]{#1}} \def\numberedsectionwithtwoarguments[#1]#2{% \ifhmode\par\fi \removelastskip \vskip 3ex\goodbreak \refstepcounter{section}% \lettrine[lines=2,slope=0pt,nindent=0pt]{{\thesection\hspace*{1mm}}}{}% \begingroup \bfseries #2.\ \endgroup \addcontentsline{toc}{section}{% \protect\numberline{\thesection}% #1}% } \def\unnumberedsectionwithtwoarguments[#1]#2{% \ifhmode\par\fi \removelastskip \vskip 3ex\goodbreak % \refstepcounter{section}% \noindent \leavevmode \begingroup \bfseries % \thesection\ #2.\quad \endgroup \addcontentsline{toc}{section}{% % \protect\numberline{\thesection}% #1}% } \makeatother \pagestyle{empty} \begin{document} \lipsum[2] \section*{Introduction} \lipsum[2] \section{Suite} \lipsum[2] \section{Suite} \lipsum[2] \section{Fin} \lipsum[2] %\tableofcontents \end{document}
Specific to chapters, the memoir document class also provides its own set of chapter styles. Appendix B Showcases of the memoir documentation highlights some of the styles:
The
bianchichapter style:
The
dashchapter style:
The
lyhnechapter style:
The fncychap package could also provide some inspiration for titles, although it's not used often.
The
Lennychapter style:
The
Glennchapter style:
The
Connychapter style:
The
Rejnechapter style:
and so forth...
Peter Wilson has collected some ideas in terms of title pages and how to create them. Here's one example:

On this site, consider reading the following posts: