1

I need to add both the chapter number and the title in one row with centering: something like "Chapter 2 Title of Chapter".

My code is

\documentclass[12pt,a4paper,oneside]{report}

\usepackage[left=1.5in,top=1in,right=1in,bottom=5em]{geometry}

\begin{document}

\chapter{INTRODUCTION}

\section{ sec1}

....................

\subsection{subsec1}

..................

\end{document}

What do I need to do?

  • Welcome to TeX.SX. A tip: If you indent lines by 4 spaces, then they're marked as a code sample. You can also highlight the code and click the "code" button ({}) or select your code and hit Ctrl+K. – jub0bs Mar 8 '13 at 17:49
2

The titlesec package allows you to customise the appearance of titles.

EDIT: I updated my solution based on Gonzalo Medina's comment.

\documentclass{book}

\usepackage{titlesec}
\usepackage{lipsum}


\titleformat{\chapter}
{\filcenter\normalfont\Large\bfseries}
{\chaptertitlename~\thechapter} {0.5em} {}


\begin{document}
  \chapter{First chapter}

    \lipsum[1-3]

\end{document}

enter image description here

  • I need to add it as "Chapter 1 FIRST CHAPTER" not like "1 First chapter".( Chapter 1 need to be display) – Emalka Mar 8 '13 at 17:59

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.