I have formatted Chapter titles using the package titlesec, but the formatting is unsuccessful in applying to my chapters with an asterisk *, (those chapters which I do not want appearing in my table of contents.)
That is, I would like to center and make \huge
a title which corresponds to \chapter*{Some Title}
.
For all my other chapters, I have successfully used:
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\centering\chaptertitlename\ \thechapter}{20pt}{\huge}
How may I do this for \chapter*{}
, using titlesec or otherwise?
This is under \documentclass{report}
.
EDIT:
\documentclass[12pt]{report}
\usepackage{tocloft}
\usepackage{titlesec}
\begin{document}
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\centering\chaptertitlename\ \thechapter}{20pt}{\huge}
\tableofcontents{}
\addcontentsline{toc}{chapter}{Unnumbered Title}
\chapter*{Unnumbered Title}
I would like the title above centered
\chapter{Numbered Title}
...centered like this chapter heading above
\end{document}
Thank you!
\titleformat
affects starred as well as unstarred commands. When I try your format command, the title of unstarred chapters i not centred - only the 'Chapter X` bit which is, of course, not relevant for starred chapters.