1

Im trying to create a document with only minipages to not break the content over different pages. But when the minipages reach the 2nd page of a chapter, the chapter heading layout is shifted vertically and the content of the 1st page is somehow distributed over the entire page instead of top aligned.

I've found that introducing a \vfill after the 1st minipage solves the header layout but the other minipages are then placed on the bottom while I want the spacing to be at the bottom.

Any suggestions?

Example:

\documentclass{book}
\usepackage{lipsum}

\begin{document}

\chapter{Correct layout}
\begin{minipage}{\textwidth}
\lipsum[1]
\end{minipage}

\chapter{Shifted layout}
\begin{minipage}{\textwidth}
\lipsum[2]
\end{minipage}

\begin{minipage}{\textwidth}
\lipsum[2]
\end{minipage}

\begin{minipage}{\textwidth}
\lipsum[1-2]
\end{minipage}

\end{document}
2
  • 1
    Welcome to TeX.SX! Maybe \raggedbottom can help you. Though I'm not sure if using minipages is the best idea here. Maybe a different solution would fit you better.
    – moewe
    Sep 9, 2015 at 9:44
  • Thanks, that worked perfectly for me. Didn't know that command yet. Currently the minipage with some tweaking works out fine for me. Do you have other suggestions then?
    – Brecht
    Sep 9, 2015 at 10:47

1 Answer 1

1

As suggested by moewe \raggedbottom does what I want

\documentclass{book}
\usepackage{lipsum}
\raggedbottom

\begin{document}

\chapter{Correct layout}
\begin{minipage}{\textwidth}
\lipsum[1]
\end{minipage}

\chapter{No more shift}
\begin{minipage}{\textwidth}
\lipsum[2]
\end{minipage}

\begin{minipage}{\textwidth}
\lipsum[2]
\end{minipage}

\begin{minipage}{\textwidth}
\lipsum[1-2]
\end{minipage}

\end{document}

You must log in to answer this question.

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