1

I have a lot of sections containing sometimes not much more than one or two lines. It's an edition of letters and i have no problem if a page is not filled to the last line. LaTeX tries to stretch the sections to the end of the page, giving the hole layout an uneven feeling. How can I set the penalties so that the processor prefers ending a page and starting a new one instead of stretching the lines between paragraphs?

  • 1
    Use the directive \raggedbottom in your preamble. The default is \flushbottom. – Bernard Sep 1 '16 at 10:05
  • This produces a better output indeed. But it still stretches the paragraphs. Is it possible to turn of the stretching all together? – Martin Mueller Sep 1 '16 at 10:35
  • 2
    It shouldn't stretch the paragraphs, but maybe it stretches some rubber lengths. Can you post a small example demonstrating the problem? – Bernard Sep 1 '16 at 10:38
  • 1
    I tried to produce a MWE but found the error along the way. I use reledmac and I usually had a paragraph with a date set like this: \begin{flushright}\pstart blablabla \pend\end{flushright} this would produce an empty space afterwards which would be stretched or – sometimes not. I now changed it all to \pstart\begin{flushright} … and everything works as desired after writing \raggedbottom into the header. – Martin Mueller Sep 1 '16 at 13:21
  • 1
    That's fine! A number of problems can solved by just trying to produce a short example. – Bernard Sep 1 '16 at 13:41
1

I was looking for the command \raggedbottom, as Bernard mentionned in the comments.

|improve this answer|||||
0

You can use \newpage before starting a new section.

As an example:

\documentclass{article}
\begin{document}

\section{sec1}
test

\newpage

\section{sec2}
test


\end{document}
|improve this answer|||||
  • 1
    This I know, but I don't want to do all the page-breaking myself. Bernards answer with \raggedbottom did the trick. – Martin Mueller Sep 1 '16 at 14:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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