home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / wset-os2.zip / Tutorial / 6_Headings_Contents.ws < prev    next >
Text File  |  2003-05-15  |  3KB  |  86 lines

  1.  
  2.    Lesson 6: Headings
  3.  
  4. .lh10
  5.  
  6. If a document has more than a few pages, it should be structured by headings ì
  7. of different heading levels. Write&Set has an easy-to-use heading and table of ì
  8. contents capability.
  9.  
  10.  
  11. Table of Contents
  12.  
  13. ..Here we insert the table of contents later
  14.  
  15.  
  16.  
  17.  
  18.  
  19. .pa
  20. .1
  21. How to enter a Heading in WSedit
  22.  
  23. Before typing a heading, simply enter the dot command ".1" for the first ì
  24. heading level, ".2" for the second heading level and so on. The paragraph ì
  25. following each of these dot commands is a heading. The heading ends by ì
  26. entering a hard return.
  27.  
  28. .2
  29. The color of Headings in WSedit
  30.  
  31. In WSedit (unformatted), the heading text is shown in green color.
  32.  
  33. .2
  34. The WSedit Contents Window
  35.  
  36. Select "Window - Show Contents" in the WSedit menu bar or press Ctrl-OC. You ì
  37. will see the table of contents of your document with decimal headings.
  38.  
  39. .1
  40. Formatting text containing headings
  41.  
  42. Execute WSformat, select this file and format this text. Look at the FMT file. ì
  43. You will see many new dot commands which were inserted by WSformat.
  44.  
  45. .2
  46. The Headings Template File
  47.  
  48. Select "Settings - Headings Template" from the WSformat menu bar. The file ì
  49. "Headings.ws" contains the dot commands which appear when formatting a text ì
  50. with headings. The dot commands refer to fonts, line height, and page breaks. ì
  51. You are allowed to modify this file.
  52.  
  53. .2
  54. Creating your own Headings Template File
  55.  
  56. You are encouraged to copy the file Headings.ws and to generate your own ì
  57. headings template file. You can embed this file by entering ".HF ì
  58. MyHeadings.ws" on top of your WS document. By default, "Headings.ws" is used.
  59.  
  60. You can create your heading file in the directory where your WS document ì
  61. resides or in the directory where WSformat resides. Or you can enter another ì
  62. arbitrary directory in the WSformat Settings Notebook, page "Program", ì
  63. "directories where files are located in".
  64.  
  65. .1
  66. Generating a Table of Contents
  67.  
  68. To create a table of contents, an FMT file has to exist already. After making ì
  69. final changes to your FMT file, simply select "Make" - "Contents". A TOC ì
  70. (Table Of Contents) file opens. This is a formatted file like an FMT file. Use ì
  71. the clipboard to copy the contents of the TOC file into your FMT file.
  72.  
  73. But remember: If you copy the table of contents in front of your text, the ì
  74. page numbers get changed and the page numbers in the table of contents are not ì
  75. correct any more. To avoid this problem, enter one or several ".PA" (page ì
  76. break) dot commands after the location where you want to insert the table of ì
  77. contents later.
  78.  
  79. The "Make" - "Contents" command does not refer to the ".1", ".2" commands. ì
  80. Only the FMT file is interpreted and not the WS file containing the ".1", ".2" ì
  81. commands. You can also use this command when you have entered headings ì
  82. manually, such as:
  83.  
  84. 3.1 This is also a heading
  85.  
  86.