From: Martin Mares Date: Sat, 25 May 2013 15:01:34 +0000 (+0200) Subject: \pageoverlay and \commonoverlay do not disturb line spacing X-Git-Tag: v1.1~7 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=9f45e88470a4037c6ee7972d45b143f9d5e91126;p=ucwmac.git \pageoverlay and \commonoverlay do not disturb line spacing --- diff --git a/ucwmac.tex b/ucwmac.tex index 0991550..4a51b59 100644 --- a/ucwmac.tex +++ b/ucwmac.tex @@ -126,13 +126,17 @@ % 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}