Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
    
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. –  Jubobs Mar 8 '13 at 17:49

1 Answer 1

up vote 2 down vote accepted

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

share|improve this answer
    
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
    
It worked ...thank u –  Emalka Mar 8 '13 at 18:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.