home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / text / tex / 13441 < prev    next >
Encoding:
Text File  |  1992-11-23  |  1.4 KB  |  38 lines

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