home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / PROGRAMS / WSTAR / WSHEAD.TXT < prev    next >
Text File  |  2000-06-30  |  8KB  |  137 lines

  1. FROM HEAD TO FOOT
  2. by Richard S. Williams, PAKUP, October 1986
  3.  
  4. (Tips on using headers and footers with WordStar)
  5.  
  6. When using NewWord or WordStar, you have the option of putting in
  7. headers (repeated lines at the top of each page) or footers
  8. (repeated lines at the bottom).  Both programs assume that you
  9. want a footer consisting of a page number centered at the bottom
  10. of the page.  In fact, I want no such thing, and neither does
  11. anyone else I know.  When I first got my computer, I spent a
  12. whole day in growing anger at MicroPro before I finally decoded
  13. the manual enough to learn how to turn the default page number
  14. off!  This column will deal with a few tips in using your headers
  15. and footers.  Some of the information is in the manuals that you
  16. have been using to press stamps or prop up your Kaypro, but much
  17. has been painstakingly discovered by trial and error.
  18.  
  19. The page number:  If you generally don't want page numbers at the
  20. bottom of EVERY page including a one-page memo to Mom, the best
  21. thing to do is to change the default by using WINSTALL (for WS)
  22. or NWINSTAL (for NW).  This is a very straightforward thing to
  23. do.  Just get into the proper program and change it.  If you
  24. usually want the page number to print at the bottom, but want to
  25. turn it off sometimes, you can use the dot command .op (omit page
  26. number) or .fo to do so.  When doing the latter, you are
  27. replacing the default footer with a "blank" footer, so you must
  28. type a couple of spaces (I use a tab).  Note that the two
  29. operations have different effects.  If you use .op, then the
  30. "restore page number" command [.pn] restores the unwanted default
  31. number in the footer as well as the desired number in the header
  32. (you can avoid this with another .op on a line after the .pn). 
  33. If you use the .fo command, however, the default number will not
  34. return unless you use the .pg command (see below).
  35.  
  36. There are three dot commands that work specifically with the 
  37. default page number.  .pc X [where X is a number you choose] puts
  38. the default page number in column X.  .op turns the default page
  39. number off.  .pg turns the default page number back on.  .pn X
  40. [where X is a number you choose] sets the page number (default or
  41. otherwise) to the number you select.  For more on this command,
  42. see below.  Remember that .pc and .pg have no effect on any but
  43. default page numbers, but .pn works on both default and other
  44. header/footer numbers.
  45.  
  46. To insert a page number elsewhere, you have to put it in.  The
  47. character # serves as the place marker for the number that will
  48. increment on each page.  If you really do want the # to print
  49. (such as in page # 3) then put a backslash before it:  \#; if you
  50. want to print a backslash, type it twice: \\.  The WordStar
  51. manual says that you get the number by typing ^P before the #. 
  52. That will work, but so will the plain #.  You can, by the way
  53. have as many automatic page numbers in your header or footer as
  54. you want (although I cannot think of why one wouldn't be
  55. sufficient).
  56.  
  57. The tricky thing about page numbers is getting them on some pages
  58. but not on others.  The simple way to avoid the page number on
  59. page 1 is to disable the default page number (see above) and then
  60. type the header after the first line of page 1 but before the
  61. page break for page 2.  It is best to type any dot command on a
  62. line following a hard carriage return to prevent a paragraph
  63. reform from moving the period away from the first column.
  64.  
  65. Usually, page numbers begin with page one, but you can set the
  66. page number with the dot command .pn X.  This way, you can keep
  67. chapters in separate files, for instance, and print them with the
  68. page numbers in proper sequence.  You can also type in a title
  69. page and/or pages without numbers and then begin with the first
  70. page of text as page 1.  Typing .pn without a number restores a
  71. suppressed page number in WordStar.  The number will be whatever
  72. it would have if you had not suppressed the page number in the
  73. first place.  In NewWord, however, you must specify the page
  74. number you want.  Typing .pn alone produces page 0 (both the
  75. default and other page numbers are so affected).
  76.  
  77. Your headers and footers can be set up with boldface,
  78. underlining, and superscripts.  You can also change the pitch
  79. with the ^pa and ^pn control commands.  If you are using
  80. alternate pitch throughout your document (as I do to get elite
  81. type as in the newsletter) the pitch must be set for the
  82. header/footer as well as the text.  Many times I end up having to
  83. redo a page because I forgot to put the alternate pitch in the
  84. header.  By the way, spaces as well as characters are affected by
  85. pitch (the way I usually notice a pitch mistake is seeing the
  86. header print off the right hand edge of the page).
  87.  
  88. The character width dot command .cw that is in effect at the
  89. place where the header/footer is typed will control it throughout
  90. the document no matter what you do to the text.  This way, you
  91. can start out with a compressed header and print the text in
  92. larger type by changing the character width immediately
  93. afterward.
  94.  
  95. If you want headers or footers to print on opposite sides of the
  96. page on odd and even pages (the way this newsletter does its
  97. headings, or the way books have numbers in the upper or lower
  98. outside corner), you can do so quite easily with the ^pk command. 
  99. Any spaces that follow the ^pk will be ignored on odd pages but
  100. printed on even pages at print time.  If you are like me and use
  101. the alternate character pitch to get elite, then you must put the
  102. ^pa command in the header/footer before the ^pk command to get
  103. the header/footer on alternate corners.  Essentially, the ^pk
  104. must come immediately before a series of spaces in order to work.
  105.  
  106. Another tricky thing is getting the header/footer to line up with
  107. the right margin.  The best (most accurate) way to do this is to
  108. type the line starting at the left margin, backspace to the
  109. beginning and move the end of the line to the right margin by
  110. spacing it over.  Then go back to the beginning of the line and
  111. add the initial dot command and whatever control commands you
  112. want to work.  If you want to center the header/footer (as in a
  113. page number) it is best to do so in the same manner, using ^OC
  114. and then putting in the dot command.
  115.  
  116. You can also adjust the margin between the header/footer and the
  117. text by means of a dot command (or permanently change it with the
  118. installation program).  The factory set default is two blank
  119. spaces between the line and the text in both WS and NW.
  120.  
  121. A few words need to be said specifically about NewWord [note
  122. above the differences in the .pn command].  Because NW allows up
  123. to 3 header/footer lines without tricking the program (you can
  124. trick WS by sending a <CR> code to the header/footer line with a 
  125. user defined key--if anyone is interested in the procedure, I'll
  126. write about it in a later issue), the dot commands include
  127. indications for the line number.  You can use .he or .fo if you
  128. want just a single line, but you can also specify the line with  
  129. .h1, .h2, .h3 or .f1, .f2, .f3.  If you use the alternate pitch
  130. command ^pa, you need use it only once in a set of multi-line
  131. headers/footers, not in each line.
  132.  
  133. All this sounds more complicated than it really is.  Headers and
  134. footers are actually easy to use.  The complications arise
  135. because (like much else in WordStar and NewWord) there is so much
  136. flexibility built into the system.
  137.