I use the following code to change the chapter heading style
\usepackage{titlesec}
\definecolor{RoyalRed}{RGB}{157,16,45}
\titleformat{\chapter}[display]
{\centering\normalfont\bfseries\LARGE}
{\flushright\normalsize\color{RoyalRed}
\MakeUppercase{\chaptertitlename}\hspace{1ex} \thechapter}{1pc}
{{\titlerule[0pt]}\vspace{1pc}\MakeUppercase}
However I would not like to center the heading for chapters with chapter numbers that is when I use \chapter{Chapter1}
instead of \chapter*{Abstract}
. I want two different heading style dependent on \chapter
or \chapter*
.
Any help will be great.
{}
button. For inline code, place it between back quotes as I did in my edit.\titleformat{name=\chapter,numberless}...