2

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).

Ludenticus
  • 1,910

1 Answers1

5

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:

    enter image description here

    \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 \@makechapterhead and \@makeschapterhead in the usual way:

    enter image description here

    \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:

    enter image description here

    \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 bianchi chapter style:

    enter image description here

  • The dash chapter style:

    enter image description here

  • The lyhne chapter style:

    enter image description here


The fncychap package could also provide some inspiration for titles, although it's not used often.

  • The Lenny chapter style:

    enter image description here

  • The Glenn chapter style:

    enter image description here

  • The Conny chapter style:

    enter image description here

  • The Rejne chapter style:

    enter image description here

and so forth...


Peter Wilson has collected some ideas in terms of title pages and how to create them. Here's one example:

enter image description here


On this site, consider reading the following posts:

Werner
  • 603,163