1

I am using below code to make the chapter titles uppercased,

\documentclass{book}

\usepackage{titlesec}

\begin{document}

\titleformat{\chapter}[display]
  {\large \bfseries \centering}{\chaptertitlename\ \thechapter}{0pt}{\MakeUppercase}{\large}
\titlespacing*{\chapter}{-10pt}{-20pt}{25pt}

\chapter{Introduction}

Hello

\end{document}

Output is like,

enter image description here

But I want to the word Chapter 1 as uppercased as well. Also, I want to reflect the uppercase format in the table of content too.

How can I do so?

2
  • You need to provide a small complete working example that shows the problem. We don't even know what \documentclass you are using. Commented Mar 10, 2020 at 17:37
  • @StevenB.Segletes thanks for suggestion. I have updated as MWE. Commented Mar 10, 2020 at 17:46

2 Answers 2

2

Here's how to do it for both \chaptertitlename and the chapter title:

\documentclass[11pt]{book}

\usepackage{titlesec, titletoc}

\titleformat{\chapter}[display]
  {\large \bfseries \centering}{\MakeUppercase{\chaptertitlename}\ \thechapter}{0pt}{\large\MakeUppercase}
\titlespacing*{\chapter}{-10pt}{-20pt}{25pt}

\titlecontents{chapter}[6em]{\bigskip\bfseries}%\vspace{1cm}%
{\contentslabel[\MakeUppercase{\chaptername}~\thecontentslabel]{7em}\MakeUppercase}%
{\MakeUppercase}%numberless chapters%
{\hfill\contentspage}[\medskip]%

\usepackage{lipsum}

\begin{document}
\tableofcontents
\chapter {Introduction}

\lipsum

\end{document} 

enter image description here

enter image description here

5
  • Thanks. That actually solved my problem 1. However did not solve the second part I want to reflect the uppercase format in the table of content too. Commented Mar 10, 2020 at 18:10
  • Do you want in toc only the chapter titles , or also the word ‘CHAPTER’?
    – Bernard
    Commented Mar 10, 2020 at 18:17
  • I want both. It would be better if I get both options available. @Bernard Commented Mar 10, 2020 at 18:18
  • @SazzadHissainKhan: I've updated my answer with the titlecode necessary for that. Is it what you want?
    – Bernard
    Commented Mar 10, 2020 at 18:50
  • thanks a lot. It worked. Commented Mar 10, 2020 at 19:08
2

As you were told in the comments, you shoould provide a MNW. But, in principle, you could get what you want adding

\makeatletter
\renewcommand{\@chapapp}{\MakeUppercase{Chapter}}
\makeatother

to the preamble of your document.

2
  • 2
    Or even simpler \renewcommand{\@chapapp}{CHAPTER} Commented Mar 10, 2020 at 17:49
  • Thanks. That actually solved my problem 1. However did not solve the second part I want to reflect the uppercase format in the table of content too. Commented Mar 10, 2020 at 18:10

You must log in to answer this question.

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