Fonts & Character SetsWant the word 'Chapter' inscribed in the Chapter page

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

Want the word 'Chapter' inscribed in the Chapter page

Post by Matam »

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:

Code: Select all

Code, edit and compile here:
\documentclass[11pt, a4paper, oneside]{thesis}
\usepackage[body={7.0in, 9.5in},top=1.2in, left=1.69in, right=1.0in, includefoot]{geometry}
\bibliographystyle{IEEEtran}
\hyphenation{op-tical net-works semi-conduc-tor}
\usepackage{wrapfig}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{multirow}
\setcounter{secnumdepth}{3}
\usepackage{pdfpages}
\usepackage[nottoc,notlof,notlot]{tocbibind}
%\renewcommand\bibname{References}
\usepackage{cite}
%\usepackage{natbib}
\usepackage{float}
\usepackage{color}
\usepackage{algorithm,algpseudocode}
\renewcommand{\baselinestretch}{1.3}
\usepackage{titlesec} % Modifica títulos
\titleformat{\chapter}[hang]
{\LARGE\normalfont\bfseries}
{\thechapter}{1em}{}
\titleformat{name=\chapter,numberless}[hang]
{\normalfont\LARGE\bfseries\filcenter}{}{1ex}{}{}
\titleformat{\section}[hang]{\normalfont\bfseries}{\thesection}{0.5em}{}
\titleformat{\subsection}[hang]{\normalfont\bfseries}{\thesubsection}{0.5em}{}
\titleformat{\subsubsection}[hang]{\normalfont\bfseries}{\thesubsubsection}{0.5em}{}
\titlespacing{\chapter}{0pt}{0pt}{40pt}
\titlespacing{\section}{0pt}{\baselineskip}{0.625\baselineskip}
\titlespacing{\subsection}{0pt}{\baselineskip}{0.6\baselineskip}
\titlespacing{\subsubsection}{0pt}{\baselineskip}{\baselineskip}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows}
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
\node[shape=circle,draw,inner sep=0.5pt] (char) {#1};}}
\usetikzlibrary{calc}
\usetikzlibrary{calc,matrix}
\usepackage[skip=2pt,font=scriptsize]{caption}
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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.
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 5710 times
Last edited by Stefan Kottwitz on Thu Jun 07, 2018 1:30 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Want the word 'Chapter' inscribed in the Chapter page

Post by Stefan Kottwitz »

Change \titleformat{\chapter}[hang] to \titleformat{\chapter}[display], for example:

Code: Select all

Code, edit and compile here:
% 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}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
LaTeX.org admin
Matam
Posts: 29
Joined: Thu Jun 07, 2018 12:12 pm

Want the word 'Chapter' inscribed in the Chapter page

Post by Matam »

Thanks a lot. Majority of issue solved. But, Chapter word did not appear. Please help me.
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.
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 5689 times
Thanks a lot. Majority of issue solved. But, Chapter word did not appear. Please help me. <br />Please, refer the attachment to understand the actual scenario.
Thanks a lot. Majority of issue solved. But, Chapter word did not appear. Please help me.
Please, refer the attachment to understand the actual scenario.
chaptermissing.png (366.61 KiB) Viewed 5689 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Want the word 'Chapter' inscribed in the Chapter page

Post by Stefan Kottwitz »

Perhaps \chaptertitlename is undefined in this thesis class. Write directly:

Code: Select all

\titleformat{\chapter}[display]
{\normalfont\large\bfseries}{Chapter\ \thechapter}{10pt}{\LARGE}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Stefan
LaTeX.org admin
Matam
Posts: 29
Joined: Thu Jun 07, 2018 12:12 pm

Want the word 'Chapter' inscribed in the Chapter page

Post by Matam »

Excellent. It did work and solved my issue.
Thanks a ton. Please, check the attachment.
Attachments
chapword.png
chapword.png (160.5 KiB) Viewed 5668 times
Post Reply