I'm writing a report that requires a particular style for titles as given by:


This shows up as intended below:


However, for my 'References' and 'Glossary' sections, a number shows up in the heading despite them being unnumbered.



Even a "test" chapter* has a number (also 7).


test section

Does anyone know how I might go about rectifying this?

  • Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it with \documentclass{...}, the required \usepackage's, \begin{document}, and \end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. – Adam Liter Mar 17 '15 at 23:37

Your problem comes from the placement of the chapter label as the last argument of \titleformat. Here is a correct placement. Note the style you have to use is \display instead of the default hang:

\documentclass[12pt, a4paper]{book}%












enter image description here

enter image description here

enter image description here


I discovered that posting this in the document before the needed section helped solve my problem:

  • This is wrong syntax and will create problems for you later. \bf is a depreciated command its own problems. Use Bernhard's solution, which is the correct way doing this. – Sveinung Aug 30 at 14:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.