]> mj.ucw.cz Git - ucwmac.git/commitdiff
\pageoverlay and \commonoverlay do not disturb line spacing
authorMartin Mares <mj@ucw.cz>
Sat, 25 May 2013 15:01:34 +0000 (17:01 +0200)
committerMartin Mares <mj@ucw.cz>
Sat, 25 May 2013 15:01:34 +0000 (17:01 +0200)
ucwmac.tex

index 09915502bb6179352532514d9de91b2193460c50..4a51b5915f8c8413ed14c194d2672bb606e0eff1 100644 (file)
 
 % Our variation on \plainoutput, which manages inner/outer margins and overlays
 \output{\ucwoutput}
+\newdimen\pagebodydepth
 \def\ucwoutput{\wigglepage\shipout\vbox{%
        \makeheadline
        \ifvbox\commonunderlays\copy\commonunderlays\nointerlineskip\fi
        \ifvbox\pageunderlays\box\pageunderlays\nointerlineskip\fi
        \pagebody
-       \ifvbox\commonoverlays\vbox to 0pt{\vskip -\vsize\copy\commonoverlays}\fi
-       \ifvbox\pageoverlays\vbox to 0pt{\vskip -\vsize\box\pageoverlays}\fi
+       \pagebodydepth=\prevdepth
+       \nointerlineskip
+       \ifvbox\commonoverlays\vbox to 0pt{\vskip -\vsize\copy\commonoverlays}\nointerlineskip\fi
+       \ifvbox\pageoverlays\vbox to 0pt{\vskip -\vsize\box\pageoverlays}\nointerlineskip\fi
+       \prevdepth=\pagebodydepth
        \makefootline
 }\advancepageno
 \ifnum\outputpenalty>-\@MM \else\dosupereject\fi}