\documentclass[12pt,a4paper]{mwrep}
\usepackage{polski}
\usepackage[cp1250]{inputenc}
\usepackage{indentfirst}
\frenchspacing
\linespread{1.3}
\author{Me}
\title{My title}
\begin{document}
\tableofcontents
\pagebreak
\chapter{Chapter1}
\section{Section Blah}
Blah blah blah
\section{Section Xaxa}
Xaxa xaxa xaxa
\end{document}
That is my doc. When I use documentclass mwrep
I got table of contents that is on entire page (even if there are 2 sections in one chapter). But when I use article
, table of contents looks fine. How can I get article
's look in mwrep
?
EDIT:
You are right that chapter won't work with article. What I mean is that I want ToC to look like in article. It would be better to ask how can I get report
's look in mwrep
.
'mwrep' is supposed to be report class adjusted to Polish typography. How did I get it? I just typed \documentclass[12pt,a4paper]{mwrep}
and LEd downloaded it.
EDIT 2:
Look at the difference between mwrep and report here: http://min.us/mdHsA6D and here: http://min.us/mdHsA6D#2
Best Answer
Simply remove
\pagebreak
. See \pagebreak vs \newpage for details.EDIT: To clarify:
\chapter
internally uses at least one\clearpage
, which (for one-column mode) essentially is\newpage
plus typesetting left-over floats.