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.

This is what I want:

Chapter 1 : Introduction

but I always get:

Chapter 1

Introduction

How do I do this?

share|improve this question
1  
    
:D Thanks for reference, yups :) –  Verly Aug 8 '11 at 4:31

2 Answers 2

up vote 3 down vote accepted

If you use a KOMA-class you will not need the package titlesec:

\documentclass[chapterprefix=false]{scrreprt}
\makeatletter
\renewcommand*{\chapterformat}{%
  \mbox{\chapapp~\thechapter\autodot:\enskip}%
}
\makeatother
\begin{document}
\chapter{A chapter}
\section{A section}
\end{document}
share|improve this answer
    
with other classes, it is still possible to redefine the chapter look without using titlesec. –  pluton Aug 6 '11 at 15:23
    
@pluton: Of course but the standard classes don't allow it in such an easy way :-). –  Marco Daniel Aug 6 '11 at 15:46
    
I know tex.stackexchange.com is really nice place, Thanks Marco –  Verly Aug 8 '11 at 4:30

You don't say which document class you are using, but for the standard classes, you can adjust these parameters easily with the titlesec package.

\documentclass{book}
\usepackage{titlesec}
\titleformat{\chapter}[hang] 
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter:}{1em}{} 

\begin{document}
\chapter{A chapter}
\section{A section}
\end{document}

output of code

You can change the font size as needed, and if you need to change the spacing, there is also a command for that.

share|improve this answer
    
Great, Thanks Alann Munn :) –  Verly Aug 8 '11 at 4:29
    
@Verly You're welcome. If the answer solved you problem you should accept it by clicking on the check mark icon next to it. You might want to consider doing that for some of the other questions you've asked as well. –  Alan Munn Aug 8 '11 at 4:44

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.