home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / textutil / dps11.zip / DPS.DOC next >
Text File  |  1993-10-17  |  89KB  |  1,928 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.                                      D P S
  8.  
  9.                            Document Processing System
  10.  
  11.  
  12.  
  13.                               A Shareware Program
  14.  
  15.  
  16.  
  17.  
  18.                                Phillip H. Sherrod
  19.  
  20.                                       and
  21.  
  22.                               Daniel J. Cappannari
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.            DPS reads a document source  file  which  includes  style,
  30.            spacing,   and   formatting   commands,  and  generates  a
  31.            formatted ASCII output file suitable for printing  on  any
  32.            type   of  computer  printer.   DPS  is  well  suited  for
  33.            preparing documentation for programs  or  other  technical
  34.            projects.   DPS  provides  table  of  contents  and  index
  35.            generation  and  cross  references  by  section  and  page
  36.            numbers.   DPS  also  provides automatic section numbering
  37.            and a variety of list types.
  38.  
  39.  
  40.  
  41.  
  42.  
  43.                                Table of Contents
  44.  
  45.  
  46.  
  47.       1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . .  1
  48.         1.1 Installing DPS  . . . . . . . . . . . . . . . . . . . . . .  1
  49.         1.2 Using DPS . . . . . . . . . . . . . . . . . . . . . . . . .  2
  50.  
  51.       2. DPS Operation  . . . . . . . . . . . . . . . . . . . . . . . .  3
  52.         2.1 Text, Figures, and Verbatim . . . . . . . . . . . . . . . .  4
  53.         2.2 Page Dimensions . . . . . . . . . . . . . . . . . . . . . .  6
  54.         2.3 Chapters and Sections . . . . . . . . . . . . . . . . . . .  6
  55.         2.4 Styles  . . . . . . . . . . . . . . . . . . . . . . . . . .  8
  56.         2.5 Centering Text  . . . . . . . . . . . . . . . . . . . . . . 11
  57.         2.6 Indentation . . . . . . . . . . . . . . . . . . . . . . . . 12
  58.         2.7 Double Sided Printing . . . . . . . . . . . . . . . . . . . 13
  59.         2.8 Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
  60.         2.9 Blank Lines and Page Ejects . . . . . . . . . . . . . . . . 15
  61.         2.10 Page and Section References  . . . . . . . . . . . . . . . 17
  62.         2.11 Table of Contents  . . . . . . . . . . . . . . . . . . . . 17
  63.         2.12 Index Entries  . . . . . . . . . . . . . . . . . . . . . . 18
  64.         2.13 Including External Files . . . . . . . . . . . . . . . . . 18
  65.         2.14 Foreign Language Support . . . . . . . . . . . . . . . . . 19
  66.  
  67.       3. Command Reference  . . . . . . . . . . . . . . . . . . . . . . 20
  68.         3.1 Between Line Commands . . . . . . . . . . . . . . . . . . . 20
  69.         3.2 Within Line Commands  . . . . . . . . . . . . . . . . . . . 23
  70.         3.3 Style Parameter Commands  . . . . . . . . . . . . . . . . . 23
  71.  
  72.       4. Use And Distribution of DPS  . . . . . . . . . . . . . . . . . 28
  73.         4.1 Disclaimer  . . . . . . . . . . . . . . . . . . . . . . . . 29
  74.  
  75.       5. Other Software . . . . . . . . . . . . . . . . . . . . . . . . 30
  76.         5.1 Mathplot -- Mathematical Function Plotting Program  . . . . 30
  77.         5.2 Nonlin -- Linear & Nonlinear Statistical Regression . . . . 30
  78.         5.3 TSX-32 -- Multi-User Operating System . . . . . . . . . . . 31
  79.  
  80.       6. Software Order Form  . . . . . . . . . . . . . . . . . . . . . 33
  81.  
  82.       Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.                                        i
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.                                    Chapter 1
  104.  
  105.                                   Introduction
  106.  
  107.  
  108.  
  109.  
  110.       DPS (Document Processing System) is a  program  which  formats  text
  111.       files  for  printing  on  any  type  of printer.  DPS can be used to
  112.       format  letters,  articles,  books,  and   documentation.    It   is
  113.       particularly  well  suited  for preparing documentation for programs
  114.       and  other  technical  projects  because  it  has  cross   reference
  115.       facilities  that  automatically fill in section and page numbers for
  116.       referenced items, and it has built in facilities  for  producing  an
  117.       index.   This  document  was  prepared using DPS; the source file is
  118.       provided for your examination in a file named DPS.DPS.
  119.  
  120.       By design, DPS does not utilize any printer control functions  other
  121.       than  carriage-return,  line-feed,  and  form-feed.  This allows the
  122.       output of DPS to be printed on a wide variety  of  printers  ranging
  123.       from inexpensive dot matrix devices through fancy laser printers.
  124.  
  125.       DPS  is  similar to word processing programs in that it helps you to
  126.       produce a  formatted  document.   However,  DPS  is  different  from
  127.       programs  like  WordPerfect  and  Microsoft Word in the way that you
  128.       specify formatting  commands.   With  the  typical  word  processing
  129.       program  you  use  function  keys  to specify formatting actions and
  130.       with most of these  programs  you  see  the  result  on  the  screen
  131.       immediately.   With  DPS you use an editor such as DOS EDIT or EDLIN
  132.       to create a "source" document file that contains both  the  text  of
  133.       the   document   and   embedded  DPS  commands  that  describe  what
  134.       formatting is to be done for each part of the  document.   You  then
  135.       use  DPS  to process this source file and produce a formatted output
  136.       file.
  137.  
  138.  
  139.       1.1 Installing DPS
  140.  
  141.       The installation of DPS is very simple.  Create a directory for  the
  142.       DPS  files  and use PKUNZIP to unpack the compressed file or copy in
  143.       all of the files from your distribution disk.  You  should  add  the
  144.       DPS  directory to your PATH command so that DOS can find the DPS.EXE
  145.       file if some other directory is your current directory.
  146.  
  147.       The DPS distribution includes the following files:
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.                                        1
  156.  
  157.       Chapter 1. Introduction                                            2
  158.  
  159.  
  160.            DPS.EXE      -- Executable program.
  161.            DPS.DOC      -- Documentation file.
  162.            DPS.DPS      -- Source file for DPS.DOC to use as an example.
  163.            REGISTER.DOC -- Software registration form.
  164.            VENDOR.DOC   -- Information for shareware vendors.
  165.            README.DOC   -- Introduction file.
  166.            FILE_ID.DIZ  -- Information for bulletin boards.
  167.  
  168.  
  169.       1.2 Using DPS
  170.  
  171.       The first step in using DPS is to create a  "source"  document  file
  172.       containing  your  text  and  DPS  commands.  It is best to give this
  173.       file the extension ".DPS".
  174.  
  175.       The source file should be in "flat ASCII format",  meaning  that  it
  176.       simply  consists of ASCII characters with carriage-return, line-feed
  177.       sequences  separating  the  records.   This  is  the  type  of  file
  178.       produced  by  various  text  editors  such  as  the  EDIT  and EDLIN
  179.       programs available with DOS.  You may use a word processor  such  as
  180.       WordPerfect  to  produce  the  file, but you should be sure that the
  181.       output is in "DOS text" format with no extra data inserted  for  the
  182.       benefit of the word processor.
  183.  
  184.       Once  you  have  created a source file you can use DPS to format it.
  185.       The form of the DPS command is:
  186.  
  187.            DPS source_file [output_file]
  188.  
  189.       Where "source_file" is the name of your  source  document  file  and
  190.       "output_file"  is the name of the file to which the formatted output
  191.       is to be written.  The default extension  for  the  source  file  is
  192.       ".DPS".   The  default  extension for the output file is ".DOC".  If
  193.       no output file is specified DPS creates  an  output  file  with  the
  194.       same name as the source file but with the extension ".DOC".
  195.  
  196.       For  example,  the  following command would read a source file named
  197.       MATHPLOT.DPS  and  produce   a   formatted   document   file   named
  198.       MATHPLOT.DOC:
  199.  
  200.            DPS MATHPLOT
  201.  
  202.       The  following command would read a source file named NONLIN.DPS and
  203.       produce a formatted output file named REGRESS.LST:
  204.  
  205.            DPS NONLIN REGRESS.LST
  206.  
  207.       You can also use the .INCLUDE command within a DPS  source  file  to
  208.       cause  another  file  to be inserted as the file is processed.  This
  209.       is useful for large documents that can  be  maintained  as  separate
  210.       sections but combined into a single formatted listing.
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.                                    Chapter 2
  218.  
  219.                                  DPS Operation
  220.  
  221.  
  222.  
  223.  
  224.       In  addition  to  your text, the input file may contain two types of
  225.       DPS commands: "between line" and "within line".   The  between  line
  226.       type  of  commands are the most common.  These commands begin with a
  227.       period as the first character of the line and are terminated by  the
  228.       end of the line.  For example,
  229.  
  230.            .CHAPTER Introduction
  231.  
  232.       marks the beginning of a new chapter named "Introduction".
  233.  
  234.       If  you  have text lines that begin with a period, or you would just
  235.       prefer some introducer character other than period, you can use  the
  236.       .BLCMD  command  to  specify another introducer character.  The form
  237.       of this command is:
  238.  
  239.             .BLCMD character
  240.  
  241.       where 'character' is  the  character  to  be  used  as  the  command
  242.       introducer.   For  example, the following command causes comma to be
  243.       set as the introducer character:
  244.  
  245.             .BLCMD ,
  246.  
  247.       After this command you would type comma as the  first  character  of
  248.       each between line command.
  249.  
  250.       Within  line  commands  can  occur  in the middle of a line of text.
  251.       These commands are denoted with an  introducer  character  which  is
  252.       normally  backslash  (\).   An  example  of a within line command is
  253.       "\PAGEREF{name}" which might be used in  a  line  of  text  such  as
  254.       follows:
  255.  
  256.            For a description of the process, see page \pageref{mrdesc}.
  257.  
  258.       This  command  tells  DPS  to  insert  the page number for a section
  259.       labeled "mrdesc".
  260.  
  261.       If you need to use  the  '\'  character  within  the  text  of  your
  262.       document  specify  two  '\'  characters  in a row.  For example, you
  263.       would type the  string  "C:\\DPS\\DPS.EXE"  to  produce  the  string
  264.       "C:\DPS\DPS.EXE".
  265.  
  266.  
  267.  
  268.  
  269.                                        3
  270.  
  271.       Chapter 2. DPS Operation                                           4
  272.  
  273.  
  274.       To  change  the  within line introducter character from backslash to
  275.       something else, use the .WLCMD command whose syntax is
  276.  
  277.            .WLCMD character
  278.  
  279.       DPS commands are case insensitive so you can  use  either  upper  or
  280.       lower case letters.
  281.  
  282.       Chapter  3,  starting  on page 20, provides a complete reference for
  283.       the DPS commands.  The  remainder  of  this  chapter  discusses  the
  284.       commands from an operational point of view.
  285.  
  286.  
  287.       2.1 Text, Figures, and Verbatim
  288.  
  289.       The  bulk  of your source document will consist of the text that DPS
  290.       is to format.  During its normal operation,  DPS  reads  this  text,
  291.       combines  words  into  lines  and paragraphs, and outputs pages with
  292.       headers and numbers if  requested.   While  it  is  performing  this
  293.       formatting DPS is said to be in "text mode".
  294.  
  295.       Two  additional  modes are used to temporarily disable formatting of
  296.       input text.  These are "figure mode" and "verbatim mode".
  297.  
  298.       A figure is a series of records in the input document  which  should
  299.       not  be  formatted,  and  which  should  be kept together (not split
  300.       across pages).  While in figure mode DPS does  not  rearrange  words
  301.       on  lines.   It maintains the same spacing as in the source file but
  302.       may indent all of the lines a fixed amount which can  be  controlled
  303.       by  the  .FINDENT  command  (by  default, figures are not indented).
  304.       You can also enclose a figure in .CENTER and .ENDCENTER commands  to
  305.       cause the entire figure to be centered on the page.
  306.  
  307.       You  cannot  use  within  line  commands  within figures because all
  308.       characters are taken "literally".  This means it  is  not  necessary
  309.       to  specify  "\\"  to  produce  a  single  "\" within a figure.  Use
  310.       figure mode for figures, diagrams, and so forth.   Place  a  .FIGURE
  311.       command  at  the  front  of a figure and .ENDFIGURE at the end.  The
  312.       following example demonstrates how to use figure mode to  produce  a
  313.       centered figure:
  314.  
  315.       Chapter 2. DPS Operation                                           5
  316.  
  317.  
  318.  
  319.  
  320.                  .center
  321.                  .figure
  322.                  +-------+   +----------+   +--------+
  323.                  | TRAIN |-->| Conveyor |-->| Sorter |
  324.                  +-------+   +----------+   +--------+
  325.                                               |    |
  326.                                               V    V
  327.                                      +---------+  +---------+
  328.                                      | Cracker |  | Grinder |
  329.                                      +---------+  +---------+
  330.                                          |              |
  331.                                          V              V
  332.                                      +---------+  +---------+
  333.                                      | Packer  |  | Packer  |
  334.                                      +---------+  +---------+
  335.                                          |              |
  336.                                          V              V
  337.                                     +----------+  +-----------+
  338.                                     |Whole nuts|  |Ground nuts|
  339.                                     +----------+  +-----------+
  340.                  .endfigure
  341.                  .endcenter
  342.  
  343.       Verbatim  mode  is  very  similar to figure mode.  Like figure mode,
  344.       verbatim mode preserves the source format of each line and does  not
  345.       move  words  from  one  line to another or adjust spacing.  However,
  346.       verbatim mode does not guarantee that all of the lines in the  group
  347.       will  fit  on  a  single  page.   Use the .VERBATIM command to begin
  348.       verbatim mode and the .ENDVERBATIM command to return to normal  text
  349.       mode.  The following example demonstrates the use of verbatim text:
  350.  
  351.            .verbatim
  352.            /*-----------------------------------------------------------
  353.             * Function
  354.             *    Convert a year/month/day date into the corrsponding
  355.             *    day of the week.
  356.             */
  357.            int dtu_weekday(int year,int month,int date)
  358.            {
  359.            /*
  360.             * Declarations
  361.             */
  362.                  int j10,j14,value,w0to7;
  363.            /*
  364.             * Code
  365.             */
  366.                  j10 = month + 10;
  367.                  j14 = year + (month-14)/12;
  368.                  value = (13*(j10-j10/13*12)-1)/5+date+77
  369.                             +5*(j14-j14/100*100)/4
  370.                             +j14/400-j14/100*2;
  371.                  w0to7 = value%7;
  372.                  return w0to7+1;
  373.  
  374.       Chapter 2. DPS Operation                                           6
  375.  
  376.  
  377.            }
  378.            .endverbatim
  379.  
  380.  
  381.       2.2 Page Dimensions
  382.  
  383.       To  properly  format output text, DPS must know certain things about
  384.       the capabilities of your printer.  These are the maximum  number  of
  385.       lines  which  can  be printed on the page, the maximum width of each
  386.       line, and the margins to leave on the left and right  edges  of  the
  387.       paper.
  388.  
  389.       The  default  page  length is 58 lines, the default page width is 80
  390.       characters,  and  the  default  left  and  right   margins   are   6
  391.       characters.   You  can  use  the  following commands to change these
  392.       values:
  393.  
  394.            .LENGTH value    -- Specify number of lines per page.
  395.            .WIDTH value     -- Specify number of characters per line.
  396.            .LMARGIN value   -- Specify left margin spaces.
  397.            .RMARGIN value   -- Specify right margin spaces.
  398.  
  399.       If you want to adjust these parameters it is  best  to  place  these
  400.       commands at the front of your source document file before any text.
  401.  
  402.  
  403.       2.3 Chapters and Sections
  404.  
  405.       A  simple document such as a letter does not need to be divided into
  406.       sections.  An article may be divided into a number of sections  such
  407.       as  the introduction, main body, and conclusions.  Longer documents,
  408.       such as this one, are divided into chapters and sections.
  409.  
  410.       DPS allows you to divide a document in a heirarchical  manner,  with
  411.       chapters,    main    sections,    sub-sections,    sub-sub-sections,
  412.       sub-sub-sub-sections, and so forth.  This  allows  you  to  organize
  413.       your  material  using  as  much  detail  as it requires.  Up to nine
  414.       levels of sections can  be  used.   DPS  automatically  numbers  the
  415.       chapters  and  sections  and  uses  this information in the table of
  416.       contents.
  417.  
  418.       Chapters, when used, are introduced with the  .CHAPTER  command,  as
  419.       with:
  420.  
  421.            .CHAPTER Technical Specification
  422.  
  423.       See  Section  2.14 for information about specifying a different word
  424.       than "Chapter" for non-English documents.
  425.  
  426.       Sections are introduced with .HLn commands, where  "n"  denotes  the
  427.       depth  of  the  section  level.   .HL1  introduces the highest level
  428.       section (within a chapter), HL2  introduces  a  sub-section,  HL3  a
  429.       sub-sub-section, etc.  Take the following example:
  430.  
  431.       Chapter 2. DPS Operation                                           7
  432.  
  433.  
  434.            .CHAPTER Technical Specification
  435.            .HL1 Scope of this document
  436.            This document describes the use of the butterfly clamp.
  437.            .HL1 Intended audience
  438.            .HL2 Doctors
  439.            Doctors need to know whether it works.
  440.            .HL2 Nurses
  441.            Nurses need to know how to use it.
  442.  
  443.       The output would appear as follows:
  444.  
  445.  
  446.                                    Chapter 1
  447.  
  448.                             Technical Specification
  449.  
  450.  
  451.       1.1 Scope of this document
  452.  
  453.       This document describes the use of the butterfly clamp.
  454.  
  455.       1.2 Intended audience
  456.  
  457.       1.2.1 Doctors
  458.  
  459.       Doctors need to know whether it works.
  460.  
  461.       1.2.2 Nurses
  462.  
  463.       Nurses need to know how to use it.
  464.  
  465.       If  you  are  producing  a  document that does not have chapters but
  466.       which does have sections, you can use .HL0 to  produce  the  highest
  467.       level  section numbers (which would ordinarily correspond to chapter
  468.       numbers), and .HL1, .HL2, etc.  for subsections.
  469.  
  470.       Each .CHAPTER or .HL directive in the file produces an entry in  the
  471.       table  of  contents.   DPS always begins chapters on a new page.  If
  472.       the .DSIDE (double side printing) command is in effect, blank  pages
  473.       are  inserted  if  necessary to force chapters to begin on odd pages
  474.       (which are printed on the right side).
  475.  
  476.       The .NLAHL command is used to set the number of blank  lines  to  be
  477.       left  above  a  section header.  The .SLMLOP command sets the number
  478.       of lines that must remain on a page for DPS to begin a  new  section
  479.       on the current page.
  480.  
  481.       Chapter 2. DPS Operation                                           8
  482.  
  483.  
  484.       2.4 Styles
  485.  
  486.       People  have  individual tastes and needs for the style of formatted
  487.       text.  Furthermore, a single document may need some  text  formatted
  488.       in one style and other text in a different style.
  489.  
  490.       To  deal  with  this  situation DPS comes preloaded with a number of
  491.       different styles and allows  you  to  create  additional  styles  as
  492.       needed.   This  section  describes  styles,  documents the preloaded
  493.       styles, and shows you how to create and use custom styles.
  494.  
  495.       DPS comes preloaded with styles named STANDARD, PLAIN,  REPORT,  and
  496.       LETTER.   The  STANDARD style is the default that is used unless you
  497.       select a different style using the .STYLE command.
  498.  
  499.       A new style can be selected or created at any point in the  document
  500.       by using the .STYLE command, as shown in the following examples:
  501.  
  502.            .STYLE STANDARD
  503.            This text will be formatted according to the standard style.
  504.            .STYLE CUSTOM
  505.            This text is formatted according to the style CUSTOM.
  506.  
  507.       If  the style you list in a .STYLE command does not exist it will be
  508.       created for you.  New styles start  out  being  the  same  as  style
  509.       STANDARD.
  510.  
  511.       The  current  style  can  be  customized  at  any point by the style
  512.       commands listed in Section 3.3 beginning on page  23.   Since  style
  513.       commands  always  modify  the  current  style,  you  can use them to
  514.       modify built in styles or to  create  a  new  style.   For  example,
  515.       simply stating
  516.  
  517.            .NOJUSTIFY
  518.            .LMEXTRA 5
  519.  
  520.       at   the   top   of  your  document  modifies  the  standard  style,
  521.       deactivating text justification and specifying that all lines  of  a
  522.       paragraph   except   the   first   should   be  indented  5  spaces.
  523.       Alternatively you could specify
  524.  
  525.            .STYLE DESCRIPTION
  526.            .NOJUSTIFY
  527.            .LMEXTRA 5
  528.  
  529.       to create a new style called DESCRIPTION with  these  modifications.
  530.       The  new  style  would remain in effect until DPS encounters another
  531.       style command such as
  532.  
  533.            .STYLE STANDARD
  534.  
  535.       to return to the standard style.
  536.  
  537.       Chapter 2. DPS Operation                                           9
  538.  
  539.  
  540.       You can switch between styles as often as you like.  If  you  modify
  541.       attributes  for  a style the modifications remain in effect when you
  542.       switch back to the style.
  543.  
  544.            The following table documents parameters for the four
  545.            built-in styles.
  546.  
  547.             Parameter     STANDARD      REPORT      LETTER        PLAIN
  548.            -----------  -----------  -----------  -----------  -----------
  549.            BLBP               1           1            1            1
  550.            MLOP               2           2            2            2
  551.            LMFIRST            0           0            0            0
  552.            LMEXTRA            0           0            0            0
  553.            NLAH               0           0            0            0
  554.            NLBH               2           2            2            2
  555.            NLAF               2           2            2            2
  556.            H1TEXT             0           0            0            0
  557.            HXTEXT             2           0            0            0
  558.            H1PN               0           0            0            0
  559.            HXPN               1           0            0            0
  560.            F1TEXT             0           0            0            0
  561.            FXTEXT             0           0            0            0
  562.            F1PN               2           2            0            0
  563.            FXPN               0           2            0            0
  564.            FINDENT            0           0            0            0
  565.            CHAPHEAD           1           0            0            0
  566.            JUSTIFY            1           1            0            1
  567.            NLAHL        5,2,1,1,1,   5,2,1,1,1,   5,2,1,1,1,   5,2,1,1,1,
  568.                           1,1,1,1      1,1,1,1      1,1,1,1     1,1,1,1
  569.            INDENT       0,0,0,0,0,   0,0,0,0,0,   0,0,0,0,0,   0,0,0,0,0,
  570.                           0,0,0,0      0,0,0,0      0,0,0,0     0,0,0,0
  571.            LIST_IN1     4,8,12,16,   4,8,12,16,   4,8,12,16,   4,8,12,16,
  572.                         20,24,28,32  20,24,28,32  20,24,28,32  20,24,28,32
  573.            LIST_INX     4,8,12,16,   4,8,12,16,   4,8,12,16,   4,8,12,16,
  574.                         20,24,28,32  20,24,28,32  20,24,28,32  20,24,28,32
  575.            LIST_BULCHR     period      period       period       period
  576.            LIST_BULPOS  2,6,10,14,   2,6,10,14,   2,6,10,14,   2,6,10,14,
  577.                         18,22,26,30  18,22,26,30  18,22,26,30  18,22,26,30
  578.            SLMLOP        5,5,5,5,5    5,5,5,5,5    5,5,5,5,5    5,5,5,5,5
  579.                           5,5,5,5      5,5,5,5      5,5,5,5      5,5,5,5
  580.  
  581.       Some style parameters are defined as lists of values  instead  of  a
  582.       single  value.   Some,  such as .NLAHL (Number of Lines Above Header
  583.       at each Level) define a separate value for every chapter or  section
  584.       level.   Others,  such  as .LIST_IN1 (LIST INdentation for the first
  585.       line of a list at each list nesting level) define a  separate  value
  586.       for each depth to which lists can be nested.
  587.  
  588.       To  modify  these  parameters you must first specify the name of the
  589.       parameter,  then  the  section  or  nesting  level  which  you   are
  590.       modifying, then finally the value you wish to specify.
  591.  
  592.       Take  .NLAHL  as an example.  This parameter specifies the number of
  593.       blank lines to leave above the header line for  a  specific  section
  594.  
  595.       Chapter 2. DPS Operation                                          10
  596.  
  597.  
  598.       level.   The  level 1 value specifies what is used for .HL1, level 2
  599.       for .HL2, and so forth.  Hence the style modification command
  600.  
  601.            .NLAHL 1 4
  602.  
  603.       means that you want 4 lines above the heading generated  by  a  .HL1
  604.       command.
  605.  
  606.       For  the  STANDARD  style  DPS  places  a  page number at the bottom
  607.       center of the first page of a chapter  and  places  a  page  heading
  608.       with  a  page  number  at  the  margin  of  subsequent  pages of the
  609.       chapter.  The .H1TEXT and .HXTEXT  style  parameters  determine  the
  610.       type  of  header  printed.  The .H1PN and .HXPN parameters determine
  611.       the type of page number for the heading.  The  .F1TEXT  and  .FXTEXT
  612.       parameters  control  the  footer  style  and  the  .F1PN  and  .FXPN
  613.       parameters control the style of page  number  in  the  footer.   The
  614.       .NLAH,  .NLAF  and  .NLBH  parameters  control the spacing above and
  615.       below the header and footer.
  616.  
  617.       The following numeric codes are used to  define  header  and  footer
  618.       styles:  Headers  are  printed  at the top of each page; footers are
  619.       printed at the bottom.
  620.  
  621.       0 -- No text at all in the header or footer.
  622.  
  623.       1 -- Standard style,  showing  current  chapter  and  section.   The
  624.           contents  of the header or footer will vary depending on whether
  625.           single or double page mode is being used.  In single  page  mode
  626.           (the   default),   the  current  chapter  name  is  always  left
  627.           justified in the header or footer.  In  double  page  mode,  the
  628.           chapter  name  goes  on  the right end of the even pages and the
  629.           section name goes on the left end  of  the  odd  pages.   Double
  630.           sided mode is described in Section 2.7.
  631.  
  632.       2  --  Restrict  text  to  name of the current chapter, omitting the
  633.           section name.  In single sided  mode  this  places  the  chapter
  634.           name  on the left end.  In double sided mode the chapter name is
  635.           on the right end of even pages and the left end of odd pages.
  636.  
  637.       The following numeric  codes  are  used  to  define  page  numbering
  638.       styles:
  639.  
  640.       0 -- No page number at all.
  641.  
  642.       1  --  Decimal  value  at end of line.  For single side mode this is
  643.           always the left  end.   For  double  sided  mode  it  alternates
  644.           sides.
  645.  
  646.       2 -- Decimal value in the center of the line.
  647.  
  648.       3  --  Roman  numeric  at end of line.  For single side mode this is
  649.           always the left  end.   For  double  sided  mode  it  alternates
  650.           sides.
  651.  
  652.       Chapter 2. DPS Operation                                          11
  653.  
  654.  
  655.       4 -- Roman numeral in the center of the line.
  656.  
  657.  
  658.       2.5 Centering Text
  659.  
  660.       Often  you will want to center a single line of text in the midst of
  661.       normally formatted text.  The .SCENTER command  is  used  for  this.
  662.       DPS  will  center  the  line which follows it, then return to normal
  663.       processing of input.  For example, the input text file:
  664.  
  665.            He wandered on through the forest, checking his compass
  666.            regularly to be sure that he was still heading toward
  667.            the general's house.  About an hour after he stopped to
  668.            eat his sack lunch, he encountered a tree into which
  669.            a message had been carved:
  670.            .SCENTER
  671.            "The great man retains the childs mind"
  672.            He wondered, as he neared the house of the fierce military
  673.            leader, if the general had ever been exposed to Taoist
  674.            principles.
  675.  
  676.       produces the output text:
  677.  
  678.            He wandered on through the forest,  checking  his  compass
  679.            regularly  to be sure that he was still heading toward the
  680.            general's house.  About an hour after he  stopped  to  eat
  681.            his  sack  lunch,  he  encountered  a  tree  into  which a
  682.            message had been carved:
  683.  
  684.                     "The great man retains the childs mind"
  685.  
  686.            He  wondered,  as  he  neared  the  house  of  the  fierce
  687.            military  leader,  if the general had ever been exposed to
  688.            Taoist principles.
  689.  
  690.       Sections of centered text can be begun with a  .CENTER  command  and
  691.       finished  with  a  .ENDCENTER  command.  Note that DPS does not fill
  692.       paragraphs while in center mode.  Each line of the  source  file  is
  693.       taken  as  a  single line figure which is centered.  Hence the input
  694.       file:
  695.  
  696.            .CENTER
  697.            He wandered on through the forest, checking his compass
  698.            regularly to be sure that he was still heading toward
  699.            the general's house.  About an hour after he stopped to
  700.            eat his sack lunch, he encountered a tree into which
  701.            a message had been carved:
  702.            "The great man retains the childs mind"
  703.            He wondered, as he neared the house of the fierce military
  704.            leader, if the general had ever been exposed to
  705.            Taoist principles.
  706.            .ENDCENTER
  707.  
  708.       produces the following output file:
  709.  
  710.       Chapter 2. DPS Operation                                          12
  711.  
  712.  
  713.             He wandered on through the forest, checking his compass
  714.              regularly to be sure that he was still heading toward
  715.             the general's house.  About an hour after he stopped to
  716.               eat his sack lunch, he encountered a tree into which
  717.                            a message had been carved:
  718.                     "The great man retains the childs mind"
  719.            He wondered, as he neared the house of the fierce military
  720.                 leader, if the general had ever been exposed to
  721.                                Taoist principles.
  722.  
  723.  
  724.       2.6 Indentation
  725.  
  726.       The margins imposed by the printer's ability to print on a piece  of
  727.       paper  has  already  been discussed.  This is covered by the .WIDTH,
  728.       .LMARGIN, and .RMARGIN  commands.   All  text,  including  formatted
  729.       text  and  figures,  is placed within these boundaries.  The default
  730.       width is 80 characters.  The default margins are 6 characters  each.
  731.       Thus the default area in which text can be printed is 68 columns.
  732.  
  733.       The  length  of the paper can be specified using the .LENGTH command
  734.       whose default value is 58 lines.
  735.  
  736.       Formatted text has left margins imposed by the style.  The  .LMFIRST
  737.       and  .LMEXTRA  commands  specify  the  left margin for the first and
  738.       each subsequent line of a paragraph.  Lists, which are described  in
  739.       chapter  2.8,  are  given  separate  margins  by  the style commands
  740.       .LIST_IN1 and .LIST_INX.
  741.  
  742.       The .HANG command can be used  to  create  paragraphs  with  hanging
  743.       indentation.   When  a  non-zero  value is specified for the hanging
  744.       indentation DPS indents all lines of subsequents paragraphs by  this
  745.       amount  but leaves the first line of each paragraph unindented so it
  746.       is flush with the left margin.  For example, the command
  747.  
  748.            .HANG 5
  749.  
  750.       causes all lines other  than  the  first  line  of  each  subsequent
  751.       paragraph  to  be  indented  5 spaces.  Specify "HANG 0" to turn off
  752.       hanging indentation.  See also the .DESCRIPTION command on  page  14
  753.       for   a   similar   facility   for  formatting  lists  with  hanging
  754.       indentation.
  755.  
  756.       A command which is  similar  to  .HANG  is  .SQUEEZE.   This  causes
  757.       formatted  text to be "squeezed" by the specified number of columns.
  758.       In other words, the command
  759.  
  760.            .SQUEEZE 5
  761.  
  762.       adds 5 to the left margin and subtracts 5  from  the  right  margin.
  763.       This  is  useful  for  quotations  and other material that should be
  764.       indented on both sides.  Put the command ".SQUEEZE 0" at the end  of
  765.       the material to terminate the squeeze condition.
  766.  
  767.       Chapter 2. DPS Operation                                          13
  768.  
  769.  
  770.       2.7 Double Sided Printing
  771.  
  772.       DPS  has  the  ability  to  print double sided text.  This format is
  773.       used when producing output which is to be bound.  Double sided  mode
  774.       has the following effects on the formatted document:
  775.  
  776.         . The  left  and  right  margin values (.LMARGIN and .RMARGIN) are
  777.           reversed for even pages which normally appear on the  left  side
  778.           of  a  bound document.  This means that the left margin value is
  779.           always used on the side of the  page  nearest  to  the  binding.
  780.           For  a bound document you may want to use a larger value for the
  781.           left margin to allow room for the space used by the binding.
  782.  
  783.         . Blank pages are inserted  as  necessary  to  force  chapters  to
  784.           start on odd numbered pages.
  785.  
  786.         . The  standard  heading  is  changed so that the the chapter name
  787.           goes on the right end of the even pages  and  the  section  name
  788.           goes on the left end of the odd pages.
  789.  
  790.       Double  sided  printing  mode  is  specified  with  either  of these
  791.       commands:
  792.  
  793.            .DSIDED
  794.            .DOUBLESIDED
  795.  
  796.       If you wish to use double sided mode you should  put  one  of  these
  797.       commands at the front of your source document.
  798.  
  799.  
  800.       2.8 Lists
  801.  
  802.       Lists  are  a  special paragraph style used when describing a set of
  803.       things.  Lists can contain sublists, and so forth, nested  up  to  9
  804.       levels  deep.   The  current style determines the indentation of the
  805.       first and subsequent line of each list item, and also  provides  for
  806.       a  "bullet" character at a given position to visually mark the start
  807.       of the next item.
  808.  
  809.       There are three types of  lists  in  DPS:  regular  lists,  numbered
  810.       lists,  and description lists.  When you nest lists you can intermix
  811.       these types but each list, regardless of its  type,  counts  against
  812.       the nesting limit of 9.
  813.  
  814.       A  regular  list  begins  with  the  .LIST command and ends with the
  815.       .ENDLIST command.  Each new element of the list is  denoted  with  a
  816.       line  that starts out with a .ITEM (or .LE) command, followed by the
  817.       text of the item.  The text may be continued to subsequent lines  if
  818.       it  does  not  fit on a single line.  (The .LE command is equivalent
  819.       to .ITEM).  DPS performs formatting and justification  of  the  text
  820.       of each list item.  The following is an example of a list:
  821.  
  822.       Chapter 2. DPS Operation                                          14
  823.  
  824.  
  825.            .LIST
  826.            .ITEM Shareware programs are an excellent value because you can
  827.            try a program to see if it suitable for your needs before you
  828.            buy it.
  829.            .ITEM Many shareware programs work as well as expensive
  830.            commercial products but cost much less to register.
  831.            .ITEM Shareware is very convenient because you can find
  832.            programs of interest on many bulletin boards and
  833.            download them without leaving your home.
  834.            .ENDLIST
  835.  
  836.       This produces the following output:
  837.  
  838.         . Shareware  programs are an excellent value because you can try a
  839.           program to see if it suitable for your needs before you buy it.
  840.  
  841.         . Many shareware programs work as  well  as  expensive  commercial
  842.           products but cost much less to register.
  843.  
  844.         . Shareware  is  very  convenient because you can find programs of
  845.           interest on many  bulletin  boards  and  download  them  without
  846.           leaving your home.
  847.  
  848.       Each  element  of  a  regular list begins with a line containing the
  849.       "bullet" character.  The default bullet character is  a  period  but
  850.       you  can  use  the .LIST_BULCHR command to set any desired character
  851.       as the bullet  for  any  level  of  list  nesting.   Style  elements
  852.       .LIST_IN1,  .LIST_INX,  and  .LIST_BULPOS control the indentation of
  853.       the  first  line,  indentation  of  subsequent  lines,  and   bullet
  854.       position at each list nesting level.
  855.  
  856.       Numbered  lists  are like regular lists except that the elements are
  857.       numbered instead of being marked with bullet characters.   The  same
  858.       style  parameters,  .LIST_IN1  and .LIST_INX control the indentation
  859.       for NLISTS but a separate style attribute,  .NLIST_NUMPOS,  controls
  860.       the  column  used  for  formatted  the  numbers.  Numbered lists are
  861.       begun with  the  .NLIST  command  and  ended  with  .ENDLIST.   Each
  862.       element  in  the  list  is  introduced  with  a  .ITEM command.  The
  863.       following is an example of a numeric list specification:
  864.  
  865.            .NLIST
  866.            .ITEM Insert the disk in either drive A or B.
  867.            .ITEM Type "MD \DPS"
  868.            .ITEM Type "CD \DPS"
  869.            .ITEM TYPE "COPY *.*"
  870.            .ENDLIST
  871.  
  872.       Description lists are used when you  want  the  indentation,  not  a
  873.       bullet  or  number, to mark the beginning of the list element.  With
  874.       a description list the first line of each item is not  indented  but
  875.       subsequent  lines  are.   This  causes  the  first line of each item
  876.       stand out.   Description  lists  are  begun  with  the  .DESCRIPTION
  877.       command  and  ended  with  .ENDLIST.   The indentation for the first
  878.       line of a description  list  element  is  controlled  by  the  style
  879.  
  880.       Chapter 2. DPS Operation                                          15
  881.  
  882.  
  883.       attribute  .DESC_IN1,  which  is  specified  for each nesting level.
  884.       Indentation of subsequent lines is controlled by .DESC_INX.
  885.  
  886.       List items may have multiple paragraphs.  Only  the  first  line  of
  887.       each item is marked or numbered.
  888.  
  889.       The following is an example of a description list definiton:
  890.  
  891.            .DESCRIPTION
  892.            .ITEM TSX-32 -- Multi-user operating system that is very
  893.            powerful and runs on 386 and 486 computers. Some TSX
  894.            sites support over 150 terminals on a single computer.
  895.            .ITEM Mathplot -- Mathematical function plotting program.
  896.            Excellent program for visualizing mathematical
  897.            functions. Enter a function using normal algebraic
  898.            notation and it is immediately graphed.
  899.            .ITEM Nonlin -- Linear and nonlinear statistical
  900.            regression analysis and curve fitting. Nonlin determines
  901.            the values of parameters for a function that cause the
  902.            function to best fit a set of data values.
  903.            .ENDLIST
  904.  
  905.       The output produced by these commands is shown below:
  906.  
  907.       TSX-32  --  Multi-user  operating  system  that is very powerful and
  908.           runs on 386 and 486 computers.  Some TSX sites support over  150
  909.           terminals on a single computer.
  910.  
  911.       Mathplot  --  Mathematical  function  plotting  program.   Excellent
  912.           program  for  visualizing  mathematical  functions.    Enter   a
  913.           function  using  normal algebraic notation and it is immediately
  914.           graphed.
  915.  
  916.       Nonlin -- Linear and nonlinear statistical regression  analysis  and
  917.           curve  fitting.   Nonlin determines the values of parameters for
  918.           a function that cause the function to best fit  a  set  of  data
  919.           values.
  920.  
  921.  
  922.       2.9 Blank Lines and Page Ejects
  923.  
  924.       DPS  advances to the next page of the document when the current page
  925.       is filled up.  However, there are  various  circumstances  when  DPS
  926.       checks  to see if it should go ahead and start a new page before the
  927.       current one is completely full.
  928.  
  929.       DPS will always start a new page at the beginning of a new  chapter.
  930.       The  beginning  of  each  section  within  the chapter forces DPS to
  931.       consider whether enough space on  the  page  remains  to  begin  it.
  932.       This  prevents a section header appearing by itself at the bottom of
  933.       the page, or with very  few  lines  of  text.   Styles  control  the
  934.       minimum  number  of  lines  on a page for each nested section level,
  935.       using the .SLMLOP command.
  936.  
  937.       Chapter 2. DPS Operation                                          16
  938.  
  939.  
  940.       In addition to checking for a  minimum  number  of  available  lines
  941.       before  starting  a section, DPS also checks for a minimum number of
  942.       lines before starting a new paragraph.  The default number of  lines
  943.       that  must  be  available for starting a new paragraph is 2, but you
  944.       can change this value by use of the .MLOP command.  The .BLBP  style
  945.       parameter  controls  the  number  of blank lines between paragraphs.
  946.       The default value is 1.
  947.  
  948.       Since figures must all fit on  a  page,  DPS  may  also  prematurely
  949.       eject the page to fit the figure on the next page.
  950.  
  951.       You  can  force DPS to be sure that a certain number of lines appear
  952.       on a page if you don't want certain text to be broken  across  pages
  953.       by using the .NEED command.  For example,
  954.  
  955.            .NEED 12
  956.  
  957.       asks  DPS  to  be  sure that at least 12 lines remain on the current
  958.       output page.  If fewer than 12 lines remain, a new page is started.
  959.  
  960.       A more forcible command is .PAGE, which tells DPS  to  begin  a  new
  961.       page if there is any text at all on the current one.
  962.  
  963.       To  finish  the subject of blank lines and page ejection we have the
  964.       commands .SPACE and .FSPACE.  First consider the command:
  965.  
  966.            .SPACE 5
  967.  
  968.       In normal text mode, this command tells DPS to  finish  the  current
  969.       paragraph  and  check to see how close to the end of the page it is.
  970.       The next paragraph will begin 5 lines down on the  current  page  if
  971.       there  is enough room.  If there is not, it will begin at the top of
  972.       the next page.
  973.  
  974.       A related command is .FSPACE.  The command
  975.  
  976.            .FSPACE 5
  977.  
  978.       means that you want 5 blank lines to  preceed  the  next  paragraph,
  979.       even  if the space must be placed at the top of the next page.  This
  980.       could be used to leave space for a figure or clip art.
  981.  
  982.       Note that  when  in  figure  or  centered  mode,  .SPACE  acts  like
  983.       .FSPACE.
  984.  
  985.       Chapter 2. DPS Operation                                          17
  986.  
  987.  
  988.       2.10 Page and Section References
  989.  
  990.       It  is  often  necessary,  especially in technical documentation, to
  991.       refer the reader to other  sections  of  the  document  for  further
  992.       information  on  a  particular  subject.   We have done this in this
  993.       manual when we say things like "Lists are described in  Section  2.8
  994.       on  page  13".  The author did not count sections and determine that
  995.       Section 2.8 documents lists.  This would make a document tedious  to
  996.       maintain  because  insertion  of  new  material would change all the
  997.       numbers.  Instead, the text used the \REF within line command:
  998.  
  999.            Lists are described in Section \ref{lists}.
  1000.  
  1001.       When DPS encounters a \REF{name} command it looks up the label  name
  1002.       enclosed  in braces and determines the chapter and section where the
  1003.       label was defined.  It then  replaces  the  \REF  command  with  the
  1004.       corresponding chapter or section number.
  1005.  
  1006.       A  similar command is \PAGEREF.  This command causes the page number
  1007.       where a label was defined to be inserted in the text.  For  example,
  1008.       the text
  1009.  
  1010.            See page \pageref{lists} for more information about lists.
  1011.  
  1012.       produces the output: See page 13 for more information about lists.
  1013.  
  1014.       In  order for DPS to be able to locate the page, chapter, or section
  1015.       to which you are referring, both \REF and \PAGEREF commands  take  a
  1016.       string  argument,  enclosed  in  braces.  This descriptive name must
  1017.       have a corresponding .LABEL command located near the text  to  which
  1018.       you  are  referring.   .LABEL  commands  for  chapters  and sections
  1019.       should usually immediately follow  the  .CHAPTER  or  .HLn  commands
  1020.       that  start  the  chapter or section.  However, you can place .LABEL
  1021.       commands deep within sections when you want to define a label to  be
  1022.       used  as  a  page  reference.   The  following  is an example .LABEL
  1023.       command that defines a label named  'intro':  .figure  .LABEL  INTRO
  1024.       .endfigure
  1025.  
  1026.       DPS  is  a  multi-pass  processor  so  you can use \ref and \pageref
  1027.       commands to refer to labels that are  defined  after  the  reference
  1028.       point.
  1029.  
  1030.  
  1031.       2.11 Table of Contents
  1032.  
  1033.       DPS  will  automatically  produce  a  table  of  contents  for  your
  1034.       document showing  chapter  and  section  numbers  and  pages.   This
  1035.       information  is  determined  by  DPS  from  the  .CHAPTER  and  .HLn
  1036.       commands.
  1037.  
  1038.       To allow you to  have  heading  pages  in  front  of  the  table  of
  1039.       contents,  you must insert a .TOC command in your source file at the
  1040.       point where you want the table of contents  generated.   If  you  do
  1041.       not use a .TOC command no table of contents will be generated.
  1042.  
  1043.       Chapter 2. DPS Operation                                          18
  1044.  
  1045.  
  1046.       See  Section  2.14  for  information  about  specifying  a different
  1047.       phrase than "Table of Contents" for non-English documents.
  1048.  
  1049.  
  1050.       2.12 Index Entries
  1051.  
  1052.       An index is a valuable part of any large  document.   If  you  write
  1053.       technical  manuals,  try  to bear in mind that your readers will not
  1054.       always read your document from cover to cover,  or  even  an  entire
  1055.       chapter,  when  they are searching for a particular fact.  Having an
  1056.       index that can be used to rapidly  locate  topics  greatly  enhances
  1057.       the value of a manual.
  1058.  
  1059.       Index  entries  are  generated  by the .X command.  You should place
  1060.       the .X command on a line immediately preceeding  the  text  you  are
  1061.       referring to, as shown in the following example:
  1062.  
  1063.            .X Record length
  1064.            The maximum record length is 256 characters,
  1065.            but records are normally...
  1066.  
  1067.       Index  entries  can  have  both  a main topic and a subtopic.  To do
  1068.       this separate the main topic entry from the subtopic by a  semicolon
  1069.       as shown by the following example:
  1070.  
  1071.            .X File;Input
  1072.            .X File;Output
  1073.            .X File;Opening
  1074.  
  1075.       See  Section  2.14 for information about specifying a different word
  1076.       than "Index" for non-English documents.
  1077.  
  1078.  
  1079.       2.13 Including External Files
  1080.  
  1081.       The .INCLUDE command causes a file to be inserted  in  the  document
  1082.       at  the  point  where  the .INCLUDE command occurs.  The form of the
  1083.       .INCLUDE command is
  1084.  
  1085.              .INCLUDE  filename
  1086.  
  1087.       where 'filename' is the name of the file  to  be  inserted.   If  no
  1088.       extension  is  specified  with  the  file  name,  ".DPS"  is used by
  1089.       default.  For example, the following command  causes  a  file  named
  1090.       "STDTERMS.DPS" to be inserted in the document:
  1091.  
  1092.              .INCLUDE STDTERMS
  1093.  
  1094.       The  .INCLUDE command is especially useful for large documents which
  1095.       can be maintained as separate section files and then  combined  when
  1096.       the  document is formatted.  You can also use this command to insert
  1097.       standard "boiler plate"  material  or  style  definitions.   Include
  1098.       files  may  contain  other  .INCLUDE  commands  (i.e.,  they  may be
  1099.       nested).
  1100.  
  1101.       Chapter 2. DPS Operation                                          19
  1102.  
  1103.  
  1104.       2.14 Foreign Language Support
  1105.  
  1106.       Although DPS was written by programmers who  speak  English,  it  is
  1107.       suitable  for  formatting documents written in other languages.  DPS
  1108.       accepts and processes extended (8 bit) ASCII  characters  making  it
  1109.       possible  to  write documents with accented characters or characters
  1110.       that are not part of the standard Roman  ASCII  character  set.   In
  1111.       addition,  three  commands  are provided to allow you to specify the
  1112.       words or phrases that DPS is to print for the following labels:  (1)
  1113.       "Chapter";   (2)  "Table  of  Contents";  and  (3)  "Index".   These
  1114.       commands are
  1115.  
  1116.             .WORDCHAPTER string    -- String for "Chapter" word.
  1117.             .WORDTOC string        -- String for "Table of Contents".
  1118.             .WORDINDEX string      -- String for "Index" word.
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.                                    Chapter 3
  1126.  
  1127.                                Command Reference
  1128.  
  1129.  
  1130.  
  1131.  
  1132.       This chapter contains an  alphabetical  list  of  the  DPS  commands
  1133.       divided  into  three  sections: between line, within line, and style
  1134.       modification.
  1135.  
  1136.  
  1137.       3.1 Between Line Commands
  1138.  
  1139.       .BLCMD  character  --  Specifies  a  new  introducer  character  for
  1140.           between line commands.  The default character is period.
  1141.  
  1142.       .CENTER  --  Causes  each  line of text between this command and the
  1143.           corresponding .ENDCENTER command to be  centered  on  the  page.
  1144.           The  contents  of  each  line  is preserved (i.e., words are not
  1145.           moved between lines).
  1146.  
  1147.       .CHAPTER title --  Begins  a  new  chapter.   The  title  string  is
  1148.           printed  as  the  chapter  heading  and  used  in  the  table of
  1149.           contents.  DPS starts each chapter on a  new  page.   If  double
  1150.           sided  printing  is  in  effect  (see the .DSIDE command) then a
  1151.           blank page is ejected if needed to start the chapter on  an  odd
  1152.           page number.
  1153.  
  1154.       .DESCRIPTION  --  Begins a description type list.  The first line of
  1155.           each item in the list  is  not  indented  but  other  lines  are
  1156.           indented.  The list is terminated by a .ENDLIST command.
  1157.  
  1158.       .DSIDE  -- Specifies that the document will be printed on both sides
  1159.           of the paper.  If this  is  wanted  the  .DSIDE  command  should
  1160.           appear  at the front of the document.  Double sided mode has the
  1161.           following effects:
  1162.  
  1163.             . The left and right margin  values  (.LMARGIN  and  .RMARGIN)
  1164.               are  reversed  for  even  pages which normally appear on the
  1165.               left side of a bound document.  This  means  that  the  left
  1166.               margin  value is always used on the side of the page nearest
  1167.               to the binding.  For a bound document you may want to use  a
  1168.               larger  value  for  the  left  margin  to allow room for the
  1169.               space used by the binding.
  1170.  
  1171.             . Blank pages are inserted as necessary to force  chapters  to
  1172.               start on odd numbered pages.
  1173.  
  1174.  
  1175.  
  1176.  
  1177.                                        20
  1178.  
  1179.       Chapter 3. Command Reference                                      21
  1180.  
  1181.  
  1182.             . The  standard  heading  is  changed  so that the the chapter
  1183.               name goes on the  right  end  of  the  even  pages  and  the
  1184.               section name goes on the left end of the odd pages.
  1185.  
  1186.       .ENDCENTER  --  Ends  centered  mode that was started with a .CENTER
  1187.           command.
  1188.  
  1189.       .ENDFIGURE -- Ends figure mode  that  was  started  with  a  .FIGURE
  1190.           command.
  1191.  
  1192.       .ENDLIST  --  Ends  list mode that was started with a .LIST, .NLIST,
  1193.           or .DESCRIPTION command.
  1194.  
  1195.       .ENDVERBATIM  --  Ends  verbatim  mode  that  was  started  with   a
  1196.           .VERBATIM command.
  1197.  
  1198.       .FIGURE  --  Begins  figure  mode.   Use  the  .ENDFIGURE command to
  1199.           terminate figure mode.  No  formatting  takes  place  in  figure
  1200.           mode  and  within line commands are not recognized.  You may use
  1201.           the .FINDENT command to cause figures to be indented.
  1202.  
  1203.       .FSPACE number -- Forces the specified number of blank lines  to  be
  1204.           skipped over.
  1205.  
  1206.       .HANG  number -- Specifies that the following paragraphs are to have
  1207.           hanging indentation.  The first line of  the  paragraph  is  not
  1208.           indented  but  all other lines are indented the specified number
  1209.           of spaces.
  1210.  
  1211.       .HLn text -- Specify the heading for a section.  The  'n'  character
  1212.           in  .HLn  should  be  replaced with a digit.  .HL1 specifies the
  1213.           heading for the highest section level (below  a  chapter),  .HL2
  1214.           specifies   the   heading   for   a   sub-section,  .HL3  for  a
  1215.           sub-sub-section, etc.  The text string specified following  .HLn
  1216.           is  used  as the heading for the section and also appears in the
  1217.           table of contents.
  1218.  
  1219.       .INCLUDE file -- Causes the specified file to  be  inserted  in  the
  1220.           document  at  the  location  of  the  .INCLUDE command.  This is
  1221.           useful for large documents that can be  maintained  as  separate
  1222.           sections  but combined into a single formatted listing.  You can
  1223.           also use .INCLUDE to insert common style descriptions  that  you
  1224.           may  want  to  use  in  multiple  documents.  If no extension is
  1225.           specified with  the  file  name,  ".DPS"  is  used  by  default.
  1226.           Include files may be nested.
  1227.  
  1228.       .ITEM  text -- Specifies an item of a list.  This can be used in the
  1229.           range of .LIST, .NLIST, and .DESCRIPTION.  The text that  begins
  1230.           on the command line may be continued to subsequent lines.
  1231.  
  1232.       .LABEL  name  --  Defines  a  label  that  may  be referenced by the
  1233.           \ref{name} and \pageref{name} within line commands.
  1234.  
  1235.       .LE text -- Equivalent to .ITEM.  Specifies an item of a list.
  1236.  
  1237.       Chapter 3. Command Reference                                      22
  1238.  
  1239.  
  1240.       .LENGTH number -- Specifies the number of lines  to  be  printed  on
  1241.           each page.
  1242.  
  1243.       .LIST   --  Begins  a  list  whose  items  are  marked  by  "bullet"
  1244.           characters.  The default bullet character is the period but  you
  1245.           may  use  the .LIST_BULCHR command to specify a different bullet
  1246.           character.  The list is terminated by a .ENDLIST command.
  1247.  
  1248.       .LMARGIN number -- Specifies the number of spaces  to  use  for  the
  1249.           left margin of the page.  The default value is 6.
  1250.  
  1251.       .NEED  number -- Causes DPS to check to see if there are at least as
  1252.           many lines remaining on the page as  the  specified  value.   If
  1253.           there  are  not,  the  current page is ejected and the text that
  1254.           follows is printed at the top of the next page.
  1255.  
  1256.       .NLIST -- Begins  a  numbered  list.   Each  item  in  the  list  is
  1257.           numbered.  The list is terminated by a .ENDLIST command.
  1258.  
  1259.       .PAGE -- Forces a page eject at the current point.
  1260.  
  1261.       .RMARGIN  number  --  Specifies  the number of spaces to use for the
  1262.           right margin of the page.  The default value is 6.
  1263.  
  1264.       .SCENTER -- Causes the next single  line  to  be  centered.   Normal
  1265.           text formating mode resumes after the following line.
  1266.  
  1267.       .SPACE  number  --  If at least the specified number of lines remain
  1268.           on the current page they are skipped over and  left  blank.   If
  1269.           fewer  than  the  specified  number of lines remain, the current
  1270.           page is ejected and printing resumes at  the  top  of  the  next
  1271.           page.  See also the .FSPACE command.
  1272.  
  1273.       .SQUEEZE  number  --  Causes  the  following text to be indented the
  1274.           specified number of spaces on both the  left  and  right  sides.
  1275.           Specify ".SQUEEZE 0" to cancel squeeze mode.
  1276.  
  1277.       .STYLE  name -- Selects a specified style for the text that follows.
  1278.           If the name matches a style that has already been  defined  then
  1279.           that  style  is  resumed  and  any  style  parameters  that were
  1280.           specified for it continue in effect.  If the style name has  not
  1281.           been  previously used then a new style definition is begun.  New
  1282.           styles are  initialized  to  the  parameters  for  the  STANDARD
  1283.           style.
  1284.  
  1285.       .TOC  --  Causes the table of contents to be generated at this point
  1286.           in the document.
  1287.  
  1288.       .VERBATIM -- Begins verbatim mode.  In verbatim mode  no  formatting
  1289.           is  done  and  words are not moved between lines.  Verbatim mode
  1290.           is similar to figure mode but the text is not  required  to  fit
  1291.           on   a   single   page.    Verbatim  mode  is  terminated  by  a
  1292.           .ENDVERBATIM command.
  1293.  
  1294.       Chapter 3. Command Reference                                      23
  1295.  
  1296.  
  1297.       .WIDTH number -- Specifies the page width.   The  actual  area  that
  1298.           the  document  text  is  printed  in  is equal to the page width
  1299.           minus the left and right margins.  The default width is 80.
  1300.  
  1301.       .WLCMD character -- Specifies a new introducer character for  within
  1302.           line commands.  The default character is '\'.
  1303.  
  1304.       .WORDCHAPTER  string  --  Specifies  the  string  to be printed in a
  1305.           chapter heading where the word "Chapter" normally appears.
  1306.  
  1307.       .WORDINDEX string -- Specifies the  string  to  be  printed  in  the
  1308.           index heading where the word "Index" normally appears.
  1309.  
  1310.       .WORDTOC  string  -- Specifies the string to be printed in the table
  1311.           of contents heading where "Table of Contents" normally appears.
  1312.  
  1313.       .X item1[;item2] -- Defines an entry to go in  the  index.   If  you
  1314.           want  a  two  level  entry  specify  the  primary  index  phrase
  1315.           followed by a semicolon and the secondary phrase.
  1316.  
  1317.  
  1318.       3.2 Within Line Commands
  1319.  
  1320.       The following commands may appear within  the  body  of  your  text.
  1321.       They  are  not  recognized  in figure or verbatim mode.  You can use
  1322.       the .WLCMD command to change the introducer character.
  1323.  
  1324.       \PAGEREF{name} -- When this command is encountered in your  document
  1325.           it  is  replaced  by  the  page number where the specified label
  1326.           name was defined.  The "name" must be defined somewhere in  your
  1327.           document  by use of the .LABEL command (see Section 2.10 on page
  1328.           17).
  1329.  
  1330.       \REF{name} -- When this command is encountered  it  is  replaced  by
  1331.           the  chapter  or  section  number where the label was defined by
  1332.           use of a .LABEL command.  If  the  label  was  defined  after  a
  1333.           .CHAPTER  command  but  before  any .HLn command then the number
  1334.           will be an integer that corresponds to the chapter  number.   If
  1335.           the  label  was  defined  after  a  .HLn  command then a section
  1336.           number of the form 'n.m.i' will be inserted.
  1337.  
  1338.  
  1339.       3.3 Style Parameter Commands
  1340.  
  1341.       The following commands set parameters  for  the  currently  selected
  1342.       style.   You  choose  a  style  by using the .STYLE command.  If you
  1343.       change some parameters for a style, select another style,  and  then
  1344.       reselect  the  first  style,  the changed parameters are remembered.
  1345.       See Section 2.4 starting on page 8 for additional information  about
  1346.       styles.
  1347.  
  1348.       .BLBP  number -- Specifies the number of blank lines that DPS should
  1349.           insert between paragraphs.  The default value is 1.
  1350.  
  1351.       Chapter 3. Command Reference                                      24
  1352.  
  1353.  
  1354.       .CHAPHEAD number -- Specifies whether a chapter  heading  is  to  be
  1355.           printed  on  the  first  page  of  a chapter.  A chapter heading
  1356.           consists of some blank lines, a line such as "Chapter  nn",  and
  1357.           the  chapter  title  line.  Specify 1 to enable chapter headings
  1358.           or 0 to disable them.  The STANDARD style has  chapter  headings
  1359.           enabled,  the  REPORT,  LETTER, and PLAIN styles default chapter
  1360.           headings off.
  1361.  
  1362.       .DESC_IN1 level amt -- Amount to indent the text on the  first  line
  1363.           of  each  paragraph within a description type list.  The 'level'
  1364.           number specifies the list nesting  level;  0  corresponds  to  a
  1365.           list  that  is  not  within  another  list.   The  'amt'  number
  1366.           specifies the number  of  spaces  to  indent.   By  default,  an
  1367.           unnested  list  (level  0)  is indented 0 spaces and each deeper
  1368.           level of nesting is indented an additional 4 spaces.
  1369.  
  1370.       .DESC_INX level amt -- Amount to indent the text on all lines  other
  1371.           than  the first line of each paragraph within a description type
  1372.           list.  The 'level' number specifies the list  nesting  level;  0
  1373.           corresponds  to  a  list  that  is not within another list.  The
  1374.           'amt' number specifies the  number  of  spaces  to  indent.   By
  1375.           default,  an  unnested  list  (level 0) is indented 4 spaces and
  1376.           each deeper  level  of  nesting  is  indented  an  additional  4
  1377.           spaces.
  1378.  
  1379.       .F1PN  number  -- Type of page number to print in the footer line of
  1380.           first page of a chapter.  0  =  no  number,  1  =  decimal  page
  1381.           number  at  right  end  of  line  or  alternating left/right for
  1382.           double sided, 2 = decimal number in center of line, 3 =  decimal
  1383.           number  at  right  end  of  line, 4 = roman numberal centered in
  1384.           line.  The default value is 2 for  STANDARD  and  REPORT  styles
  1385.           and 0 for the other styles.
  1386.  
  1387.       .F1TEXT  number -- Type of footer to be printed on the first page of
  1388.           a chapter.  Specify 0 for no footer, 1 for the chapter name,  or
  1389.           2 for the section name.  The default is 0.
  1390.  
  1391.       .FINDENT  number  -- Specifies the number of characters that figures
  1392.           are to be indented from the left margin.  The default  value  is
  1393.           0.
  1394.  
  1395.       .FXPN  number  --  Type  of  page number to print in footer lines of
  1396.           pages after the first page of a chapter.  0 =  no  number,  1  =
  1397.           decimal  page  number  at  right  end  of  line  or  alternating
  1398.           left/right for double sided, 2 = decimal  number  in  center  of
  1399.           line,  3  =  decimal  number  at  right  end  of line, 4 = roman
  1400.           numberal centered in line.  The default value is  2  for  REPORT
  1401.           style and 0 for all other styles.
  1402.  
  1403.       .FXTEXT  number  --  Type of footer to be printed on pages after the
  1404.           first page of a chapter.  Specify 0 for no  footer,  1  for  the
  1405.           chapter name, or 2 for the section name.  The default is 0.
  1406.  
  1407.       .H1PN  number -- Type of page number to print in the heading line of
  1408.           the first page of a chapter.  0 = no number, 1  =  decimal  page
  1409.  
  1410.       Chapter 3. Command Reference                                      25
  1411.  
  1412.  
  1413.           number  at  right  end  of  line  or  alternating left/right for
  1414.           double sided, 2 = decimal number in center of line, 3 =  decimal
  1415.           number  at  right  end  of  line, 4 = roman numberal centered in
  1416.           line.  The default value is 0.
  1417.  
  1418.       .H1TEXT number -- Type of header to be printed on the first page  of
  1419.           a  chapter.  Specify 0 for no header, 1 for the chapter name, or
  1420.           2 for the section name.  The default is 0.
  1421.  
  1422.       .HXPN number -- Type of page number to  print  in  heading  line  of
  1423.           pages  after  the  first  page of a chapter.  0 = no number, 1 =
  1424.           decimal  page  number  at  right  end  of  line  or  alternating
  1425.           left/right  for  double  sided,  2 = decimal number in center of
  1426.           line, 3 = decimal number  at  right  end  of  line,  4  =  roman
  1427.           numberal  centered in line.  The default value is 1 for STANDARD
  1428.           style and 0 for all other styles.
  1429.  
  1430.       .HXTEXT number -- Type of header to be printed on  pages  after  the
  1431.           first  page  of  a  chapter.  Specify 0 for no header, 1 for the
  1432.           chapter name, or 2 for the section name.  The default is  2  for
  1433.           STANDARD style and 0 for PLAIN, LETTER, and REPORT styles.
  1434.  
  1435.       .INDENT  level  amt  --  Amount  to indent text based on the section
  1436.           level.   The  'level'  number  is  in  the  range  1  to  9  and
  1437.           corresponds  to a section level as specified by the .HLn command
  1438.           (see Section 2.3 on page 6).  All text at the specified  section
  1439.           level  is  indented  the number of spaces specified by the 'amt'
  1440.           number.  The default value for all section levels is 0.
  1441.  
  1442.       .JUSTIFY number -- Specify if DPS is  to  add  spaces  to  lines  to
  1443.           cause  the  right  margin to be justified (flush).  Specify 1 to
  1444.           enable right margin justification; specify 0 for a ragged  right
  1445.           margin.   The  .NOJUSTIFY command is equivalent to ".JUSTIFY 0".
  1446.           The default value is 0 for LETTER style  and  1  for  all  other
  1447.           styles.
  1448.  
  1449.       .LIST_BULCHR  level char -- Specify the character that is to be used
  1450.           as the "bullet" marker character for each item of a  list.   The
  1451.           'level'  number  specifies the list nesting level: 0 corresponds
  1452.           to a list that is not within  another  list.   The  'char'  item
  1453.           must  be  a single character.  The default bullet character is a
  1454.           period.
  1455.  
  1456.       .LIST_BULPOS level amt -- Number of characters to indent the  bullet
  1457.           character   for  each  item  of  a  list.   The  'level'  number
  1458.           specifies the list nesting level: 0 corresponds to a  list  that
  1459.           is  not  within  another  list.   The 'amt' number specifies the
  1460.           number of characters to indent  the  bullet  for  the  specified
  1461.           level.   The  default  value  is  2  for  an unnested list and 4
  1462.           additional characters for each level of nesting.
  1463.  
  1464.       .LIST_IN1 level amt -- Amount to indent the text on the  first  line
  1465.           of  each item within a list.  The bullet character, or number in
  1466.           the case of a .NLIST, is indented less so that it hangs  out  to
  1467.           the  left  of  the  text.  The 'level' number specifies the list
  1468.  
  1469.       Chapter 3. Command Reference                                      26
  1470.  
  1471.  
  1472.           nesting level: 0 corresponds  to  a  list  that  is  not  within
  1473.           another  list.   The 'amt' number specifies the number of spaces
  1474.           to indent.  By default, an unnested list (level 0)  is  indented
  1475.           4  spaces  and  each  deeper  level  of  nesting  is indented an
  1476.           additional 4 spaces.
  1477.  
  1478.       .LIST_INX level amt -- Amount to indent the text on all lines  other
  1479.           than  the  first  line  of each item within a list.  The 'level'
  1480.           number specifies the list nesting  level:  0  corresponds  to  a
  1481.           list  that  is  not  within  another  list.   The  'amt'  number
  1482.           specifies the number  of  spaces  to  indent.   By  default,  an
  1483.           unnested  list  (level  0)  is indented 4 spaces and each deeper
  1484.           level of nesting is indented an additional 4 spaces.
  1485.  
  1486.       .LIST_NUMPOS level amt -- Number of characters to indent the  number
  1487.           for  each  item  of  a .NLIST (numbered) type list.  The 'level'
  1488.           number specifies the list nesting  level:  0  corresponds  to  a
  1489.           list  that  is  not  within  another  list.   The  'amt'  number
  1490.           specifies the number of characters to indent the number for  the
  1491.           specified  level.   The  default value is 0 for an unnested list
  1492.           and 4 additional characters for each level of nesting.
  1493.  
  1494.       .LMEXTRA number -- Specify the number of characters  to  indent  all
  1495.           lines  of  a  paragraph  after  the  first  line.   See also the
  1496.           description of the .HANG command.  If both  .LMEXTRA  and  .HANG
  1497.           are   specified,   their  values  are  added  to  determine  the
  1498.           indentation amount.  The default value for .LMEXTRA is 0.
  1499.  
  1500.       .LMFIRST number -- Specify the number of characters  to  indent  the
  1501.           first line of each paragraph.  The default value is 0.
  1502.  
  1503.       .MLOP  number  --  Specify  the  minimum  number  of lines that must
  1504.           remain on a page for a new paragraph to be started on the  page.
  1505.           If  fewer  than  this  many lines remain on the page the page is
  1506.           ejected and the paragraph begins at the top of  the  next  page.
  1507.           This  prevents "orphan" lines where you have only the first line
  1508.           of a paragraph at the bottom of a page.  The  default  value  is
  1509.           2.
  1510.  
  1511.       .NLAF  number  --  Number  of  blank lines to leave between the last
  1512.           text line on a page and the footer line.  The default  value  is
  1513.           2.
  1514.  
  1515.       .NLAH  number  --  Number  of  blank lines to leave above the header
  1516.           line at the top of each page.  The default value is 0.
  1517.  
  1518.       .NLAHL level lines --  Number  of  blank  lines  to  leave  above  a
  1519.           section  header.   These blank lines separate a new section from
  1520.           the previous section.  The 'level' number is in the range  0  to
  1521.           9  and corresponds to the section heading level specified by the
  1522.           .HLn command (see page 21).  The special section  number  0  can
  1523.           be  used  to specify the number of blank lines to put before the
  1524.           chapter heading.  The 'lines' number is the number of  lines  to
  1525.           be  set  for  this section level number.  The default value is 5
  1526.  
  1527.       Chapter 3. Command Reference                                      27
  1528.  
  1529.  
  1530.           lines for section 0 (chapter header), 2  lines  for  section  1,
  1531.           and 1 line for all other section levels.
  1532.  
  1533.       .NLBH  number  --  Number of blank lines to leave between the header
  1534.           line at the top of each page and the first line of text  on  the
  1535.           page.  The default value is 2.
  1536.  
  1537.       .SLMLOP  level amt -- Minimum number of lines that must be available
  1538.           on a page for DPS to start the section on the  page.   If  fewer
  1539.           lines  are  available DPS ejects the current page and starts the
  1540.           section at the top of the next page.  The 'level' number  is  in
  1541.           the  range  1  to  9  and  corresponds  to  a  section  level as
  1542.           specified by the .HLn command (see Section 2.3 on page 6).   The
  1543.           'amt'  number  is  the  minimum  number  of  lines  that must be
  1544.           available.
  1545.  
  1546.  
  1547.  
  1548.  
  1549.  
  1550.  
  1551.                                    Chapter 4
  1552.  
  1553.                           Use And Distribution of DPS
  1554.  
  1555.  
  1556.  
  1557.  
  1558.       You are welcome to make copies of this program and pass them  on  to
  1559.       friends  or  post  this  program on bulletin boards or distribute it
  1560.       via disk catalog services provided the entire  DPS  distribution  is
  1561.       included  in  its original, unmodified form.  A distribution fee may
  1562.       be charged for the cost of  the  diskette,  shipping  and  handling.
  1563.       However,  DPS  may  not  be sold, or incorporated in another product
  1564.       that is sold, without  the  permission  of  the  authors.   However,
  1565.       permission   is  granted  to  include  DPS  as  part  of  "shareware
  1566.       collections" that are sold on CD ROM's.  Vendors are  encouraged  to
  1567.       contact the authors to get the most recent version of DPS.
  1568.  
  1569.       As  a  shareware product, you are granted a no-cost, trial period of
  1570.       30 days during which you may evaluate DPS.  If you find  DPS  to  be
  1571.       useful,  educational,  and/or  entertaining,  and continue to use it
  1572.       beyond the 30 day trial period, you are required to  compensate  the
  1573.       authors  by sending the registration form printed at the end of this
  1574.       document (and in REGISTER.DOC)  with  the  appropriate  registration
  1575.       fee to help cover the development and support of DPS.
  1576.  
  1577.       In  return for registering, you will be authorized to continue using
  1578.       DPS beyond the trial  period  and  you  will  receive  a  registered
  1579.       version  of  DPS  which  does  not display the shareware message and
  1580.       pause.  You will also receive a  laser-printed,  bound  manual,  and
  1581.       three  months  of  support via telephone, mail, or CompuServe.  Your
  1582.       registration fee will be refunded if you  encounter  a  serious  bug
  1583.       that cannot be corrected.
  1584.  
  1585.       You are welcome to contact the authors:
  1586.  
  1587.                                Phillip H. Sherrod
  1588.                                4410 Gerald Place
  1589.                          Nashville, TN  37205-3806  USA
  1590.                             615-292-2881 (evenings)
  1591.                              CompuServe: 76166,2640
  1592.                       Internet: 76166.2640@compuserve.com
  1593.  
  1594.                                  Dan Cappannari
  1595.                               CCI Computing, Inc.
  1596.                                 P.O. Box 210963
  1597.                                Nashville TN 37221
  1598.  
  1599.  
  1600.  
  1601.  
  1602.  
  1603.                                        28
  1604.  
  1605.       Chapter 4. Use And Distribution of DPS                            29
  1606.  
  1607.  
  1608.       Both  the  DPS  program  and documentation are copyright (c) 1993 by
  1609.       Phillip  H.   Sherrod  and  Daniel  J.   Cappannari.   You  are  not
  1610.       authorized to modify the program or documentation.
  1611.  
  1612.       This  program  is  produced  by  a  member  of  the  Association  of
  1613.       Shareware Professionals (ASP).  ASP wants  to  make  sure  that  the
  1614.       shareware  principle  works for you.  If you are unable to resolve a
  1615.       shareware-related problem with  an  ASP  member  by  contacting  the
  1616.       member  directly,  ASP  may  be able to help.  The ASP Ombudsman can
  1617.       help you resolve a dispute or problem with an ASP member,  but  does
  1618.       not  provide  technical support for members' products.  Please write
  1619.       to the ASP Ombudsman at 545 Grover Road, Muskegon, MI 49442 or  send
  1620.       a   CompuServe   message   via  CompuServe  Mail  to  ASP  Ombudsman
  1621.       7007,3536.
  1622.  
  1623.  
  1624.       4.1 Disclaimer
  1625.  
  1626.       DPS is provided  "as  is"  without  warranty  of  any  kind,  either
  1627.       expressed  or  implied.   This  program  may  contain  "bugs".   The
  1628.       authors assume no responsibility for the use of DPS and will not  be
  1629.       responsible for any damage resulting from its use.
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635.  
  1636.                                    Chapter 5
  1637.  
  1638.                                  Other Software
  1639.  
  1640.  
  1641.  
  1642.  
  1643.       If you like DPS, you should check out the following programs.
  1644.  
  1645.  
  1646.       5.1 Mathplot -- Mathematical Function Plotting Program
  1647.  
  1648.       Mathplot  allows  you  to specify complicated mathematical functions
  1649.       using ordinary algebraic  expressions  and  immediately  plot  them.
  1650.       Four  types  of  functions  may  be  specified:  cartesian (Y=f(X));
  1651.       parametric cartesian (Y=f(T) and X=f(T));  polar  (Radius=f(Angle));
  1652.       and  parametric  polar  (Radius=f(T)  and  Angle=f(T)).   Up to four
  1653.       functions may be  plotted  simultaneously.   Scaling  is  automatic.
  1654.       Options  are  available to control axis display and labeling as well
  1655.       as grid lines.  Hard copy output may be generated as well as  screen
  1656.       display.   Mathplot is an ideal tool for engineers, scientists, math
  1657.       and  science  teachers,  and  anyone  else  who  needs  to   quickly
  1658.       visualize mathematical functions.
  1659.  
  1660.  
  1661.       5.2 Nonlin -- Linear & Nonlinear Statistical Regression
  1662.  
  1663.       Nonlin   performs   linear   and  nonlinear  statistical  regression
  1664.       analysis.  What is regression analysis?  Regression  analysis  is  a
  1665.       mathematical   technique   for   determining   the  best  values  of
  1666.       parameters to fit  an  equation  to  a  set  of  data  points.   For
  1667.       example, you might want to develop an equation of the form
  1668.  
  1669.            price = p0 + p1*age + p2*miles
  1670.  
  1671.       to  predict  the price of a used car based on its age and the number
  1672.       of miles driven.  With Nonlin you can collect data from car ads  and
  1673.       then perform the analysis using the following set of commands:
  1674.  
  1675.            VARIABLES PRICE,AGE,MILES
  1676.            PARAMETERS P0,P1,P2
  1677.            FUNCTION  PRICE = P0 + P1*AGE + P2*MILES
  1678.            DATA
  1679.  
  1680.       Nonlin  will  analyze  the data and determine the best values of the
  1681.       parameters P0, P1, and P2 to fit the data values.
  1682.  
  1683.       Ordinary linear regression programs  can  only  determine  parameter
  1684.       values  for  linear (straight line) equations.  Nonlin, on the other
  1685.       hand, can  handle  multivariate,  linear,  polynomial,  and  general
  1686.  
  1687.  
  1688.                                        30
  1689.  
  1690.       Chapter 5. Other Software                                         31
  1691.  
  1692.  
  1693.       nonlinear  equations.   For  example,  using  Nonlin  you can easily
  1694.       determine the best values for the parameters Offset, Amplitude,  and
  1695.       Frequency for an equation of the form:
  1696.  
  1697.            Y = Offset + Amplitude * sin(Frequency * X)
  1698.  
  1699.       Nonlin  uses  the  same  expression evaluator as Mathplot so you can
  1700.       model complicated equations using the  full  set  of  operators  and
  1701.       library functions available in Mathplot.
  1702.  
  1703.       Nonlin  comes  with  a  48  page  manual  that  explains  regression
  1704.       analysis and  gives  many  examples.   Nonlin  is  in  use  at  many
  1705.       universities and research labs around the world.
  1706.  
  1707.  
  1708.       5.3 TSX-32 -- Multi-User Operating System
  1709.  
  1710.       If  you  have  a  need  for  a  multi-user,  multi-tasking operating
  1711.       system, you should look into TSX-32.   TSX-32  is  a  full-featured,
  1712.       high  performance,  multi-user  operating system for the 386 and 486
  1713.       that  provides  both  32-bit  and  16-bit  program  support.    With
  1714.       facilities  such  as  multitasking  and  multisessions,  networking,
  1715.       virtual memory, X-Windows, background batch  queues,  data  caching,
  1716.       file   access   control,  real-time,  and  dial-in  support,  TSX-32
  1717.       provides a solid environment for a wide range of applications.
  1718.  
  1719.       A two user, shareware version of  TSX-32  called  TSX-Lite  is  also
  1720.       available.
  1721.  
  1722.       TSX-32  is not a limited, 16-bit, multi-DOS add-on.  Rather, it is a
  1723.       complete 32-bit  operating  system  which  makes  full  use  of  the
  1724.       hardware's  potential,  including  protected mode execution, virtual
  1725.       memory, and demand paging.  TSX-32 sites range  from  small  systems
  1726.       with  2-3  terminals  to  large  installations  with  more  than 100
  1727.       terminals on a single 486.
  1728.  
  1729.       In addition to supporting most popular 16-bit DOS  programs,  TSX-32
  1730.       also  provides  a 32-bit "flat" address space with both Phar Lap and
  1731.       DPMI compatible modes of execution.
  1732.  
  1733.       Since the DOS  file  structure  is  standard  for  TSX-32,  you  can
  1734.       directly  read  and  write  DOS disks.  And, you can run DOS part of
  1735.       the time and TSX-32 the rest of the time on the same computer.
  1736.  
  1737.       TSX-32 allows each user to control up to 10 sessions.  Programs  can
  1738.       also  "fork" subtasks for multi-threaded applications.  The patented
  1739.       Adaptive Scheduling Algorithm provides  consistently  good  response
  1740.       time under varying conditions.
  1741.  
  1742.       The   TSX-32   network  option  provides  industry  standard  TCP/IP
  1743.       networking through Ethernet and serial lines.  Programs  can  access
  1744.       files  on  remote  machines  as easily as on their own machine.  The
  1745.       SET HOST command allows a user on one machine to  log  onto  another
  1746.       computer  in  the  network.   FTP, Telnet, and NFS are available for
  1747.       interoperability with other systems.
  1748.  
  1749.       Chapter 5. Other Software                                         32
  1750.  
  1751.  
  1752.       System requirements: 386 or 486 system, 4MB  memory,  12MB  of  free
  1753.       disk space (Stacker and DoubleSpace are not supported).
  1754.  
  1755.       TSX-32  is,  quite  simply,  the  best  and  most powerful operating
  1756.       system available for the 386 and 486.   For  additional  information
  1757.       contact:
  1758.  
  1759.                            S&H Computer Systems, Inc.
  1760.                              1027 17th Avenue South
  1761.                             Nashville, TN 37212 USA
  1762.                               615-327-3670 (voice)
  1763.                                615-321-5929 (fax)
  1764.                               CompuServe: 71333,27
  1765.                        Internet: 71333.27@compuserve.com
  1766.  
  1767.         ===============================================================
  1768.                               Software Order Form
  1769.         ===============================================================
  1770.  
  1771.       Name ______________________________________________________
  1772.  
  1773.       Address ___________________________________________________
  1774.  
  1775.       City _______________________  State _______ Zip ___________
  1776.  
  1777.       Country ____________________  Telephone ___________________
  1778.  
  1779.       CompuServe account (optional) _____________________________
  1780.  
  1781.       DPS version _______________________________________________
  1782.  
  1783.       Bulletin board where you found DPS ________________________
  1784.  
  1785.       Comments __________________________________________________
  1786.  
  1787.       Check the boxes which indicate your order type:
  1788.  
  1789.           ___ I wish to register DPS ($25).
  1790.  
  1791.           ___ I wish to order Mathplot ($20).
  1792.  
  1793.           ___ I wish to order Nonlin ($25)
  1794.  
  1795.       Add  $5  to  the  total amount of the order if the software is being
  1796.       shipped out of the United  States.   I  cannot  accept  checks  from
  1797.       non-US  banks.   Visa,  MasterCard  and American Express credit card
  1798.       charges  are  accepted  but  a  check,  money  order,  or  cash   is
  1799.       preferred.   If  you  wish  to use a credit card specify the billing
  1800.       name, address, card number, and expiration date.
  1801.  
  1802.       In return for registering, you will receive the most recent  version
  1803.       of  the  program,  a  laser-printed,  bound  copy of the manual, and
  1804.       three months of telephone or CompuServe support.  Your  registration
  1805.       fee  will  be  refunded  if  you  find  a serious bug that cannot be
  1806.       corrected.
  1807.  
  1808.       Distribution disk choice (check one):
  1809.  
  1810.             3.50" HD (1.4 MB)  ______
  1811.             5.25" HD (1.2 MB)  ______
  1812.             5.25" DD (360 KB)  ______
  1813.  
  1814.       Send this form with the amount indicated to the author:
  1815.  
  1816.                                Phillip H. Sherrod
  1817.                                4410 Gerald Place
  1818.                          Nashville, TN  37205-3806 USA
  1819.  
  1820.                             615-292-2881 (evenings)
  1821.                              CompuServe: 76166,2640
  1822.                       Internet: 76166.2640@compuserve.com
  1823.  
  1824.       Index                                                             34
  1825.  
  1826.  
  1827.       ASP, 29                             HANG command, 12, 21
  1828.       Between line commands, 3, 20        Headers, 10
  1829.       Blank lines, 15                        lines above, 26
  1830.       BLBP command, 16, 23                   lines below, 27
  1831.       BLCMD command, 3, 20                   page number, 24, 25
  1832.       Bullet character, 14, 25               style of, 10, 25
  1833.       Bullet position, 14                 HLn command, 6, 21
  1834.       Cappannari, Dan, 28                 HXPN command, 10, 25
  1835.       CENTER command, 11, 20              HXTEXT command, 10, 25
  1836.          centering figures, 4             INCLUDE command, 2, 18, 21
  1837.       Centering text, 11                  INDENT command, 25
  1838.       CHAPHEAD command, 24                Index, 18
  1839.       CHAPTER command, 6, 20              Input File, 2
  1840.       Chapter keyword, 19                 Internet, 32
  1841.       Chapters, 6                         ITEM command, 13, 21
  1842.       Command syntax, 3                   JUSTIFY command, 8, 25
  1843.       CompuServe, 32                      LABEL command, 17, 21
  1844.       Copyright notice, 28                Labels, 17
  1845.       Cross references, 17                LE command, 13, 21
  1846.       Curve fitting, 30                   LENGTH command, 6, 22
  1847.       DESCRIPTION command, 13, 14,        LIST command, 13, 22
  1848.                20                         Lists, 13
  1849.       DESC_IN1 command, 14, 24               Description, 14
  1850.       DESC_INX command, 14, 24               Numbered, 14
  1851.       Disclaimer, 29                         Regular, 13
  1852.       Double sided printing, 13, 20       LIST_BULCHR command, 14, 25
  1853.       DOUBLESIDED command, 13             LIST_BULPOS command, 14, 25
  1854.       DPMI support, 31                    LIST_IN1 command, 12, 14, 25
  1855.       DSIDE command, 20                   LIST_INX command, 12, 14, 26
  1856.       DSIDED command, 13                  LIST_NUMPOS command, 26
  1857.       Ejecting pages, 15                  LMARGIN command, 6, 22
  1858.       ENDCENTER command, 11, 21           LMEXTRA command, 8, 12, 26
  1859.       ENDDESCRIPTION command, 13          LMFIRST command, 12, 26
  1860.       ENDFIGURE command, 21               Margins, 12
  1861.       ENDLIST command, 13, 21             Mathplot, 30
  1862.       ENDVERBATIM command, 21             MLOP command, 16, 26
  1863.       F1PN command, 10, 24                Mode
  1864.       F1TEXT command, 10, 24                 figure, 4
  1865.       FIGURE command, 4, 21                  text, 4
  1866.       Figure mode, 4                         verbatim, 5
  1867.       File                                Multi-user operating system,
  1868.          Input, 2                                  31
  1869.       FINDENT command, 24                 NEED command, 16, 22
  1870.       Flush right margin, 25              Networking, 31
  1871.       Footer, 10                          NLAF command, 10, 26
  1872.       Footers                             NLAH command, 10, 26
  1873.          lines above, 26                  NLAHL command, 9, 26
  1874.          page number, 24                  NLBH command, 10, 27
  1875.          style of, 10, 24                 NLIST command, 14, 22
  1876.       Foreign language support, 19        NLIST_NUMPOS command, 14
  1877.       FSPACE command, 16, 21              NOJUSTIFY command, 25
  1878.       FXPN command, 10, 24                Nonlin, 30
  1879.       FXTEXT command, 10, 24              Nonlinear regression, 30
  1880.       H1PN command, 10, 24                Numbered lists, 14
  1881.       H1TEXT command, 10, 25              Order form, 33
  1882.  
  1883.       Index                                                             35
  1884.  
  1885.  
  1886.       PAGE command, 16, 22
  1887.       Page Layout, 6, 12, 15
  1888.       Page number
  1889.          in footer, 24
  1890.          in header, 24, 25
  1891.          style codes, 10
  1892.       PAGEREF command, 17, 23
  1893.       Ragged right margin, 25
  1894.       REF command, 17, 23
  1895.       Registering DPS, 28
  1896.       Registration form, 33
  1897.       Regression analysis, 30
  1898.       RMARGIN command, 6, 22
  1899.       S&H Computer Systems, Inc.,
  1900.                32
  1901.       SCENTER command, 11, 22
  1902.       Sections, 6
  1903.          blank lines between, 26
  1904.          minimum lines remaining,
  1905.             15, 27
  1906.       Sherrod, Phillip H., 28
  1907.       SLMLOP command, 15, 27
  1908.       SPACE command, 16, 22
  1909.       SQUEEZE command, 12, 22
  1910.       STYLE command, 22
  1911.       Styles, 8
  1912.       Table of contents, 17
  1913.       TCP/IP, 31
  1914.       Text mode, 4
  1915.       TOC command, 17, 22
  1916.       TSX-32, 31
  1917.       TSX-Lite, 31
  1918.       VERBATIM command, 5, 22
  1919.       Verbatim mode, 5
  1920.       Warranty, 29
  1921.       WIDTH command, 6, 23
  1922.       Within line commands, 3, 23
  1923.       WLCMD command, 4, 23
  1924.       WORDCHAPTER command, 19, 23
  1925.       WORDINDEX command, 19, 23
  1926.       WORDTOC command, 19, 23
  1927.       X command, 18, 23
  1928.