I want each numberless "chapter" page to have a different style for the title. Please see:
\documentclass{book}
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\normalfont\Large\filcenter\sffamily}
{\titlerule[1pt]%
\vspace{1pt}%
\titlerule
\vspace{1pc}%
\LARGE\MakeUppercase{\chaptertitlename} \thechapter}
{1pc}
{\titlerule
\vspace{1pc}%
\Huge}
\titleformat{name=\chapter,numberless}[display]
{\normalfont\Large\filcenter\sffamily}
{\titlerule[1pt]%
\vspace{1pt}%
\titlerule
\vspace{1pc}%
\LARGE{something for index only}}
{1pc}
{\titlerule
\vspace{1pc}%
\Huge}
\begin{document}
\tableofcontents
\chapter{My first chapter}
dummy text
\chapter{My second chapter}
ciao
\end{document}
With the previous code I have:
- a title style for normal chapter pages
- a title style for all numberless chapter pages: index page, bibliography page, etc.
I want to have multiple numberless styles, one for the index page, one for the bibliography page, etc. How do I add more than two styles?
\titleformat{name=\chapter,numberless}...anywhere and at any time; the current style will be used for the next\chapter*commands until a new declaration is issued. But why should you do it? – egreg Sep 21 '14 at 21:46