home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 19 Printer / 19-Printer.zip / lj2up2.zip / LJ2UP.DOC < prev    next >
Text File  |  1987-04-04  |  4KB  |  89 lines

  1.  
  2.             LaserJet Lister Utility
  3.                   Version 2.0
  4.            Copyright (c) 1987 by Joe Barnhart
  5.  
  6. This file, LJ2UP.EXE, is a utility that prints ASCII text files in "2-up"
  7. (two pages on each piece of paper) format on a Hewlett-Packard LaserJet 
  8. (or LaserJet+) printer.  To run this program, you need a font cartridge 
  9. with the Line Printer font in landscape form.  Many cartridges contain this 
  10. font, such as the HP 92286A font cartridge.  (Neither the LaserJet nor 
  11. the LaserJet+ have this font built in.)
  12.  
  13. To print a file, or a series of files, invoke LJ2UP from the command line:
  14.  
  15.         A>LJ2UP [-dtpvsoi] file1 file2 file3 ...
  16.  
  17. Each filename may contain wildcards ('*' and '?') and path specifications.
  18. The optional switches are:
  19.  
  20.     d    Supress the date and time stamp at the bottom of the page.
  21.     tN    Set tab stops every N columns.
  22.     pN    Set print length to N lines (add 2 lines for date stamp).
  23.     v    Turn OFF the vertical line that separates pages.
  24.     s    Enable PC/Forth "screenfile" mode.
  25.     oName    Re-direct the output to a device or file.
  26.     i    "IBM" file mode: 66 lines/page, no form-feeds
  27.     else    Any other character prints the command usage on the console.
  28.  
  29.  
  30. The defaults are:
  31.  
  32.     Date and time stamping ON.
  33.     Tabs every 8 columns.
  34.     Print length 56 lines.
  35.     Vertical separator line ON.
  36.     Screenfile mode OFF.
  37.     Printer device PRN:
  38.  
  39.  
  40. Here are some examples:
  41.  
  42.     LJ2UP -dp60 JUNK.TXT    Print JUNK.TXT with 60 lines/page, no date.
  43.     LJ2UP -oCOM1 \*.C     Print files *.C and JOE.* to device COM1.
  44.     LJ2UP -s *.SCR        Prints all ".SCR" screenfiles in current dir.
  45.  
  46.  
  47. To save time, put several file specifications on one line:
  48.  
  49.     LJ2UP  A:*.PAS  \MSC\WORK\*.C  C:\PUBLIC\*.DOC
  50.     LJ2UP  -s C:\LMI\*.SCR  D:\URFORTH\*.SCR
  51.  
  52. As a special treat, you may define your own default preferences and make
  53. them known to LJ2UP through an environment variable named "LJ".  For
  54. example:
  55.  
  56.     SET LJ=-dp60oLPT1    Put this line in AUTOEXEC.BAT
  57.  
  58. The above command causes LJ2UP to default to <no datestamp>, <60 lines/page>,
  59. and <output to LPT1>.  You may use this feature to customize LJ2UP without
  60. actually patching the code.  In the environment variable, the options must
  61. be specified without intervening spaces.
  62.  
  63. When defining the number of lines per page, be aware that the date stamp 
  64. requires two lines.  Therefore, defining a page length of 60 lines with date
  65. stamping ON will result in 58 printable lines on each page.  If there are form
  66. feeds imbedded in the file, they will cause the lister to skip to the top of 
  67. the next page (which could be on the same piece of paper).
  68.  
  69. The "IBM" file mode is for text files that assumes 66 lines/page (60 printable) 
  70. and does not include any form-feeds.  These files are most commonly seen as 
  71. ".DOC" files for shareware and such.  Note that the -i flag overrides the -p 
  72. and -d settings.
  73.  
  74. I am retaining the legal copyright to this program, but you may use it without
  75. incurring any financial obligation.  In other words, the use of this program
  76. is FREE.  The use of this program is free because I have spent many enjoyable
  77. hours using programs that were provided in the public domain by authors like
  78. Ward Christensen.  I hope that you have as much fun with this program.
  79.  
  80. Thanks to my friend Ray Duncan for his MS-DOS magic and Microsoft C mastery,
  81. and to Allen Holub and Dr. Dobb's Journal for the functions GETARGS.C and STOI.C
  82. used in this program.  
  83.  
  84. Joe Barnhart
  85. 1470 Townview Ave.
  86. Santa Rosa, CA  95405
  87. Compuserve 76174,1573
  88. (no donations accepted)
  89.