home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / cpm / programs / list / ep-docs.ark / EPUSE.DOC < prev    next >
Encoding:
Text File  |  1988-05-21  |  19.1 KB  |  487 lines

  1. \space-caps 3
  2. \punctuation-factor 4
  3. \concatenate
  4. \justify
  5. \adjust 3/4"\llength 13/2"
  6. \*
  7. \font B:Memphis\font B:Stymie\f1
  8. \$kernpairs WAAWVAAVAYYATAATLTLV--fffffor.r,
  9. \attach
  10. \*
  11. \dot-character
  12. \use-braces        \* {..} will mark off a print mode
  13. \{\italic\emphasized\}    \* and make that mode italic & emphasized
  14. \bold            \* Add a little space after emphasized char's
  15.  
  16. \* the title
  17. \center\{\tall\expanded\emphasized Using EP}
  18.  
  19. \paragraph-indent 3
  20. \paragraph-spacing 0
  21.  
  22. \* Define some convenient macros:
  23.  
  24. \* s - Section headings
  25. \s$ \pp\skip\undent 3\up-case\$\uc0 .  \.
  26.  
  27. \* h - Major headings
  28. \h$ \skip 2\char-height +2p\center\tall{\$}\char-height -1p\skip
  29.  
  30. \* x - Start a text example
  31. \x$ \sk 6p\co0\ju0\use-brc0\cw 20.\f2\ec #
  32. \* z - End a text example
  33. \z$ #ec \\sk 6p\co\ju\f1\use-braces\{\italic\emphasized\}\cw0
  34.  
  35. \* u - Do line in upper case
  36. \u$ \uc\$\uc0\.
  37.  
  38.  
  39.  
  40. \s Getting started
  41. Use your editor to make a text file, add some EP commands, and have
  42. EP print it.
  43. All the lines in the file should start clear at the left of the
  44. screen, except where you want a new paragraph to start -- then add
  45. some spaces at the beginning.
  46. An empty line will also start a new paragraph.
  47.  
  48. A typical set of EP commands to put at the beginning of your file would
  49. be:
  50. \x
  51. \    adjust        1"
  52. \    line-length    6"
  53. \concatenate        \justify
  54. \    font        Times-Roman
  55. #z
  56. Then, to get the printout, tell \u cpm:
  57.     A>ep trial.txt
  58. \br or whatever, depending on what name you gave the file.
  59.  
  60. Well, that's it.
  61. Now here is an explanation of what those commands accomplish.
  62. The {adjust} command sets the left margin in 1 inch to the right
  63. of the left-most position of the Epson's print-head.
  64. This is going to be a little more than 1 inch from the left edge of
  65. the paper, probably by 1/4 of an inch.
  66. The {line-length} command sets the length for lines, and implicitly
  67. sets the right margin to the position 6 inches to the right of the
  68. left margin.
  69. So you should get an inch and a quarter of white space at the left
  70. and the right of 8 1/2 inch wide paper.
  71.  
  72. {Concatenate} requests EP to reform paragraphs by moving words up
  73. from lower lines so as to put as many words as possible into each
  74. printed line.
  75. {Justify} gets you right justification; without the justify command
  76. you'd get ragged right.
  77.  
  78. Finally, the {font} command asks to use the font whose character
  79. shapes are stored in the disk file
  80. \u {timeroma.fn2},
  81. which must be
  82. present on the disk in the default drive for the command to work.
  83. You'll notice some disparity between the name given after {font}
  84. and the actual name of the disk file.
  85. EP does some abbreviation here.
  86. If this makes you uncomfortable, you can always use the real
  87. file name by giving the command as
  88.     \\font \u timeroma.fn2
  89. \br if you like.
  90.  
  91. If you actually printed something out, you'll have noticed that
  92. a top and bottom margin was left on each page, and page numbers
  93. were put in the bottom margins.
  94. EP set the top and bottom margins at 1 inch each, and \it{assumed}
  95. that you started printing with the printhead at the top margin.
  96. If you did, then the margins should indeed be one inch.
  97.  
  98.  
  99. \s Another style
  100. Perhaps it's premature here to talk about alternate ways of doing things,
  101. but all the same, if you've used other formatting programs, the following
  102. alternative way of giving the above sample set of commands may seem
  103. more familiar:
  104. \x
  105. .LM 10
  106. .LL 60
  107. .FI
  108. .JU
  109. .FO timeroma
  110. #z
  111. These commands have exactly the same effect as the earlier ones,
  112. and there is a mechanical relationship between the two styles
  113. (which will be described a little later).
  114.  
  115.  
  116. \s At the console
  117. As the formatting and printing proceeds, an approximation of what
  118. is being printed is displayed on the console screen.
  119. It's a very rough approximation, with the ends of lines truncated and
  120. other crudities, so please don't think the print will look as bad as this.
  121. It does give an idea of where you are in the input file, and
  122. sometimes you may wish to let EP have a go at the file without actually
  123. printing it, to catch major formatting errors.
  124. Depending on how your printing interface is set up, just turning off
  125. the printer might work for this, but if this makes your system ``hang''
  126. you can temporarily insert into the file a command {\\beginning-page 10000}
  127. to prevent printing.
  128.  
  129. EP is a batching program -- not interactive.
  130. It does however understand the usual CPM
  131. conventions: ^S for ``wait 'til I hit another key'',
  132. and ^C for ``quit, abort, return to the system''.
  133. There are also commands available to build in to your
  134. text some user interaction.
  135. See the {put-terminal} and {get-terminal} commands described in EPREF.DOC.
  136.  
  137.  
  138.  
  139.  
  140.  
  141. \h Implicit Commands
  142.  
  143. There are several ways to get the effects of EP commands without having
  144. them in the text.
  145. This can make the preparation of documents a little less trying,
  146. and the text file will be easier to read and modify if it's not
  147. cluttered up with formatting commands.
  148.  
  149. \s Leading blanks
  150. A space character or a tab at the beginning of an input text line is
  151. a ``leading blank''.
  152. A leading blank causes a break, and a break finishes a paragraph.
  153. When {concatenation} (or {fill}) is turned on, a break causes the next
  154. word to be put on a new output line, and when {justification} is
  155. turned on, the last line is considered to be the last line of a paragraph
  156. and so is not justified.
  157. An explicit command {break} does this too, but you will seldom need
  158. to resort to this.
  159.  
  160. Another special convention associated with leading blanks is this:
  161. each leading blank space indents the following text by one column,
  162. i.e. 1/10 of an inch.
  163. What's so special about that?
  164. Well, when you're using proportionally spaced fonts, the width of
  165. a space will not usually be 1/10" and will differ from font to font.
  166. But it is convenient to use blanks to indent paragraphs or examples
  167. and be able to count on getting the same indentation no matter what
  168. font happens to be in use.
  169. The explicit command for this is {indent-line.}
  170.  
  171. \s Tabs
  172. For many CPM editors, a tab character means: advance to the next
  173. column which is divisible by 8, i.e. the next tab stop.
  174. This is also EP's understanding.
  175. For instance, if you start a line with a tab, then the following
  176. text is indented by 8/10 of an inch in the printout.
  177. However, there is a little problem here about what ``next'' should
  178. mean in the above statement.
  179. Proportionally spaced characters are on the average less than 1/10"
  180. wide, so you could be past a tab stop on the screen when you are
  181. editing the file, but not past it so far as the printout goes.
  182. So that you will be able to predict what effect a tab will have,
  183. EP looks at it from your viewpoint.
  184. If you used three tabs interspersed with text, for example,
  185. to get over to the 24th column
  186. on the screen, then the text after the third tab will be printed starting
  187. at the 24th column, also.
  188. That is, it will start 2.4 inches in from the left margin, as established
  189. by the {left-margin} command.
  190.  
  191. Now here is an additional note about leading blanks.
  192. Space characters after a tab count as ``leading'', so each moves you over
  193. 1/10" in the printout regardless of the font you're using.
  194. To extend the above example, you could get to column 26 by putting
  195. two spaces after the third tab.
  196.  
  197. This method of using tabs for columnar alignment will not necessarily
  198. give the most pleasing results, and EP provides several alternatives,
  199. however they are all more trouble to use.
  200. And note that the tab character referred to in the preceding discussion
  201. is a real tab -- a control-I in the input text file.
  202. If you use WordStar in ``document'' mode, the tab key does not give
  203. a tab character, but just some spaces, and EP will have no means of
  204. telling that a tab was intended.
  205.  
  206. \s Blank lines
  207. A line with nothing on it in the input text file is a signal for EP
  208. to start a new paragraph.
  209. Ordinarily this means ending the last paragraph (i.e. a blank line causes
  210. a break) and skipping down one line in the printout.
  211. A line ``with nothing on it'' here means one that appears empty when
  212. you are editing.
  213. It could have spaces or tabs on it, but it still counts as blank.
  214.  
  215. At the cost of a few introductory commands, other actions can be
  216. triggered by blank lines.
  217. See the section on Paragraphs in EPREF.DOC.
  218. ``{Hanging-indent}'' is especially useful for formatting bibliographies. 
  219.  
  220. \s Braces
  221. The left and right braces are usually just printed, but if you choose,
  222. you can set things up so that braces have a special significance.
  223. This is useful for the common situation where a document requires only
  224. two fonts or print modes, primarily.
  225. Say you just want some words or phrases in italic, and you don't need
  226. to print any braces.
  227. Then braces can be used to enclose the italic portions of text
  228. after you've inserted the following two commands:
  229. \x
  230. \use-braces
  231. \{\italic\}
  232. #z
  233. This associates the italic mode with braces.
  234. Now braces will not be printed, but instead a left brace will turn
  235. on italicization and a right brace will turn it off.
  236. By following a similar procedure, any font together with any
  237. combination of print modes can be associated with braces.
  238.  
  239. \s Control characters
  240. An economical way of issuing a whole set of EP commands which must
  241. often be used together is to define a macro command.
  242. In turn, macro commands can be associated with any of those control
  243. characters that are not required for some other use (like CR, e.g.).
  244. Without going into detail at this point on the use of macros, I
  245. will just give an example which defines ^U as an underline toggle.
  246. Since other printing programs sometimes use ^U this way, you might
  247. be able to save yourself the trouble of a lot of reediting of old
  248. text files which assume such a convention.
  249. \x
  250. \u$ \xu+\if xu>1 {\xu 0}\under-line = xu\.
  251. #z
  252. Bolding, alternate character spacing, and so on, could be handled
  253. similarly.
  254.  
  255.  
  256. \h Syntax of Commands
  257.  
  258. An embedded command consists of an escape character, followed by a
  259. command ``word'', and then, in some cases, a numerical argument or
  260. text enclosed in braces.
  261. Spaces and tabs after `\\', after the command word or a numerical
  262. argument are not printed.
  263. The escape character is either a dot `.' at the very beginning of a line, 
  264. or else a backslash `\\', which can occur anywhere in the line.
  265.  
  266. A command word is either one or two characters long, and in most
  267. cases the character are both alphabetic letters (where the `$' counts
  268. as alphabetic).
  269. When this is so, it doesn't matter whether the letters are 
  270. upper or lower case, and the command word can
  271. alternatively be written in a long form, in
  272. which the above two letters are the first two of the word, or the
  273. first letters of each part of a compound word.
  274. E.g., the following all have the same effect:
  275. \x
  276. \pl 11"
  277. \PLENGTH 11"
  278. \page-length 11"
  279. \Piranha-logo 11"
  280. #z
  281.  
  282. \s The \\font command
  283. This command has as its argument the name of a file which has letter font data.
  284. At most the first 8 characters of the name are used, and the
  285. file extension is supplied.
  286. The following would both load in the data of the disk file
  287. CRAWMODE.FN2:
  288. \x
  289. \fo crawmode
  290. \font CrawModern
  291. #z
  292. For easier reading, compound names can be used for fonts.
  293. In this case the actual filename will be made up of letters taken
  294. from each part of the compound. Expressed schematically, the rule
  295. is (4_to 8)-(2_to 4)-(1_to 2)_...-1, meaning that for the first
  296. part, the beginning letters to a maximum of 4 are extracted or,
  297. if there is no subsequent part to the compound, to a maximum of 8,
  298. and so on.
  299. Here are some examples:
  300.     Venus-Bold
  301.      refers to file VENUBOLD.FN2
  302.     Venus-Title
  303.      refers to file VENUTITL.FN2
  304.     Venus-Bold-Title
  305.      refers to file VENUBOTI.FN2
  306.     Venus-Bold-Condensed-Title
  307.      would refer to file VENUBOCT.FN2
  308.     Venus-Bold-Extra-Condensed-Title
  309.      would refer to file VENUBOET.FN2
  310.  
  311. After the name may come, optionally, braces surrounding text
  312. that is to be printed using the named font, following which
  313. the font previously in use will be restored.
  314.  
  315. Instead of the name of a font, a number can be used.
  316. Number 0 refers to the Epson built-in font, and 1-7 refer to
  317. previously referenced letter fonts, in the order in which
  318. they were referred to. 
  319.  
  320. Although any number of fonts may be used in a document,
  321. if more than 7 are used, one must take special care, since
  322. EP sees all those after the 6th
  323. as having the same number, \italic {viz.} 7.
  324. Since the font of a character is internally encoded by number,
  325. when it is time to print an output line,
  326. the last font referenced after the 6th is used for all ``number 7''
  327. characters.
  328. A consequence of this is that characters from the 7th and 8th fonts, e.g.,
  329. can not be together on the same output line.
  330.  
  331. The order in which fonts are referred to also has significance
  332. in case a letter font file does not have definitions for all
  333. characters (you might want a set of superscript numbers
  334. or swash capitals, for instance).
  335. When EP finds that a character is undefined,
  336. it searches lower numbered fonts for a character to replace it.
  337.  
  338. \s Numeric Arguments
  339. Many EP commands have a numeric argument.
  340. E.g. {\\line-length 60} sets the line length to a value of 60.
  341. But 60 what?
  342. Since the widths of characters differ from each other
  343. and also differ from font to font,
  344. and not all commands refer to widths,
  345. the conventions for interpreting numbers 
  346. after commands have to be somewhat involved.
  347. In this particular case, the `60' would mean 60 columns,
  348. where a column is reckoned to be 1/10 of an inch, thus, 6 inches.
  349. In the case of other commands, such as `{\\font}' 
  350. which selects a letter font by number,
  351. a similar interpretation would not be appropriate.
  352.  
  353. So here are the conventions used.
  354. Numeric arguments are interpreted in one of four different ways,
  355. and in the list of commands given in EPREF,
  356. these interpretations are symbolized by `n', `b', `h', `v'.
  357. The `n' means ``plain old number'', as for example 
  358. the number of a letter font after `{\\font}'.
  359. The `b' means Boolean; i.e. an ``on'' versus ``off'' value.
  360. For the Boolean arguments, `0' means ``off'' and `1' means ``on''.
  361. Whenever a command takes a numerical argument but none is given,
  362. the value `1' is assumed.
  363.  
  364. The `h' and `v' mean ``horizontal measure'' and ``vertical measure'', 
  365. respectively.
  366. There is a choice about how to give these measures -- 
  367. they can be given in terms of dots, points, inches, columns, or lines.
  368. Unless the number is followed by a special symbol, columns is assumed
  369. for horizontal measures and lines for vertical measures.
  370. If the number is followed by a dot `.', this means ``dots'';
  371. `p' or `P' means points;
  372. double-quote `"' means ``inches''.
  373. So {\\ad 2"} would mean
  374. ``set the adjust value (the left margin) to 2 inches''.
  375. The measures are related to one another in the following ways:
  376.     1 point    =  3 dots,
  377.     1 column    =  8 points,
  378.     1 inch    = 10 columns as a horizontal measure, but
  379.     1 inch    = 72 points as a vertical measure.
  380. \br
  381. Thus, a horizontal dot is 1/240th of an inch,
  382. which corresponds to 
  383. the maximum horizontal dot-density on the FX-80, and a vertical dot is 
  384. 1/216th of an inch, which corresponds to the maximum vertical dot-density.
  385.  
  386. The height of a line is the character height plus the space left
  387. between lines -- the `leading'.
  388. The letter font characters are 8 points high unless the `{\\character-height}'
  389. command has been used to assign a different nominal value.
  390. When {character-height} has its default value of 8 points,
  391. the height of a line is this 8 points plus the leading, however 
  392. that has been set using the `{\\leading}' command (the default is 2 points, 
  393. giving a line height of 10 points).
  394.  
  395.  
  396.  
  397. \h Multiple Columns
  398.  
  399. The multiple column facility is probably not usable for running
  400. text without the use of the preprocessing program EPMC.
  401. It may be of direct use for some simple charts.
  402.  
  403. Here are the commands for a little 3 column figure:
  404. \x
  405. \    center    Horse-Kick Deaths
  406. \skip
  407. \    gutter            4
  408. \    numberof-columns    3
  409. Year 1862    \break        21\break    0.15 %
  410. Years 1863-65\break        85\break    0.18 %
  411. Year 1866    \break         8\break    0.03 %
  412. \    numberof-columns    1
  413. \skip
  414. \    center    figure 12.
  415. #z
  416. In printing the above, the line is split into 3 equal width columns
  417. separated by 4/10" of white space, a ``gutter''.
  418. There is no method provided for selecting the positions or widths
  419. of the columns independently of one another, although some adjustments
  420. can be made using the {indent} command (see below).
  421. In general,
  422. after setting the {gutter} width between columns, multiple
  423. column printing begins when the number of columns is set to
  424. some value greater than 1 and ends when it is set to a value less
  425. than 2 (\it{i.e.,} 0 and 1 are equivalent).
  426.  
  427. In multiple column mode, when EP comes to what would ordinarily be
  428. a new output line, the line is instead placed in the next column.
  429. Until, that is, each column is filled and it is time to start a new line.
  430. EP cannot do concatenation in multiple column mode.
  431. Unless you use {break} commands, as I did in the above example,
  432. each line of each column will correspond to an input line with some
  433. printable text on it (i.e. not consisting entirely of commands).
  434. It is convenient to split up the input lines with {break}'s,
  435. because if you don't, then what reads
  436. downward in the text file will read across the columns.
  437. (The preprocessor EPMC allows concatenation and changes things so
  438. that text will read down the columns.)
  439.  
  440. During multiple column formatting, the sense of some commands is
  441. reoriented toward the output column.
  442. To illustrate, I will repeat the above example in a slightly
  443. elaborated form.
  444. \x
  445. \center Horse-Kick Deaths
  446. \skip
  447. \gutter 4
  448. \{
  449. \numberof-columns 3
  450. \emphasized
  451. \ce Year 1862    \break\ra    21\in 32p\ital\. 0.15 %
  452. \ce Years 1863-65\break\ra    85\break    0.18 %
  453. \ce Year 1866    \break\ra     8\break    0.03 %
  454. \numberof-columns 1
  455. }\in 0
  456. \skip
  457. \center figure 12.
  458. #z
  459. Now, due to the {center} commands, the entries in the first column
  460. will be centered \ital{within this column.}
  461. In the second column, the numbers will be right adjusted to the end
  462. of their own column, and in the third column, each percentage is
  463. moved over 32 points from where the column starts by the {indent}
  464. command. The {indent} affects only the third column.
  465.  
  466. The two print mode commands in the example affect only a single column.
  467. Since the {emphasized} command was encountered when EP was processing
  468. text destined for the first column, this entire column will be emphasized,
  469. but the other two columns will be unaffected.
  470. Similarly, the material in the third column will be italicized,
  471. but not that in the first two columns.
  472. The print mode commands and the {indent} command will
  473. affect following single-column text -- their effect is local
  474. to a column but not local to multiple column mode.
  475. This is the reason for the `{\\\(123)}' and the `{\\in 0}' in the example.
  476.  
  477. The commands that behave this way in multiple column mode are
  478. the Line Format commands {justify, center, right-adjust, co-lumn,}
  479. indentation commands, and all print mode commands.
  480. {Ta-b} commands work relative to the beginning of a column, but
  481. there is only one set of tab stops for all the columns.
  482. Text blocks, also, run up and down the columns.
  483.  
  484. Commands that change the height of characters or the space between
  485. lines will affect all columns, since EP prints an entire row of
  486. columns at once.
  487.