6

I found many places in my document where the subsection titles are places alone at the bottom of the page with the content on the next page, like this:

 ____________ ____________
|            |            |
| Section    | .......... |
| .......... | .......... |
| .......... | .......... |
| .......... | .......... |
| .......... | .......... |
| .......... | .......... |
| Section    | .......... |
|____________|____________|

I do not want any section titles to appear without any text below them, e.g., this will be fine:

 ____________ ____________
|            |            |
| Section    | Section    |
| .......... | .......... |
| .......... | .......... |
| .......... | .......... |
| .......... | .......... |
| .......... | .......... |
|            | .......... |
|____________|____________|
  • I used \startsubsection and \stopsubsection to define the whole section text.

Is there any way to make sure that the section titles always appear together with at least one line of text from the paragraph inside?

4
  • +1 This always bugs the heck out of me. I've been known to write fluff or be the most vicious editor simply to avoid such eyesores. What's being asked for is something like a ~ for \par. (Is there a \par*?) – Sean Allred Jun 28 '13 at 2:20
  • 3
    Normally section titles have some penaty after them to prevent orphans, so it is hard to say why you are seeing this behavior. The usual way to prevent a page break after a section heading is to use after={\page[none]}. If that doesn't work try before={\testpage[3]} – Aditya Jun 28 '13 at 4:43
  • 1
    There’s also \page[preference]. Normally, it does a \testpage[3] but also comes with special handling for columns. – Philipp Gesang Jun 28 '13 at 7:25
  • 3
    @Village: Can you provide a minimal example that demostrate's the problem? – Aditya Jul 3 '13 at 22:34
0

Have you tried setting \clubpenalty = 10000 in preamble? It removes single lines of paragraphs on the preceding page (see here). Not sure if this is why I never get your problem, or whether it is just a coincidence, though!

1
  • With an infinite \clubpenalty you're in for some really bad pagebreaks. – Henri Menke Jun 24 '20 at 23:06

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.