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?

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

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

| improve this answer | |
  • 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. – Sazzad Hissain Khan Mar 10 at 18:10
  • Do you want in toc only the chapter titles , or also the word ‘CHAPTER’? – Bernard Mar 10 at 18:17
  • I want both. It would be better if I get both options available. @Bernard – Sazzad Hissain Khan Mar 10 at 18:18
  • @SazzadHissainKhan: I've updated my answer with the titlecode necessary for that. Is it what you want? – Bernard Mar 10 at 18:50
  • thanks a lot. It worked. – Sazzad Hissain Khan Mar 10 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.

| improve this answer | |
  • 2
    Or even simpler \renewcommand{\@chapapp}{CHAPTER} – Peter Wilson Mar 10 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. – Sazzad Hissain Khan Mar 10 at 18:10

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.