Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
\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

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
1  
@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
add comment

1 Answer 1

up vote 6 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
add comment

Your Answer

 
discard

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.