Re: pause.sty and vertical spacing
Jean-Christophe Dubacq <[email protected]> Sat, 1 Nov 2003 13:58:07 +0100
| Newsgroups | gmane.comp.tex.ppower4 |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Oct 28, 2003 at 01:28:23PM +0000, Marc van Dongen wrote: > Klaus Guntermann (guntermann=jNDFPZUTrfRmTlJ5tp4iNa5Fl2EJEGXphC4ANOJQIlc@public.gmane.org) wrote: > > : Indeed that would be nice. But I do not have an idea how to achieve > : that. > : The problem is that \pause inserts something into the resulting pdf/dvi > : output stream to control the post processor. Thus there is some care > : needed to place the uses properly, because TeX may insert glue before > : or after the almost invisible \pause, if you do not take care. > : Because of this the manual suggests to put the \pause close to printed > : material. > > In my experience vertical layout only screws up between paragraphs. > Most of the time it helps to put the pause at the end of the paragraph > after which you want a pause. Make sure to put it immediately after > something that is printable. > > If you put the pause at the start of a paragraph before which you want a pause > then in my experience the vertical layout frequently (if not always) screws up I am looking at a solution where I do something akin to \removelastskip I will test it somewhat and come back here. \gdef\[email protected][#1]{! \ifvmode \dim0=\lastskip\vskip-\dim0 \vbox to 0pt{\vss\hsize0pt\noindent\hbox to 0pt{\pppp=O96M0/[email protected]{#1}}}! \vskip\dim0 \else!hmode or mmode \null\hbox to 0pt{\pppp=O96M0/[email protected]{#1}}\null! !\null\hbox to 0pt{\pppp=O96M0/[email protected]{#1}}\null \fi} However, I lose the spring quantity by doing this. Is there a TeX primitive that would get me the \lastspring?