I am trying to create a document that has the following properties:

  • line spacing is non-standard but constant

  • paragraphs have no perceivable vertical margins between each other

  • text height is automatically adjusted to exactly fit the contents, based on a page of only paragraphs

  • chapter, section and subsection etc. whitespace is expanded to fill pages

However, this does not work as intended. The spacing affects the relevant commands as shown by the fact that spacing is changed, but the glue seems to have no effect, as the paragraphs do not reach the bottom, and there are errors about Underfull \vbox (badness 10000) on every page with a chapter title.





\setlength{\parskip}{0pt plus 0pt minus 0pt}
\setlength{\beforechapskip}{0pt plus 1fill minus -.2ex}
\setlength{\midchapskip}{0pt plus 1fill minus -.2ex}


\chapter{Lorem ipsum}
\chapter{Dolor sit amet}
\chapter{Consectetur adpisci velit}
\chapter{Sed ut m\ae cenas turpis}
\chapter{Congue marinam}
\chapter{Perspiciatis nullam nibh}
\chapter{Duis convallis orci id}
\chapter{Nam viverra ultricies}

  • 1
    0.0000001pt and 0pt are the same – egreg Jun 5 '17 at 12:02
  • What do you mean "the paragraphs do not reach the bottom"? \beforechapskip affects the spacing above the chapter's title, on the page that begins a chapter. It will only affect pagination on that page, if it does. You should not expect that, because of this, the last page of the chapter will extend to the bottom margin. – nickie Jun 5 '17 at 13:14
  • The pages would be about half a line longer without redefining the lengths. With the redifinitions, the pages containing only paragraphs are the same length. About the last page of chapter, that's okay, as that could only be changed by altering the contents of the text itself anyway. – svenper Jun 5 '17 at 14:08

Your Answer

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

Browse other questions tagged or ask your own question.