[Tex/LaTex] Chapter formatting

chaptersformattingsectioning

I use report document class and the thing is that I would like to remove Chapter x phrase, add chapter number before chapter title and remove blank place between chapter name and top of page. For example normally it is like:

top of page
blank place
blank place
Chapter 1
Title of chapter
content

It would be better to be like this:

top of page
1. Title of chapter
content

Best Answer

You can use the titlesec package; a little example:

\documentclass{report}
\usepackage{titlesec}

\titleformat{\chapter}[block]
  {\normalfont\huge\bfseries}{\thechapter.}{1em}{\Huge}
\titlespacing*{\chapter}{0pt}{-19pt}{0pt}

\begin{document}

\chapter{Test chapter}

\end{document}