Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!ux1.cso.uiuc.edu!csrd.uiuc.edu!s41.csrd.uiuc.edu!eijkhout From: eijkhout@s41.csrd.uiuc.edu (Victor Eijkhout) Newsgroups: comp.text.tex Subject: Re: lastskip Message-ID: <1991Mar20.021016.9346@csrd.uiuc.edu> Date: 20 Mar 91 02:10:16 GMT References: <9103191328.AA19226@sc.ZIB-BERLIN.DBP.DE> Sender: news@csrd.uiuc.edu (news) Organization: UIUC Center for Supercomputing Research and Development Lines: 15 Schoepf@SC.ZIB-BERLIN.DBP.DE (Rainer Schoepf) writes: >There is some special treatment of vertical-type quantities >(like your \lastskip) within a \write. Try the following: > >\def\t{\skip0=\the\lastskip\immediate\write16{\the\skip0}} > >With this you get the correct value of \lastskip. If I remember >correctly, the problem with \write is that TeX is in a special >"no-mode" when it is processing the content of the \write, and Note that with \spacefactor and \prevdepth there are the same sort of problems, but there you get an error message. Victor.