10
votes
1answer
524 views

Using mdframed after a section heading

The following is a very contrived example, but it illustrates a problem I am unable to solve with the mdframed package. When the mdframed environment follows a section heading but there is ...
2
votes
1answer
172 views

Supress page breaks before headings, allow orphans

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 ...
2
votes
1answer
313 views

Section headers not sticking with first paragraph

I'm seeing lots of section/subsection headers getting split up from their paragraphs across page and column boundaries. I've never seen this before, but I'm also using a class file that's new to me, ...
2
votes
1answer
2k views

Heading at the bottom of the page

I'm typesetting a large document (phdthesis) with pdflatex and I'm using KOMAscriptand the scrreprtdocument class. I was very surprised as I saw a heading (\subsubsection) standing at the bottom of a ...
2
votes
2answers
2k views

How to avoid heading orphan?

I want to get rid of pages ending with a heading title only. I want at least 2 text rows following the heading title to make a better look. What is the exact value to be passed to \Needspace*{} to ...