I want my chapter titles to look like as asked in this post. I have followed the method suggested by "lockstep", that is, using package titlesec
. It works perfectly fine but here is the question: I want this format for main chapters only and for the rest, that is Contents, Declaration, Index, Bibliography etc I want them centered with normal vertical spaces before and after the title. Pasting the code at the start of Chapter 1 solves the problem partially; it leaves the starting ones (contents, declaration) totally unchanged and applies the same format to Index and Bibliography. Please help.
[Tex/LaTex] Chapter titles using titlesec
sectioningtitlesec
Best Answer
Since the lists (ToC, LoF, LoT), the bibliography and index usually use
\chapter*
to format the heading in the document, you can simply use another\titleformat
command for thenumberless
chapters:An image of the ToC
and another one, of a numbered chapter: