home *** CD-ROM | disk | FTP | other *** search
/ World of A1200 / World_Of_A1200.iso / datafiles / text / c_manual / amiga / tools / pager / pager.doc < prev    next >
Text File  |  1995-02-27  |  2KB  |  34 lines

  1.     Program Pager.c -- print text file on 2 sides of paper
  2.  
  3. Programmer: Dick Taylor, 99 Valley View Rd, Glastonbury CT 06033 USA
  4. Date:       April 1991
  5.  
  6. History:  I wrote this program to print Anders Bjerin's C Manual from 
  7. the Fred Fish disk collection.
  8.  
  9. Preparation:  I make a separate run of Pager for each chapter.  In CLI 
  10. I use JOIN to combine the chapter text with all examples for that chapter,
  11. to make one text file in ram:.  If you wish to improve the readability
  12. of this JOIN'ed file, you could edit it to add a few blank lines between
  13. the examples.
  14.  
  15. To run:  Use CLI to start Pager.  At start of execution, you are prompted
  16. to enter--
  17.     1) Input file name
  18.     2) Number of lines printed per page.  I use 60 for 8 1/2 x 11 inch pages.
  19.     3) First page number.  Obviously start with 1 for chapter 1.  For
  20.         following chapters, I recommend that you always use an odd number,
  21.         so that the page numbers will appear on the outside page corner.
  22.         This means that sometimes you will need to skip an even number
  23.         following the end of the previous chapter.
  24.  
  25. On the first pass, Pager prints the first page and every second following
  26. page--usually the odd page numbers, while the second page and every second
  27. following are saved in a temporary file in ram:--usually the even numbers.
  28. At the end of this step, the program pauses and prompts you to take out the
  29. printer paper, turn it over, position it to start printing on the back of
  30. the first page.  Then you start it running again.
  31.  
  32. Assumption:  Line 1 of the text file is the chapter title.  This will be
  33.         printed at the top of each page, along with the page number.
  34.