## LaTeX forum ⇒ Fonts & Character Sets ⇒ Want the word 'Chapter' inscribed in the Chapter page Topic is solved

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Matam
Posts: 29
Joined: Thu Jun 07, 2018 12:12 pm

### Want the word 'Chapter' inscribed in the Chapter page

The first chapter title page dispayed as "1 Introduction to Solar PV.....". However, I want to display, "Chapter 1 (in the First line) Introduction to Solar PV ...(Second line)" and with bigger font. This error is for every chapter. Please, see the attachment to understand the problem.

I have included here the preamble code and chapter call:

Attachments
The first chapter title page dispayed as "1 Introduction to Solar PV.....". However, I want to display, "Chapter 1 (in the First line) Introduction to Solar PV ...(Second line)" and with bigger font. This error is for every chapter. Please, see the attachment to understand the problem.
chapname.png (298.69 KiB) Viewed 915 times
Last edited by Stefan Kottwitz on Thu Jun 07, 2018 1:30 pm, edited 1 time in total.
Reason: code marked

Stefan Kottwitz
Posts: 9440
Joined: Mon Mar 10, 2008 9:44 pm
Change \titleformat{\chapter}[hang] to \titleformat{\chapter}[display], for example:

% commented out, to disable, will be replace below:%\titleformat{\chapter}[hang]%{\LARGE\normalfont\bfseries}%{\thechapter}{1em}{}%\titleformat{name=\chapter,numberless}[hang]%  {\normalfont\LARGE\bfseries\filcenter}{}{1ex}{}{} \titleformat{\chapter}[display]{\normalfont\large\bfseries}{\chaptertitlename\ \thechapter}{10pt}{\LARGE}

Change \large or \LARGE to the font size you prefer, adjust 10pt to the value you would like to have as additional distance between "Chapter X" and the chapter title.

Stefan

Matam
Posts: 29
Joined: Thu Jun 07, 2018 12:12 pm
Please, refer the attachment to understand the actual scenario.

Chaptermissing Attachment caption: I implemented your suggestion as it is. I solved some issues. But, gave new issues. Please refer this attachment.

Chaptermissing2 Attachment caption: I slightly modified your suggestion. That is, I did not delete old code. yet, added new one. This gives better result. I hope, it is not going to cause any issues in future and at other places.
Attachments
I slightly modified your suggestion. That is, I did not delete old code. yet, added new one. This gives better result. I hope, it is not going to cause any issues in future and at other places.
chaptermissing2.png (306.51 KiB) Viewed 894 times
Please, refer the attachment to understand the actual scenario.
chaptermissing.png (366.61 KiB) Viewed 894 times

Stefan Kottwitz
Posts: 9440
Joined: Mon Mar 10, 2008 9:44 pm
Perhaps \chaptertitlename is undefined in this thesis class. Write directly:

\titleformat{\chapter}[display]{\normalfont\large\bfseries}{Chapter\ \thechapter}{10pt}{\LARGE}

Stefan

Matam
Posts: 29
Joined: Thu Jun 07, 2018 12:12 pm
Excellent. It did work and solved my issue.
Thanks a ton. Please, check the attachment.
Attachments
chapword.png (160.5 KiB) Viewed 873 times