I am trying to create a simple outline document (based on scrbook), that contains just headings (chapter, section, ...) and a few notes inbetween. For that, I removed the clearpage before a new chapter, and adjusted the heading spacings with the titlesec package. Later, I'll comment out the modification and flesh out the outline to be the final document.
I's looking pretty good so far, but Latex insists in inserting rubber between paragraphs and before and after sections. Setting \raggedbottom
fixed that, but I still get some section headings pushed to the next page, although there would be enough space on the current page.
I'd like it to put as much text as possible on the current page, even if the page ends with a heading. I tried
\widowpenalty=0
\clubpenalty=0
but that didn't have any effect. What can I try?
\includeonly{<filename>}
. This file contains chapter and subsections but your final document need only show the table of contents. Otherwise, why doesn't just using nested lists suit your purpose?\makeatletter\@clubpenalty=0 \makeatother
?\patchcmd{\section}{...}
, that really only affects the section headers.