Change capter font and format Latex

Writing the thesis Latex format somehow we face some unusual format of chapter. Usually the chapter heading is written like this

Chapter 1

Introduction

however, I would like to make it like the following:

1. Introduction

with Introduction font is small caps font,

For making it happen, getting references from this site, we can add the following option to customize it

* adding the package

\usepackage{xcolor}
\usepackage{titlesec}

*add the following lines before \begin{document}

\makeatletter
\renewcommand{\@makechapterhead}[1]{%
\vspace*{50 pt}%
{\setlength{\parindent}{0pt} \raggedright \fontfamily{phv}\selectfont\bfseries\LARGE
\color{blue} {\thechapter.\ #1\par\nobreak\vspace{20 pt}}}}
\makeatother

\titleformat{\section}{\color{blue}\fontfamily{phv}\selectfont\bfseries\Large}{\thesection}{1em}{}
\titleformat{\subsection}
{\color{blue}\fontfamily{phv}\selectfont\bfseries\Large}{\thesubsection}{1em}{}

and yay, it works for my Latex document ^^

the full example is here

more option can be seen here

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s