0

I would like to design chapter heading like this

enter image description here

I have written like this

\def\@makeschapterhead#1{%

\titleformat{\chapter}[frame]{\normalfont\huge\bfseries\color{elanblue}}
{\MakeUppercase{\chaptertitlename}\ \thechapter}{20pt}{\Huge\MakeUppercase}
\par\vspace*{270\p@}}
\makeatother

but the title looks like this

enter image description here

1
  • Even though you got around this in your other question: questions here should come with a so-called minimal working example, i.e. a minimal compilable document that starts with \documentclass, ends with \end{document}, can be compiled and illustrates the issue.
    – user121799
    Commented Feb 13, 2019 at 6:07

1 Answer 1

1
\documentclass{report}
\usepackage{titlesec}
\usepackage{xcolor}
\usepackage{lipsum}
\titleformat{\chapter}[display]{\filcenter\normalfont\huge\bfseries\sffamily\color{blue}}
{\large\color{black}\chaptertitlename~\thechapter}{8pt}{\Huge\MakeUppercase}
\begin{document}
\chapter{Test}
\lipsum[1]

\chapter{Another test}
\lipsum[2]
\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .