\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
article
class because you're using the\chapter
command.) Do you want to remove the page break between the table of contents and chapter 1? I wouldn't recommend this, because the ToC should be typeset as an unnumbered chapter.mwrep
you are using?mwcls
package which is part of TeX Live.\usepackage{etoolbox}\patchcmd{\tableofcontents}{\chapter*}{\section*}{}{}
. The ToC should now be formatted as an unnumbered section. Does this answer your question?