home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.text.tex
- Path: sparky!uunet!newsstand.cit.cornell.edu!news
- From: Tim Larkin <tsl1@cornell.edu>
- Subject: Re: continued on the next page
- Message-ID: <1992Nov23.162725.20516@mail.cornell.edu>
- X-Xxdate: Mon, 23 Nov 92 16: 32:02 GMT
- Sender: news@mail.cornell.edu
- Nntp-Posting-Host: 128.253.27.134
- Nntp-Posting-User: tsl1@cornell.edu
- Organization: Cornell University
- X-Useragent: Nuntius v1.1.1d7
- References: <1992Nov19.175017.11698@informatik.uni-bremen.de> <bern.722531110@kleopatra>
- Date: Mon, 23 Nov 1992 16:27:25 GMT
- Lines: 22
-
- In article <1992Nov23.125947.10381@informatik.uni-bremen.de> Martin
- Schroeder, ms@lehre24.informatik.Uni-Bremen.DE writes:
- >Thanks very much, but I would like a one-pass solution (if it is
- impossible, tell me).
-
- My TeX intuition tells me that a one-pass solution is impossible, but I
- can't prove it. Consider an attractive possibility. Define a boolean
- variable, initialize it to false, then set it to true just before \end.
- Your footline routine then looks at the variable to decide if the
- document has come to an end. However, this won't work because TeX reads
- ahead of the page maker; thus the flag will very probably be true when
- the page maker constructs the penultimate page.
-
- I think you need two passes. In fact, make one pass, count the number of
- pages, then provide that number to the footline routine.
-
- Tim Larkin
- Federal Nutrition Laboratory
- Tower Road
- Ithaca, New York
- tsl1@cornell.edu
- 607-255-7008
-