home *** CD-ROM | disk | FTP | other *** search
/ Big Blue Disk 25 / bbd25.zip / IMPTUTR2.TXT < prev    next >
Text File  |  1988-04-15  |  7KB  |  214 lines

  1. .en     Enable formatting. Once enabled, it cannot be disabled.  If
  2. ..      this was not the first command in this file then EVERYTHING
  3. ..      would print.
  4. ..
  5. ..      *************
  6. ..
  7. ..      Note  - If you want to print a "literal" copy of your file,
  8. ..      don't use ImagePrint's formatting capabilities.  You do not
  9. ..      have  to  enable  formatting  to use ImagePrint's backslash
  10. ..      commands.
  11. ..
  12. ..      *************
  13. ..
  14. ..      The next command is the IMMEDIATE ACTION command. The comm-
  15. ..      and following the ".!!" goes into  effect  immediately.  We
  16. ..      use it here to select 12 characters per inch  (cpi).  If we
  17. ..      selected  12  cpi by placing the backslash command in front
  18. ..      the first text line,  the headers on the first  page  would
  19. ..      print at 10 cpi,  the default density,  because the headers
  20. ..      are printed before the main text section is analyzed.
  21. .!! \|
  22. ..   
  23. ..      No font backslash command is in this file,  so  the  entire
  24. ..      file will print using the default font, FONT0.
  25. ..
  26. ..      IMPTUTR2.TXT - IMAGEPRINT DEMONSTRATION FILE
  27. ..
  28. ..
  29. ..      This file demonstrates many the  ImagePrint  formatting and
  30. ..      backslash commands.  Type  "IMP80  IMPTUTR2.TXT" to see the
  31. ..      printed result. Some of the  dot formatting  commands shown
  32. ..      here don't  contribute to the format of the printed output,
  33. ..      e.g. setting a parameter to the default value. 
  34. ..
  35. ..      Backslash  commands  are used  without comment because they
  36. ..      are easy to understand and the best way to learn them is to
  37. ..      see them in use. "\-" is a soft hyphen.
  38. ..
  39. ..      Any line starting with a "." is  interpreted  as a command.
  40. ..      The "."  doesn't have to be in the 1st column,  but it does
  41. ..      have to be the first printable character on a line. The two
  42. ..      following lines are equivalent:
  43.         .PL 66
  44. .PL 66
  45. ..
  46. ..      
  47. ..      If the next printable character is another ".", the line is
  48. ..      ignored. This allows comments to appear in the source text,
  49. ..      but not be printed. This allows private notes, etc.
  50. ..
  51. ..      The two letter command can be separated  from  the  dot  in
  52. ..      column 1 by zero or more spaces. The variable parameter (if
  53. ..      one is needed) follows the  two  letter  command, separated
  54. ..      from  it by zero or more spaces. Each letter of the command
  55. ..      can be in upper or lower  case.  A comment  can  follow the 
  56. ..      variable parameter, separated from it by at least one space.
  57. ..      The following page length formatting commands are all equiv-
  58. ..      alent:
  59. ..
  60. .pl 60  comment - set page length to 60 lines
  61.      .  pl60
  62. .       PL      60      set page length to 60 lines
  63. .pl60
  64. .pL60
  65. ..
  66. ..
  67. .ww     Word Wrap -  enable left and right justification within the
  68. ..      left and right margins. This is the default state.
  69. ..
  70. ..
  71. .pl 66  Page Length is 66. This is the default value.
  72. ..
  73. ..
  74. .pn 1   Page Number = 1.  This is the default starting page number.
  75. ..      "&&" in  the header or  footer  strings  is replaced by the
  76. ..      current page number.
  77. ..
  78. ..
  79. .oe 5   Odd Extra -  Shift everything on odd pages 5 extra  columns
  80. ..      to the right.
  81. .ee -5  Even Extra -  Shift  everything  on even pages 5 columns to
  82. ..      the left.
  83. .oe     No extra spaces on odd pages.
  84. .ee     No extra spaces on even pages.
  85. ..
  86. ..
  87. .li 8   8 Lines per Inch (lpi). The default is 6 lpi.
  88. .li 6   Change  back  to  6  lpi.  Do not change the inter-line gap 
  89. ..      after you have started printing a document because the paper
  90. ..      alignment will  not  be correct.
  91. ..
  92. ..
  93. .sw 65  Set Width of headers and footers to 65  columns.  The  left
  94. ..      and  right  justification  and centering of the headers and
  95. ..      footers will occur within this range.
  96. ..
  97. ..
  98. ..      Odd page Headers
  99. .oh
  100. .oh...\bImagePrint formatting\b  \iPage &&\i
  101. .oh___________________________________________________________________________
  102. .oh
  103. .oh
  104. .oh
  105. ..
  106. ..      Even page Headers
  107. .eh
  108. .eh                   \iPage &&\i  \bImagePrint formatting\b...
  109. .eh___________________________________________________________________________
  110. .eh
  111. .eh
  112. .eh
  113. ..
  114. ..      Odd page Footers
  115. .of
  116. .of
  117. .of___________________________________________________________________________
  118. .of    ...format demonstration
  119. .of
  120. .of
  121. .of
  122. .of
  123. ..
  124. ..      Even page Footers
  125. .ef
  126. .ef
  127. .ef___________________________________________________________________________
  128. .ef                     format demonstration...
  129. .ef
  130. .ef
  131. .ef
  132. .ef
  133. ..
  134. ..
  135. .lm 5   Left Margin - Set the left margin to the 5th column.
  136. ..
  137. .rm 60  Right Margin - Set the right margin to the 60th column.
  138. ..
  139. ..
  140. .ce     CEnter the next line.  The cancel backslash command "\C" is
  141. ..      used to cancel the bold  (\B),  underline (\U)  and  double
  142. ..      width (\W) commands.
  143. ..
  144. \u\b\wImagePrint Demonstration\c
  145. .ce     CEnter the next line.
  146. \u\bDot Formatting and Backslash Commands\c
  147. ..
  148. ..
  149. .lf 2   Line Feed - Space down 2 lines.
  150. .ti 3   Temporary Indent of 3 from left margin.
  151. This is the demon\-str\-ation file for Image\-Print \udot\u
  152. \ufor\-mat\-ting\u and
  153. ..
  154. ..      Here are comment lines right in the middle of the text
  155. ..
  156. \uback\-slash\u com\-mands. This para\-graph is left and right jus\-ti\-fied
  157. be\-cause Word Wrap mode is en\-abled. It could be dis\-abled with the ".NW"
  158. no word wrap com\-mand.
  159. Each
  160. word
  161. of
  162. this
  163. sen\-tence
  164. was
  165. typed
  166. on
  167. a
  168. se\-par\-ate
  169. line.
  170. ..
  171. ..
  172. .fp     Force Printing of buffer.
  173. .pp     New paragraph
  174. ..
  175. .lm +15  Add 15 to the current Left Margin.
  176. ..
  177. Let's demon\-strate some of the back\-slash com\-mands:
  178. .lf
  179. \wThe\c \bquick\c \w\hbrown\c \ifox\c jumped  \^over\c  \b\ithe\c
  180. \wlazy\c \ucow\c. \i\uThe\c  \uquick\c  \bbrown\c  \h\ifox\c
  181. \i\bjumped\c \h\^over\c \i\b\wthe\c \vlazy\c \i\u\w\bcow\c.
  182. No\-tice that the space the back\-slash com\-mands take up in the file is
  183. ac\-count\-ed for when left and right jus\-ti\-fy\-ing text. The ex\-tra width
  184. gen\-er\-at\-ed by the doub\-le width com\-mand is al\-so ac\-count\-ed for.
  185. ..
  186. .lf
  187. .lm 5
  188. .rm -15
  189. The left mar\-gin has just been set back to the 5th co\-lumn and
  190. the right mar\-gin has moved left 15 co\-lumns. The line spac\-ing 
  191. .ls 2
  192. dis\-tance has just been changed to cause the text to be printed
  193. on every other line. If for\-mat\-ting has been en\-abled, Image\-Print feeds
  194. the paper to the top of the next page when the end-of-file is reached.
  195. ..
  196. .fp
  197. .ls     Single spaced lines again
  198. .rm +15
  199. ..
  200. This is the end of the IMPTUTR2.TXT file. Be sure to look at 
  201. IMPTUTR2.TXT with your word pro\-ces\-sor be\-cause there are a lot of 
  202. non-print\-ing com\-ments and ex\-plan\-ations con\-tained in it.
  203. ..
  204. .pa     Unconditionally  move  to  the next page. If the paper has
  205. ..      moved to the top of a new  page and no text has printed yet,
  206. ..      ".pa" will have no effect.
  207. ..
  208. ..
  209. ..      This is the end of the demonstration.  It was unnecessary
  210. ..      to force a page  feed  (".PA");  the paper  automatically
  211. ..      feeds to the top of the next page when ImagePrint finishes
  212. ..      if formatting had been enabled.
  213. 
  214.