I use the prelim2e package to mark a document as a draft. This package puts a draft line below the normal footer that contains for example Preliminary version – May 15, 2012.
Usually this draft line stays at the same position on each page, except when the singlespacing environment is used. Then the draft line on the first page inside the singlespacing environment has little different position than the other draft lines. When flipping through the pages this looks weird and I would like to have the draft line in the exact same position on every page.
Here is a MWE
\documentclass[onehalfspacing,oneside]{scrbook}
\usepackage{setspace}
\usepackage{prelim2e}
\begin{document}
\begin{singlespacing}
\tableofcontents
\listoffigures
\end{singlespacing}
\chapter{Some Chapter}
\end{document}
Positioning of draft line
The positioning of the line is described in the package documentation. But I am not really sure if and what I would have to change here:
We put the text below the page via
\EveryShipoutprovided by theeveryshipackage. This is done by\@Prelim@EveryShipout.
\@Prelim@EveryShipoutputs the text produced by\PrelimTextbelow the page. To do this we modify\box255: We append a\vboxwith height and depth of 0pt and the width of\box255which contains a \hbox with the width of\box255in which\PrelimTextis centered.38 \newcommand{\@Prelim@EveryShipout}{ 39 \bgroupFirst we save the dimensions of
\box255: height, width and depth; and calculate the total height of\box255.40 \dimen\z@=\wd\@cclv 41 \dimen\@ne=\ht\@cclv 42 \dimen\tw@=\dp\@cclv 43 \dimen\thr@@=\dimen1 44 \advance\dimen\thr@@ by \dimen\tw@Then we set
\box255: A\vboxto the total height of\box255. In this a\hboxto the width of\box255is included, in which\box255is set.45 \global\setbox\@cclv\vbox to \dimen\thr@@{% 46 \hb@xt@\dimen\z@{% 47 \box\@cclv% 48 \hss% 49 }%To this we append the text produced by
\PrelimText. It is put in a\vboxto0ptin which a\hboxto the width of\box255is included, in which\PrelimTextis set. We have to reset\protectbecause it is set to\noexpandby the output routine.50 \vbox to \z@{% 51 \hb@xt@\dimen\z@{% 52 \let\protect\relax 53 \hfill\PrelimText\hfill% 54 }% 55 \vss% 56 }% 57 \vss% 58 }%