[Tex/LaTex] Increment the section number with 1, not 0.1

numberingsectioningtable of contents

Possible Duplicate:
Section numbering

I'm happy with the logical layout of my document, but the section numbering is bugging me.

I'd like the first section (the introduction) to be 1, not 1.1. Also, the second section should be 2, not 1.2 (yes, that's a one, like it is still the introduction). I'm getting something wrong, obviously. (I also want sections beginning at the top of a new page, and page numbering should start with the introduction, if you wonder about the other stuff I had to put in the document header. But those things work.)

Any other suggestions are welcome, of course.

% x.tex

\documentclass[a4paper, twoside, draft, 12pt]{report}

\usepackage[pdftex, final]{graphicx}
\graphicspath{{./pics/}}

\usepackage[parfill]{parskip}

\usepackage{titlesec}
\newcommand{\sectionbreak}{\clearpage}

\setcounter{tocdepth}{6}
\setcounter{secnumdepth}{6}
\setcounter{chapter}{1}

\begin{document}

\begin{titlepage}
% some stuff here
\end{titlepage}

\pagebreak
\tableofcontents
\thispagestyle{empty}
\pagebreak

\cleardoublepage
\pagenumbering{arabic}

\section{Introduction}

% first section - should have number 1, but have 1.1

\subsection{Services}

% subsection - should be 1.1, is 1.1.1

\section{The algorithm}

% new section - number is 1.2, should be 2

\end{document}

Edit

With the article solution, it suddenly looks like this here and there. Otherwise, it works.

white

Best Answer

Your used document class report starts sectioning with \chapter. Thats the reason where your 0. comes from. Change \section to \chapter or use document class article.

The big chunks of white space, especially in the table of contents of your changed MWE (to class article), you can solve with macro \raggedbottom in your preamble. The problem is that LaTeX stretches the white space between headings and paragraphs. It often ocurs with less text. With \raggedbottom LaTeX has not to place the last line of the page always on the same place.