I have a problem with an "onehalfspacing document". Whenever I use an math environment in this document, latex notify "Underfull \vbox (badness 10000) has occurred while \output is active []". I think there is a problem with another spacing between the text and the math environment different to onehalfspacing. Exists there a global solution for the hole document to fix these vbox-problems?
I know that \raggedbottom prevents, that latex stretchs the text to the pagebottom. But then I have gaps at the pagebottoms.
Here ist a MWE (where the problem occurs, but not so dramatically than in other situations):
\documentclass{scrbook}
\usepackage{setspace}
\onehalfspacing
\AfterTOCHead{\singlespacing}
\KOMAoptions{DIV=current}
\usepackage{amsmath}
\recalctypearea
%\raggedbottom
%Some text:
\newcommand{\sometext}{Aureh eurhg urg uhre uh uig iugh iugril giuzz geiu griugrq u gru grilu
geluig igru iuegg iu eh iuu gru grilu geluig igru iuehg uh uig iugh iugr geiu griugrq u gru grilu gel
uig igru iuegg iu gruhg rg uhg ug r gr
}
\begin{document}
hallo
\begin{equation*}
K(y,\varepsilon)\subseteq k(y,\varepsilon)\subseteq K(y,p\varepsilon).
\end{equation*}
% Some random text:
\sometext\sometext\sometext\sometext\sometext\sometext\sometext\sometext
\sometext\sometext\sometext\sometext\sometext\sometext\sometext\sometext
\end{document}
Underfull \vboxwarning. You could try to slightly modify the text area height. – Ruixi Zhang Feb 20 '20 at 02:32\usepackage[onehalfspacing]{setspace}then add\KOMAoptions{DIV=current}. In Chapter 2 of the KOMA-Script documentation: “I recommend the packagesetspace(see [TF11]), which is not part ofKOMA-Script. You should also lettypearearecalculate a new type area after changing the line spacing. However, you should switch back to the normal line spacing for the title, and preferably for the table of contents and various lists — as well as the bibliography and the index. For details, see the explanation ofDIV=current.” Also the example after Table 2.3. – Ruixi Zhang Feb 20 '20 at 02:46