TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

\title{My title}


\section{Section Blah}
Blah blah blah
\section{Section Xaxa}
Xaxa xaxa xaxa

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?

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.

Look at the difference between mwrep and report here: http://min.us/mdHsA6D and here: http://min.us/mdHsA6D#2

share|improve this question
(Note: Your example won't work with the 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. – lockstep Jul 5 '11 at 19:05
Where did you find the mwrep you are using? – N.N. Jul 5 '11 at 19:05
@N.N.: It is included in the mwcls package which is part of TeX Live. – lockstep Jul 5 '11 at 19:07
Add the following to your preamble: \usepackage{etoolbox}\patchcmd{\tableofcontents}{\chapter*}{\section*}{}{}. The ToC should now be formatted as an unnumbered section. Does this answer your question? – lockstep Jul 5 '11 at 19:19
@lockstep: No, now it looks like it this pdf min.us/mW1st9 . I want it to look like in min.us/mdHsA6D#2 , except I want dot after chapter number (in ToC) like in min.us/mdHsA6D – Ichibann Jul 5 '11 at 19:24
up vote 7 down vote accepted

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.

share|improve this answer
\newpage instead of \pagebreak. So simple... so obvious :D. Thanx :) – Ichibann Jul 5 '11 at 19:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.