7

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
    +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*?) Jun 28, 2013 at 2:20
  • 4
    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, 2013 at 4:43
  • 1
    There’s also \page[preference]. Normally, it does a \testpage[3] but also comes with special handling for columns. Jun 28, 2013 at 7:25
  • 5
    @Village: Can you provide a minimal example that demostrate's the problem?
    – Aditya
    Jul 3, 2013 at 22:34

1 Answer 1

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. Jun 24, 2020 at 23:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .