home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / printer / mp201.lha / MultiPrint.doc < prev   
Text File  |  1993-06-09  |  42KB  |  1,043 lines

  1. {\Centre}{\Bold +
  2.                           MultiPrint V2.01 - Manual
  3.                                 John Matthews
  4.                                  9 June 1993
  5. {\Justify =}{\B -
  6.  
  7.  NAME
  8.  ----
  9.  
  10. MultiPrint
  11.  
  12.  SYNOPSIS
  13.  --------
  14. {\Reformat -}
  15. {\Justify -}
  16.     MultiPrint <args>
  17.  
  18.       Files/A/M
  19.          :  Text file(s), to print and scripts of files to print.
  20.             Can also include layout commands. See Later.
  21.  
  22.       TabSize/N/K
  23.          :  Number of positions to expand tabs to, default is 8.
  24.             This is only used when there is no justification, and
  25.             paragraph reformatting is off.
  26.  
  27.       FF/S
  28.          :  Pay attention to FormFeed characters. Starts new pages on a
  29.             new column.
  30.  
  31.       Sides/S
  32.          :  Print to both sides of a sheet. Only useful with cut-sheet
  33.             feeder type printers, laser jets, HP Deskjets etc.
  34.             See note on 'Last Page'.
  35.  
  36.       Font/K
  37.          :  Name of font to use for text, defaults to LetterGothic.font
  38.             See notes later on font usage.
  39.  
  40.       Size/K/N
  41.          :  Point size of font, or pixel size if PxlFontSize specified.
  42.             Defaults to 8 points (1/72nds of an inch, ie 9 lines per inch)
  43.             or 8 pixels (real small, smaller at higher printer resolutions)
  44.             if you use Pxls.
  45.  
  46.       LineSpace/K/N
  47.          :  Point/Pixel size of each line to print. ie Use twice the font size
  48.             for double spacing. Can only be used to increase spacing.
  49.  
  50.       Columns/K/N
  51.          :  Number of columns to print, 1..8. Defaults to 2.
  52.  
  53.       Gutter/K/N
  54.          :  How many 1/10ths of an inch to leave at the left of odd, and
  55.             the right of even pages. Defaults to 5, ie half an inch
  56.  
  57.       OddFooter/K
  58.          :  Footer for odd pages, defaults to file name
  59.  
  60.       EvenFooter/K
  61.          :  Footer for even pages, defaults to file name
  62.  
  63.       FooterFont/K
  64.          :  Name of font for footers, defaults to same as Font
  65.  
  66.       FooterSize/K
  67.          :  Point size of footer font, or pixel size if PxlFontSize
  68.             specified. Specifying 0 causes MultiPrint to not print
  69.             a footer, which includes page numbering.
  70.             Defaults to 14 points (1/72ndsof an inch)
  71.             or 14 pixels (real small) if you use Pxls
  72.  
  73.       Pxls/S
  74.          :  Causes MultiPrint to treat font sizes as absolute pixel height,
  75.             instead of point sizes. This method is dependant on the
  76.             resolution of the printer, but is necessary for use with
  77.             non-scalable fonts. If you specify this flag, you should not
  78.             use the default font sizes.
  79.  
  80.       Priority/K/N
  81.          :  Specifies the priority to run the spooler task at
  82.  
  83.       Ask/S
  84.          :  Prompt for confirmation of each file to print
  85.  
  86.       Quiet/S
  87.          :  No error messages for unfound files.
  88.  
  89.       Margin/K/N
  90.          :  Space in 10ths of an inch to leave between columns.
  91.             Defaults to 1 tenth of an inch.
  92.  
  93.       Line/S
  94.          :  Causes MultiPrint to draw a line between columns
  95.  
  96.       Start/K/N,
  97.       End/K/N
  98.          :  Specifies which page to start/end printing on. Remember that
  99.             many parameters effect page layout, such a font, font size,
  100.             resolution, number of columns, footers etc
  101.  
  102.       Density/K/N
  103.          :  Specifies the preferences density to use when printing,
  104.             range 1..7. If you specify 0, you will be prompted with the
  105.             dots per inch of each density. Not specifying density
  106.             causes MultiPrint to use the current preferences density.
  107.             See note on resolution later.
  108.  
  109.       NoCommands/S
  110.          :  Tells MultiPrint not to interpret '{' followed by '\' as
  111.             commands. For those (infrequent) occassions when you have
  112.             such a sequence in your document. There is currently no
  113.             way in which you can print such a sequence, _and_ use
  114.             controls in the document.
  115.  
  116.       NoISP/S
  117.          :  Tells MultiPrint not to treat an indented line as the start
  118.             of a paragraph. Useful for files with indented paragraphs,
  119.             ie where the whole paragraph is indented. With this switch
  120.             on, only a blank line or the \P switch (see commands) will
  121.             start a new paragraph.
  122.  
  123.       Preview/S
  124.          :  Tells MultiPrint to run in Preview mode, printing a scaled
  125.             version of the output to the screen. While this is not
  126.             generally readable, it allows you to view the formatting
  127.             of the output.
  128.             Very useful when printing pre-formatted, or unformattable
  129.             files (source code), to check if they are fitting in the
  130.             columns. Be aware that scaling varies with different display
  131.             sizes/printer resolutions/page sizes. Details such as the
  132.             between columns lines may not always be displayed.
  133.             Replaces the old 'Check' option.
  134.  
  135.             If you have enough memory (at least 2Meg Chip), using a
  136.             Super-High Res Laced screen with LargeScreen on gives a
  137.             quite readable preview.
  138.  
  139.             Specifying a low-density for your printer may also give
  140.             semi-readable results, but is likely to be less accurate
  141.             in its formatting in relation to the final output at a
  142.             higher density.
  143.  
  144.       DisplayName/K
  145.          :  Gives the full name of a Screen Mode to use for the preview.
  146.             Use "DisplayName=?" to bring up a requester, or enter your
  147.             preferred mode, such as "PAL:High Res Laced" in the format
  148.             they appear in the requester.
  149.             The default is to display the preview on the default public
  150.             screen, usually Workbench.
  151.  
  152.       LargeScreen/S
  153.          :  This will create a screen which is larger than displayable,
  154.             and scrolls with the mouse.
  155.  
  156.       SpoolDir/K
  157.          :  If you specify a directory name to this parameter, pages
  158.             are spooled to disk during processing, thus using less
  159.             memory, especially in the case of printing a large file to
  160.             both sides of a sheet.
  161.  
  162.       Balance/S
  163.          :  Tells MultiPrint to balance the columns on the last sheet
  164.             of a file.
  165.  
  166.       NoFont/S,NoStyles/S,NoJust/S
  167.          :  Tells MultiPrint to ignore Font/Style/Justification changes
  168.             repectively.
  169.  
  170.       ForceBold/S,
  171.          :  Forces all fonts (except in footers) into Bold. This is useful
  172.             if small, light fonts don't show well on your printer. Don't
  173.             use this if you don't need it, as bold in your text won't
  174.             show any difference.
  175.  
  176.       PercentPage/K/N,
  177.          :  Given a number from 1 to 100, prints to that percentage of
  178.             the page-length. This is useful for laser printers without
  179.             enough memory to print a full page of text.  For example,
  180.             entering 50 will only print to the top half of each page.
  181.             For this option, page length is derived from the printer
  182.             driver, or from PageLength if it exists and HPPrinter is on.
  183.  
  184.  See Also the notes on 
  185.    Page/Printer Setup
  186.    Environment Arguments
  187.  
  188. {\Reformat =
  189. {\Justify =
  190.  
  191.  DESCRIPTION
  192.  -----------
  193.  
  194. MultiPrint is a program for printing text files to both sides of a page,
  195. in  multiple columns, and very small, or very large, high quality fonts.
  196.  
  197. As an example of the efficiency of MultiPrint, I have printed a file
  198. which was designed to be 127 pages long. I printed it at 7 points, which
  199. is small, but is readable at 300dpi, and it took only 8 sheets of paper.
  200. Having been reformatted with the +R switch, 346 lines of the original
  201. document were printed on the first side of a sheet alone.
  202.  
  203. MultiPrint makes use of many Amiga OS Release 2.04 features, and so
  204. requires at least this revision of the operating system. These features
  205. include Compugraphic Scalable Font technology, to produce characters to
  206. the correct size at the full resolution of the, printer, and the correct
  207. aspect ratios.
  208.  
  209.  
  210.  
  211.  SOURCE
  212.  ------
  213.  
  214. The source code is not included, but is available from the author.
  215. MultiPrint was writtern in M2Sprint Modula2, but should be easy to port to
  216. other languages if desired.
  217.                                        
  218.  
  219.  COPYRIGHT
  220.  ---------
  221.  
  222. MultiPrint V2.01 is freely distributable. MultiPrint V2.01 is free to be
  223. spread on public-domain and shareware disks especially on Fred Fish's
  224. AmigaLibDisks, as long as they are sold for a reasonable charge that is
  225. less than US $6 or equivalents. For use in commercial products the
  226. permission of the author is required. MultiPrint V2.01 may be copied and
  227. distributed via electronic networks such as the Internet, also it may be
  228. held available on anonymous ftp-servers, mail-boxes or BBS's. The
  229. Copyright is still held by the Author.
  230.  
  231. I am offering MultiPrint as shareware. If you use it regularly, let me
  232. know. If you want to show your appreciation, or maybe encourage me to
  233. develop the GUI version, or specific mods, the suggested registration fee
  234. is US$20 (in notes, or something easy like that, NZ$ even better), but this
  235. is just a suggestion. Registered owners with Usenet access will get some
  236. support via email. No obligations, no promises.
  237.  
  238. However, if you want to use it for some commercial project/product, please
  239. make it up to me somehow.
  240.  
  241. If you need some modifications done, offer me some incentive.
  242.  
  243. NO MATTER WHAT -
  244.  Leave the program as is, and documentation intact.
  245.  
  246.  AUTHOR & SUPPORT
  247.  ----------------
  248.  
  249. {\Centre +
  250.     John Matthews
  251.     4 Wadham Grove,
  252.     Tawa, 6203
  253.     Wellington,
  254.     New Zealand.
  255.     INTERNET: tribble@gphs.vuw.ac.nz
  256.     (Irregular monitoring)
  257. {\Justify =
  258.  
  259. Support may be limited to an attempt to fix any bugs which may be found,
  260. no promises. The author takes no liability for any damage caused by
  261. the program, but then, neither does he expect any.
  262.  
  263. Try the program out a few times before leaving it to print a large
  264. document unattended.
  265.  
  266. Leave me a message if you have any suggestions
  267.  
  268.  CHANGES
  269.  -------
  270.  
  271. 1.0 First Release, sort of. Was never really released
  272.     (29-Jan-93)
  273. 1.1 Second (attempt at a) Release.
  274.     Added support for multiple files and scripts.
  275.     (4-Feb-93)
  276. 1.2 Third ( attempt at a ) Release.
  277.     Added :
  278.       1. Right Justification.
  279.       2. Paragraph reformating.
  280.       3. Margins and Lines between columns.
  281.       4. Start/End page printing (for aborted print jobs)
  282.       5. Density setting.
  283. 1.3 Fourth ( (and successful) attempt at a ) Release.
  284.     February 24 1993
  285.     Added
  286.       1. Environment variable
  287.       2. LE and RE, to align columns on both sides of page.
  288.       3. Break commands
  289. 1.4 March 9 1993
  290.     Bug Fix :
  291.       fixed bugs in
  292.       1. handling of script files (it wouldn't)
  293.       2. printing of more than one file at a time (end of last line)
  294.       3. crashing on abort
  295.       4. centering of lines
  296.     Added
  297.       Inter-file title option (See Arguments below)
  298.  
  299. 1.5 March 20 1993
  300.     Bugs fixed :
  301.       1. printing of multiple files, other than starting a new sheet per
  302.          document.
  303.       2. fixed error with lines containing only spaces
  304.     Added
  305.       1. direct support for HP printers. See documentation.
  306.       2. NoCommands option (for Rob Poole)
  307.     Changed
  308.       1. Moved printer specific options into MultiPrint.printer
  309.          environment variable
  310.       2. Lengthened some command line option names
  311.  
  312. 1.6 April 5, 1993
  313.     Bugs fixed :
  314.       1. Re-occurring centering bug (Rob Poole).
  315.       2. Error with .otag files specifying non-present fonts.
  316.          Caused MultiPrint to not change styles (Italics etc)
  317.          if your CGTimes .otag file specified CGTimesItalic and
  318.          you didn't have it.
  319.       3. Possibly other formatting problems.
  320.       4. (Hopefully) fixed problem with Network printers found
  321.          by Dale Larson. Waiting to hear on this one.
  322.       5. Now starts new files on a new sheet when it's supposed
  323.          to, (the default) instead of always just on a new line.
  324.          (Rob Poole again! Watch it you guys or I might start
  325.          putting bugs in intentionally to give other guys a
  326.          chance!)
  327.       6. Enforcer hit on last page (it came and went).
  328.     Added
  329.       1. NoISP switch on command line.
  330.       2. \Paragraph command, to go with 1.
  331.  
  332.     Tested with Enforcer, Mungwall etc. I didn't find any hits.
  333.     Let's hope Dale doesn't either.
  334.  
  335. 1.7 April 19, 1993
  336.     Bugs fixed :
  337.       1. Printing of inter-file headers (via the +T flag) corrected
  338.          to print before the new file, instead of after the old.
  339.          This means it prints on the same sheet/page/column as the
  340.          new file (dependant in the L/C/P/S flags).
  341.       2. Corrected allignment of even pages when not printing to
  342.          both sides of a sheet.
  343.       3. Check option didn't work anymore :-(
  344.          Has now been removed, as it is superceded by the Preview
  345.          option, which is much simpler and more flexible (ie works
  346.          with reformating and justifying).
  347.       4. Now frees memory from page-in-progress when aborted.
  348.     Features Added:
  349.       1. Preview function. Allows a look at how the document will
  350.          appear, without printing.
  351.          Very useful when printing pre-formatted, or unformattable
  352.          files (source code), to check if they are fitting in the
  353.          columns.
  354.       2. HPShingle added to printer setup environment variable,
  355.          MultiPrint.Printer. See the note on Shingling in the
  356.          HPPrinter options below. Basically, it sacrifices speed
  357.          to improve quality on DeskJet printers from HP500C up.
  358.  
  359. 1.8 April 25, 1993
  360.     Bugs fixed :
  361.       1. Persistant bug with centering in non-reformatting mode fixed.
  362.       2. Fixed bug with inter-process communication, which caused the
  363.          program to jam sometimes when aborted.
  364.       3. Aborting print fixed when a command-line option is misspelt,
  365.          resulting in a non-existant file message.
  366.       Maybe more. It's easier to debug with the preview option present.
  367.       Uses less paper when printing to the screen.
  368.     Changes :
  369.       1. Slight redefinition of command format. If you want to place
  370.          formatting commands, in particular Justification and Centering,
  371.          on their own line (they must start the line anyway or they
  372.          will be ignored) without leaving a blank line, leave
  373.          off the closing brace. Alternately, remember to leave the
  374.          closing brace it there is supposed to be a blank line.
  375.       2. Improved preview function, to allow it to run on existing
  376.          (public) screens, especially Workbench.
  377.       3. Improved preview to allow for large 'virtual' screens, in
  378.          one direction (usually height) with autoscroll.
  379.       4. Added spoolling to disk, for those really large files, and
  380.          background printing, where memory is required for other
  381.          things.
  382. 1.9 April 28, 1993 - OOPS, version still read 1.8 etc
  383.     Bugs fixed :
  384.       1. Changed Footer options from xxxFootxxx back to xxxFooterxxx.
  385.          My compiler has trouble with long string constants, so now
  386.          some things are linked in as objects, and the template can
  387.          be as long as necessary.
  388.       2. End-of-paragraph at end-of-page code was commented out during
  389.          testing
  390.       3. LargeScreen option should now (correctly) only give you
  391.          scrolling in one dimension in all displays.
  392.       4. Default Footers now give the name of the first file on a page,
  393.          rather than the last.
  394.     Changes
  395.       1. Made balancing the columns on last pages an option.
  396.  
  397. 1.10 May 4, 1993
  398.     Bugs fixed :
  399.       1. Graceful exit if fonts or printer not opened.
  400.  
  401. 1.11 May 11, 1993
  402.     Bugs Fixed :
  403.       1. Fixed bugs in handling of CSI type bold/italic etc codes,
  404.           a) not switching off
  405.           b) adding spaces in non-justified mode
  406.          Thanks to Andrew Harrison for spotting this
  407.       2. LineSpacing argument changed to only work for increasing spacing.
  408.          Before, if you specified a smaller point size for the spacing
  409.          than for the font, nothing would print.
  410.  
  411. 1.12 May 13, 1993
  412.     Bugs Fixed :
  413.       1. Top margin bug in Hewlett Packard direct driver code. Caused
  414.          problems (I suspected, and have had one confirmation) with
  415.          laser printers, though not with DeskJets. On my DeskJet I got
  416.          three millimeters extra space used at the top of the page.
  417.          Still, better to stick with the defaults.
  418.          
  419.          Please note, if you were using the PageLength printer environment
  420.          argument in conjunction with the HPPrinter flag, you'll have a
  421.          larger top margin, and less actual print height. For example,
  422.          on a DeskJet 500C, I had to reduce the PageLength variable from
  423.          283 millimeters to 280 millimeters, ie PageLength=280.
  424.          
  425.       2. Fixed problem with Ctrl-C not working once all the pages were
  426.          prepared, and awaiting printing. Could conceivably mean waiting
  427.          for lots of pages if your computer was way faster than your
  428.          printer and you wanted to stop printing.
  429.     Added Features
  430.       1. HPUniDir flag in printer environment variable, to slightly improve
  431.          quality on HP DeskJets.
  432.  
  433. 2.00 May 27, 1993
  434.     Bugs Fixed :
  435.       1. Big bug fixed for those out there using most printers other than
  436.          Hewlett Packard compatible printers. Now, shouldn't print blank
  437.          lines where bits of text should be.
  438.       2. Fixed some small formatting problems.
  439.       3. Fixed some other things, but I've forgotten what they were.
  440.          Had had no serious messages about them though :-)
  441.       4. Jumped version numbers, and changed to a trailing 0, to provide
  442.          consistent numbering.
  443.     Added Features :
  444.       1. Modified Centering, so \C - returns you to the previous mode of
  445.          justification. It is no longer necessary to remember when
  446.          adding the codes to the files.
  447.       2. Added 'This page intentionally left blank' :-)
  448.       3. Added command line switches to turn off in-file formatting
  449.          commands.
  450.  
  451. 2.01 June 9, 1993
  452.     Bugs Fixed :
  453.       1. Major bug : Output to multi-pin printers was broken.
  454.          MultiPrint uses a technique of strip-printing, to keep from
  455.          having to create the full (high resolution) page image in (chip)
  456.          memory.
  457.          Some printers, like Hewlett Packards, are smart, and buffer
  458.          raster lines until they have enough to fill the print head.
  459.          Others are likely to give blank lines between strips.
  460.          Previous versions of MultiPrint attempted to combat this, and
  461.          while the technique was correct, technicalities in the coding
  462.          caused it to fail. Now this has been tested more completely.
  463.          MultiPrint should now work with printers such as Canon bubble jets.
  464.       2. Aborting printing could leave the printer in a state where
  465.          another print would fail, and the program would just sit there.
  466.     Added Features :
  467.       1. Force Bold option added, for printers that can't print thin fonts
  468.          well. Forces all body-text into bold.
  469.          From a suggestion by Christopher A. Wichura.
  470.       2. PercentPage option added.
  471.          This option is designed for people with laser printer without
  472.          enough memory to print a full page.
  473.          For this option, page length is derived from the printer driver,
  474.          or from PageLength if it exists and HPPrinter is on.
  475.  
  476. 3.0 (Planned) Workbench interface. Drop and go operation and more.
  477.     This version may never eventuate. It depends on how much feedback
  478.     I get, as well as how much time I have to spend.
  479.     The amount of work required to do this properly grows on me
  480.     whenever I contemplate it. Some settings must be available only
  481.     on startup, and should be savable as defaults. Some should
  482.     be able to be modified on a per file basis, and some, mostly
  483.     those related to page size and printer resolution choices,
  484.     are limited by the implementation to startup-time only.
  485.     Let's face it - GUIs are _nice_ but unnecessary.
  486.  
  487.     However, having said all this, unless something else comes along,
  488.     I probabably will slowly work on increasing the GUI elements,
  489.     in a piece-by-piece basis.
  490.  
  491.  
  492.  
  493.  PURPOSE & THEORY
  494.  ----------------
  495.  
  496. MultiPrint was designed to print text files to as few pages as possible.
  497. You know how sometimes having a .doc file is not good enough, you need to
  498. be able to see it on paper, because you are always referring to it. Or you
  499. have a really neat StarTrek© parody you want to show someone.
  500.  
  501. MultiPrint can print using multiple columns, both sides of a page, with
  502. really small, but still high resolution fonts to fit many times the usual
  503. amount on a page.
  504.  
  505. For example, an A4 page can usually hold about 60 lines of text. With
  506. MultiPrint and an 7 point font (about 30 pixels high on a 300dpi laser or
  507. deskjet) giving 100 lines of text, with 2 columns of output to both sides
  508. of the page gives 100 * 2 * 2 = 400 lines per page.
  509.  
  510. MultiPrint uses whichever font you specify, and can handle narrow and
  511. proportional fonts to increase the number of columns you can print. Lines
  512. can be wrapped around and right justified for improved use of space and
  513. readability, producing newspaper like output.
  514.  
  515. MultiPrint allows a gutter for stapling sheets together. The default of
  516. 5/10ths of an inch is quite adequate.
  517.  
  518. MultiPrint determines page size, and resolution from the system. Page
  519. oriented printers such as laser printers and Hewlett Packard DeskJets
  520. specify their resolutions directly. Tractor feed etc printers must have
  521. their lines/inch and number-of-lines set correctly to reflect page length,
  522. but they don't work so well for both sides printing anyway.
  523.  
  524. MultiPrint queues the pages, and uses a child process to print the even
  525. pages first in ascending order, then the odd pages in descending order on
  526. the reverse sides.
  527.  
  528. Due to the queueing of pages, MultiPrint can use a certain amount of
  529. memory. All pages are stored in memory as they are processed, also the
  530. program requires a buffer for processing the pages. Text files don't
  531. usually get large enough for this to be a problem on most systems these
  532. days, and this is faster and easier than spooling off to disk again.
  533.  
  534.  
  535.  VERSION
  536.  -------
  537.  
  538. This is version 2.01 of MultiPrint. It does everything I need, but I would
  539. like to give it a nice Workbench interface. This may, however, take time.
  540.  
  541. If anyone has any need for features other than those present, let me know,
  542. and maybe offer suitable inducements :-)
  543.  
  544. I'd like, at least, to make enough money to offset the cost of the ink
  545. cartridge I used up in testing this program.
  546.  
  547.  
  548.  STARTING
  549.  --------
  550.  
  551. MultiPrint is a Shell/CLI only program, and requires at least version 2.04
  552. of the Amiga OS. All parameters, as described above, except for the file
  553. name, have defaults and require keyword specifications to override them.
  554.  
  555. MultiPrint runs at a default priority of -1, as a good printing utility
  556. should, though this can be changed with the priority keyword. Priority is
  557. not overly important in some respects, however, as MultiPrint does not
  558. busy-wait. If your computer is fast enough, and/or so is your printer
  559. driver, you could well be waiting on your printer. Laser printers however
  560. will more likely be waiting on the computer, and so MultiPrint will be
  561. grabbing every available cycle, so leave at a low priority for background
  562. printing.
  563.  
  564. Before printing a file, it may be a good idea to use the "Check" option to
  565. determine how much line wrapping is occuring. Modern fonts are variously
  566. weighted. A good, light proportional font can fit many more characters on
  567. average than a heavy non-proportional font, so check if the current number
  568. of columns and font size will avoid line wrapping. Too much line-wrapping
  569. and you may end up wasting space with mostly blank lines.
  570.  
  571. MultiPrint can be stopped at any time with a <CTRL>-C, or the break
  572. command. It runs unattended until the midway point, if you have specified
  573. the "Sides" option. In this case, when it finishes printing the even pages,
  574. a prompt will appear. Wait for the printer's buffer to empty, take the pages
  575. in the order they fill up your tray (reversed) and place them back in the
  576. paper bin, face up (for DeskJets, I'm not sure for other printers), and hit
  577. 'Continue'. When the program finishes, the pages will be up the right way,
  578. and in the correct order.
  579.  
  580.  
  581.  ARGUMENTS
  582.  ---------
  583.  
  584. As described at the start of this document, plus
  585.  
  586. Layout Commands:
  587. You can precede file names with flags to control layout. These are
  588. specified as a plus (on) or minus (off) followed by the one of the
  589. following characters preceding file names they are to operate on, and
  590. stay in effect till specified again:
  591.  
  592.    C : new files begin on a new column
  593.    P : new files begin on a new page
  594.    S : new files begin on a new sheet (the default)
  595.    L : new files begin on a new line
  596.    N : restart page numbering after each file
  597.  * J : following files start in Right Justify mode
  598.  * R : following files will start in paragraph reformatting mode
  599.  * T : following files will be preceded by their name in the form
  600.   -------------------------------text.doc---------------------------------- 
  601.  
  602. Codes marked as * are effected by the plus/minus. A minus to J or C
  603. results in no justification, a minus to R turns off paragraph reformating.
  604.  
  605. eg. MultiPrint +J +R DocumentFile -J -R SourceCode.c
  606.  
  607. The +S option, for start document on a new sheet, resets page numbers,
  608. and in the case of both sides printing, finishes the printing of all queued
  609. odd and even pages before continuing.
  610.  
  611. Script files:
  612. You can print a list of files by passing a file starting with a first
  613. line consisting of ";SCRIPT" (no quotes). Subsequent lines are controls
  614. as above, and file names. If a file name starts or ends with spaces, it
  615. should be quoted.
  616.  
  617. You can specify wildcards, but remember - MultiPrint does no analysis of
  618. whether a file is plain text or not. Printing binary code can eat your
  619. paper!
  620.  
  621. If FF is specified, FF characters start a new column.
  622.  
  623. The maximum number of columns is eight. Four is usually more than adequate.
  624. If you have a need for more, let me know
  625.  
  626. Font sizes should be specified in points, which are 1/72nds of an inch.
  627. This will result in the same size font on paper, no matter what resolution
  628. your printer handles/is set at. See note on resolution.
  629.  
  630. However, if you don't have any scalable fonts, you may have to specify the
  631. sizes of fonts directly. In this case use the "PxlFontSize" switch.
  632.  
  633. The "Height" argument is used to increase/decrease inter-line spacing. Use
  634. a point size greater than the font size for a larger spacing, smaller for
  635. less (at the risk of chopping the bottom off the characters).
  636.  
  637. "OddFooter"/"EvenFooter" override the default of using the filename in the
  638. footers.
  639.  
  640.  
  641.  
  642.  LAYOUT WITHIN A DOCUMENT
  643.  ------------------------
  644.  
  645. MultiPrint is designed in such a way that you shouldn't need to modify
  646. a document before printing it.
  647.  
  648. Sometimes, however, you might want to.
  649.  
  650. For example, there may be parts of a document where you don't want
  651. paragraph reformatting to occur. Or you might want to centre just a
  652. heading. Or you might want to use bold or italics for added emphasis.
  653.  
  654. MultiPrint recognises ANSI sequences for bold/italics such as are
  655. recoginised by Amiga printer drivers, and by the console device, and
  656. are sometimes used in documents.
  657.  
  658. MultiPrint also recognises some sequences (commands) of its own.
  659.  
  660. These sequences begin with a '{' followed by a '\' and end with either '}'
  661. or the end of line.
  662.  
  663. They are of the format:
  664.  \Xy a
  665. where 'X' is the first letter of the command, 'y' is the rest of the
  666. command, and doesn't need to be present, {\B +}the space is required{\B -}
  667. if 'a' is present, and 'a' is the argument.
  668.  
  669. {\BOLD +}All these commands should be surrounded by '{' and '}', but if
  670. I did that here, they would not appear if you printed this document with
  671. MultiPrint. {\BOLD -}
  672.  -- Thanks to Rob Poole
  673.  
  674. Please remember, you don't have to use any of these in your document to
  675. get good output. Just precede the document name on the command line with
  676. '+J +R'.
  677.  
  678. They currently include:
  679.  
  680. \Bold [+|-]
  681.  {\B +}Turns bold on/off. Default is on. DOES NOT TOGGLE.{\B -}
  682.  
  683. \Italic [+|-]
  684.  {\I +}As with bold.{\I -}
  685.  
  686. \Underline [+|-]
  687.  {\U +}As with bold.{\U -}
  688.  
  689. \Normal
  690.  {\N }Turns off all styles.
  691.  
  692. \Justify [+|-|=]
  693.  Turns on/off. '=' means reset to this document's initial state.
  694.  
  695. \Centre [+|-]
  696.  Turns line centering on/off. Turning centering off now returns you to
  697. the previous justification mode. You can change directly to a different
  698. justification by using \J.
  699.  
  700. \Reformat [+|-|=]
  701.  As with Justify, but for paragraph reformatting. Turn it on/off/back to
  702. the original setting for this document.
  703.  
  704. \Font [fontname]
  705.  Change font. Will attempt to change to the new font. The font will be
  706. in the current style, so if you want it un-styled, use \N first.
  707.  
  708. If 'fontname' is not specified, returns to the default font as specified
  709. on the command line.
  710.  
  711. \Section <Column|Page|Sheet>
  712.  Cause a break in the document. One of C,P or S must be specified and
  713. causes printing to continue on a new column, page (side of a sheet)
  714. or sheet.
  715.  
  716. \Paragraph
  717.  Force paragraph break. Only really necessary if you want paragraphs which
  718. start at the left margin, with no empty lines between them.
  719.  
  720. NOTE: - for Justify, Reformat, and Center only.
  721. Justify, Reformat and Center only take effect if they occur at the
  722. start of a line.
  723.  
  724. If they are specified elsewhere, they are IGNORED.
  725.  
  726. If any command sequence is ended by the end of a line, rather than a '}',
  727. then that end of line is ignored. So if the command begins at the start
  728. of the line (as formatting commands must), and there is no end of command
  729. brace ('}'), no blank line is output.
  730.  
  731.  
  732.  SPEED
  733.  -----
  734.  
  735. MultiPrint is not the fastest way of printing. It does, after all, print
  736. everything as graphics. This however is the most flexible way, and allows
  737. for the maximum amount on a page (if you can read small, high density
  738. text). Let it run in the background, however, and you only need to do
  739. anything when all the even pages are finished (when doing both-sides
  740. printing).
  741.  
  742. I admit, some printers are so slow at graphics (for example old DeskJets)
  743. that you may feel this method is pointless. Still, it gives you the
  744. option.
  745.  
  746. Still, in some cases you are able to fit so many pages onto the one sheet,
  747. it is actually faster than printing that many sheets.
  748.  
  749. For higher speed use a lower density, but don't use too small a font.
  750.  
  751.  NOTES
  752.  -----
  753.  
  754.  Resolution
  755.  ----------
  756.  
  757. The lower the resolution you use for printing, the less readable a font
  758. at the same point size will be. A point size of 7 at 300dpi uses a system
  759. font size of 29 pixels high, at 150 dpi the same font is only 14 pixels
  760. high.
  761.  
  762.  Font Quality
  763.  ------------
  764.  
  765. This ties in directly with resolution. Fonts are designed for different
  766. purposes, and because of this can be of different qualities.
  767.  
  768. For instance, many fonts on the Amiga are designed as screen fonts.
  769. As such they are limited often to small point sizes, and even the larger
  770. ones may not look good when printed.
  771.  
  772. MultiPrint is designed primarily with high resolution printers, and
  773. scalable fonts in mind. Most scalable fonts are designed to be used at
  774. high resolutions, and have a lot of detail in them. They look very good
  775. printed at 300dpi with point sizes as low as 7pt. This makes them 29 dots
  776. high. If you have tried using these scalable fonts as screen fonts,
  777. however, you will know that below a certain size, they no longer look so
  778. good. Fonts that are to be used with low dot sizes, must be designed for
  779. them.
  780.  
  781. The bottom line is this:
  782. If you intend to print at resolutions lower than 300dpi, either keep
  783. to a reasonable point size (at least 10 to 12) or find a font that
  784. looks okay at whatever size you require.
  785.  
  786. You might have to rely on system (non scalable fonts) using the 'Pxls'
  787. argument.
  788.  
  789.  Scalable Fonts
  790.  --------------
  791.  
  792. MultiPrint tries to be smart with Scalable fonts. If you specify
  793. italics, or bold, or both together, it will attempt to load the correct
  794. font for that style, rather than letting the system generate one. This
  795. results in far superior italics and bold etc at the expense of whatever
  796. time is required to open these fonts. MultiPrint will of course fall
  797. back to system generated versions if necessary. However, do try to
  798. specify the base name for a family of a fonts if possible. For example,
  799. use CSTimes where you also have CSTimesBold, CSTimesItalic, and
  800. CSTimesBoldItalic.
  801.  
  802.  Fonts in general
  803.  ----------------
  804.  
  805. Should always be on your FONTS: assign path, and don't need to be
  806. specified with the '.font' extension. If you specify a scalable font
  807. by its full path, bold/italic versions will not be found. Instead use
  808. 'assign Fonts: "path" add' to add the path to your fonts assign.
  809.  
  810. MultiPrint keeps all fonts used in memory until it finishes, so you may
  811. run out of Chip memory for fonts if you use too many. If MultiPrint
  812. cannot open a font for any reason, it will continue using the previous
  813. font.
  814. NOTE: when I say Font, I also mean style of Font (bold, italic etc).
  815.  
  816.  Paragraph Reformatting
  817.  ----------------------
  818.  
  819. Paragraph Reformatting is very useful for fitting text files into narrow
  820. columns, where they would either frequently wrap, or seldom come close to
  821. filling the line.
  822.  
  823. In conjunction with right justification, or flushing, you get a very nice,
  824. newspaper style output.
  825.  
  826. The problem with paragraphs is determining where they end.
  827.  
  828. In MultiPrint, paragraphs are broken up in two ways:
  829. 1. A line which begins with a space begins a new paragraph.
  830. 2. A blank line marks the end of a paragraph.
  831.  
  832. The only common method this misses out, is paragraphs which start at the
  833. beginning of a line, with no empty line before them.
  834.  
  835. With such paragraphs, you can only tell if there is a break by the fluke
  836. of how much blank space there is at the end of the last line.
  837.  
  838. Documents with paragraph breaks of this kind will need to have their
  839. paragraph breaks manually modified before printing.
  840.  
  841. {\BOLD +}Please be aware that this document has had special attention to work
  842. properly with paragraph reformatting on. Many files produced as
  843. documentation for a program have headings, and formatting in them that
  844. MultiPrint's reformatting will destroy.
  845.  
  846. With such files, where the formatting is important, use Justification
  847. if you like, but leave reformatting off. Or, you can modify the document
  848. to manually control the use of paragraph reformatting throughout.{\BOLD -}
  849.  
  850.  Page/Printer Setup
  851.  ------------------
  852.  
  853. MultiPrint gets most of the information it needs from Preferences,
  854. and so you should make certain your preferences are set correctly,
  855. including printer driver, page size and density, even if you use the
  856. HPPrinter option (see below).
  857.  
  858. However some information is not available in this manner.
  859.  
  860. In particular:
  861.  
  862. Printers seldom print to the whole page. In particular, DeskJet 500
  863. printers cannot print to the top 5 millimetres of a page, the last
  864. two centimetres, the left 3 millimetres, or the right 10 millimetres.
  865.  
  866. In order to get the columns of either side of a sheet of paper to
  867. line up, you need to specify the left and right edges of printing as
  868. the LeftEdge and RightEdge parameters in the environment variable
  869. "MultiPrint.printer". See also the section on HP printers below.
  870.  
  871. The best way to find the correct LeftEdge and RightEdge values is
  872. to print a test page with Gutter=0 as an option, and LeftEdge and
  873. RightEdge unset, or set to 0 in MultiPrint.printer, and with +R and +J
  874. before the file name, and End=1 to limit the printing to one page.
  875. Then measure (in millimeters) the left and right edges of the printing.
  876.  
  877.  Hewlett Packard Printers
  878.  ------------------------
  879.  
  880. Starting with version 1.5, MultiPrint can print directly to Hewlett
  881. Packard printers. This is not so always faster, that depends on the
  882. speed of your computer and printer - on my system, using the printer
  883. device to do the printing keeps up with the printer - but will always
  884. use less processor overhead. It also allows for printing to more of
  885. the page than the printer device can.
  886.  
  887. As with the Left and Right edges as explained above, printers have
  888. top and bottom margins. These vary with printer models also, and are
  889. not provided for by preferences, which takes the lowest-common-multiple
  890. approach.
  891.  
  892. Setting the HPPrinter flag in the MultiPrint.printer environment
  893. variable tells MultiPrint to print directly to an HP printer.
  894.  
  895. Use the HPNoCompression flag if your printer does not support compression,
  896. such as early DeskJet models.
  897.  
  898. HPShingle is a value to use to effect quality of printing on DeskJet
  899. printers, and is only effective on HP500C (note the C) and up.
  900. So far, this is only the HP500C and HP550C. Shingling does not work
  901. with HP500s.
  902.  
  903. Shingling causes the printer to print graphics in multiple passes, to
  904. avoid laying down too much ink at once, causing "blooming".
  905. Using HPShingle=0 (the default) results in no shingling. The printer
  906. prints at full speed. HPShingle=1 results in each pass of printing only
  907. 50% of the data, and so requires two passes when HPShingle=0 would require
  908. only one. HPShingle=2 prints only 25% per pass, and so requires four
  909. passes, and so four times the amount of time, than HPShingle=0.
  910.  
  911. If you are willing to sacrifice speed for quality, HPShingle=1 is the
  912. way to go.
  913.  
  914. HPUniDir forces DeskJet printers to always print from left to right, thus
  915. giving more reliable dot positioning, while sacrificing speed. Theoretically
  916. some DeskJets can determine when to use Uni and when not, but here's a way
  917. for you to decide.
  918.  
  919. PageLength, this setting in the MultiPrint.printer variable tells MultiPrint
  920. just how long a _printable_ page your printer supports, for a given page
  921. size. To set this variable, follow this procedure:
  922.  
  923.  1. Set the correct page size in Preferences for the paper you use.
  924.  2. Set the MultiPrint.printer environment variable, with the LeftEdge
  925.     and RightEdge values as determined above, and with HPPrinter set.
  926.  3. Set PageSize=500 (or higher) in the MultiPrint.printer environment
  927.     variable.
  928.  4. Print a page as described above, ie with +J +R and End=1
  929.     This page will print incomplete, ie will only contain some of the
  930.     lines that it should.
  931.  5. Take the measurement, top of the text to bottom of the output, in
  932.     millimeters.
  933.  6. Use this value for PageSize in the MultiPrint.printer environment
  934.     variable in future.
  935.  
  936. For example, the correct settings for a DeskJet 500C printer with A4 paper
  937.  are :
  938.  
  939.  SetEnv MultiPrint.printer "LeftEdge=3 RightEdge=10 PageLength=280 HPPrinter"
  940.  
  941. and then, for permanent effect,
  942.  
  943.  copy env:MultiPrint#? envarc:
  944.  
  945. Via the printer.device, you get about 5 millimeters, or 1/2 an inch margin
  946. at the top, and 21 millimeters, or just under 7 8ths of an inch at the bottom.
  947. Using HPPrinter and PageSize=280, you get 5 and 9 millimeters, respectively.
  948.  
  949.  
  950.  Environment Variables
  951.  ---------------------
  952.  
  953. MultiPrint uses two environment variables, MultiPrint.opts and
  954. MultiPrint.printer, to control often used options, and optimise your
  955. printer usage. Neither of these variables can be termed necessary,
  956. but they improve either usage, quality of output, or speed. If you don't
  957. use them, you're stuck with my defaults, or with specifying all arguments
  958. always. If you don't set them, the columns on either side won't allign,
  959. and you won't get optimal speed or page usage on HP printers.
  960.  
  961. MultiPrint.opts:
  962.  
  963. This environment variable has exactly the same format as the command line,
  964. so make sure you try anything you intend to put in it on the command line
  965. first. Also, avoid putting anything that will be interpretted as a file
  966. name in the environment variable.
  967.  
  968. Switches which are specified in the environment variable, such as
  969. 'Line' or 'Sides' cannot be turned off in the command line. Do not use
  970. them in your environment variable unless you intend to always use
  971. them.
  972.  
  973. An example environment variable would be
  974.  
  975. setenv MultiPrint.opts "+R +J font=CSTimes line LE=3 RE=10"
  976.  
  977. This sets MultiPrint to default to Reformating, Justification, using
  978. CSTimes as the text body font, drawing a line between columns, and
  979. expecting the offsets Desjet 500s print to.
  980.  
  981. You should uses "Setenv EnvArc:MultiPrint.opts" to set a permanent
  982. default.
  983.  
  984. MultiPrint.Printer:
  985.  
  986. This variable sets page offsets to allow the allignment of columns on
  987. either side of a sheet, as well as options for optimal use of an
  988. Hewlett Packard printer. It works similar to command lines, and has
  989. the format :
  990.  
  991.  LeftEdge/K/N,RightEdge/K/N,PageLength/K/N,HPPrinter/S,HPShingle/K/N,
  992.  HPNoCompression/S,HPUniDir/S
  993.  
  994. and functions as follows:
  995.  
  996.  LeftEdge/K/N,RightEdge/K/N
  997.    :  measurements made as explained in Page/Printer Setup
  998.  
  999.  PageLength/K/N
  1000.    :  measurement made as explained in Hewlett Packard Printers
  1001.       Has no effect on non HP printers, use PercentPage instead.
  1002.  
  1003.  HPPrinter/S,HPNoCompression/S,HPUniDir/S
  1004.    :  switches as explained in Hewlett Packard Printers
  1005.  
  1006.  HPShingle/K/N
  1007.    :  as explained in Hewlett Packard Printers
  1008.  
  1009.  
  1010.  Last Page
  1011.  ---------
  1012.  
  1013. When printing to both sides of a sheet, the last even page is printed,
  1014. even if it is empty. This is so the sheet is ready for the odd page.
  1015.  
  1016. Printing empty lines can be slow, depending on your printer and printer
  1017. driver. The printer may appear to be doing nothing for a while after
  1018. printing a small amount on the last even page, and the last odd page,
  1019. which is printed immediately after. This should not happen if you use
  1020. the HPPrinter option.
  1021.  
  1022.  Both Sides Printing
  1023.  -------------------
  1024.  
  1025. After all the even pages are printed, you will be prompted to re-insert
  1026. the pages, once the printer has finished printing (emptied its internal
  1027. buffers).
  1028.  
  1029. On a deskjet printer, the pages should be inserted as they came out of
  1030. the printer, face up, top of page closest to the print mechanism.
  1031.  
  1032. Please be aware that 'all the even pages' means all the even pages of
  1033. all the files being printed, not just one at a time.
  1034. This approach requires less intervention by the user - just once in the
  1035. middle of all the files to replace the pages instead of once per file -
  1036. but can result in large jobs eating memory.
  1037.  
  1038. If you plan to print many large files in one go, it might pay to have
  1039. them spooled to disk, otherwise all the odd pages will build up in memory.
  1040.  
  1041.  The End
  1042.  -------
  1043.