22

I want to set chapters to look like 'bigger' sections.

Now in the report class I have a style like:

Chapter 1

Introduction

1.1. Section

What I want to achieve is:

  1. Introduction

1.1. Section

I don't want to change the document class.

lockstep
  • 250,273
pixel
  • 2,423

2 Answers2

25

You could use the titlesec package. For example:

\documentclass{report}
\usepackage{titlesec}
\titleformat{\chapter}
  {\normalfont\LARGE\bfseries}{\thechapter}{1em}{}
\titlespacing*{\chapter}{0pt}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}
\begin{document}
\chapter{Introduction}
\section{Section}
\end{document}

titlesec example

The package documentation will tell you more. Type texdoc titlesec at the command prompt or follow the link to CTAN at the beginning of this answer.

Stefan Kottwitz
  • 231,401
  • And what with the dot after 1 in chapter? – pixel Feb 05 '11 at 13:42
  • @pixel: just write \thechapter. in the \titleformat definition. Similar for sections. – Stefan Kottwitz Feb 05 '11 at 14:23
  • Ok. It worked. I've also did same in report.cls to add dot in ToC. – pixel Feb 05 '11 at 19:34
  • @pixel: Generally it's not a good idea to directly modify a class file, though it's a quick fix for now. I recommend to use \renewcommand within your document instead to redefine the respective macro. Other documents might base on report.cls, so you would change their layout as well, also your future report documents. – Stefan Kottwitz Feb 05 '11 at 19:41
  • @StefanKottwitz It does not work, instead of that I got rid of all the numbers before chapters and sections. Do you know what might be the case? – Al Bundy Nov 23 '17 at 11:08
  • @AmoghJoshi You could post this as a question instead of a comment to an answer. – Stefan Kottwitz Aug 29 '18 at 15:57
  • I needed to put the \titleformat section after the \begin{document}. – osiixy Dec 02 '20 at 21:33
2

Use the KOMA-Script class

\documentclass[numbers=enddot]{scrreprt}
  • I don't want to change document class, as I've written in my question (this document is in it's final stage and I'm doing only small corrections). – pixel Feb 05 '11 at 13:51
  • 1
    ah ok, I let it be as an answer for others –  Feb 05 '11 at 14:59