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

  1.  
  2. Lesson 4: Returns and Indentations
  3.  
  4.  
  5. Rightmost column
  6.  
  7. Look at the rightmost column of WSedit (unformatted). The rightmost column ì
  8. shows different colors.
  9.  
  10. ..this is a comment line!
  11. - Lines beginning with two dots (comment lines)
  12. .lh10
  13. - Lines beginning with a single dot (dot commands)
  14. - Lines with a Hard Return at the end
  15. - Lines with a Soft Return at the end.
  16.  
  17. A hard return (dark blue) is the end of a line where you have entered Return ì
  18. manually from the keyboard. Unless it is manually removed, this Return will ì
  19. exist even if the formatting is changed. A soft return (light blue) is the end ì
  20. of a line as determined by the formatting. If you change the window size of ì
  21. WSedit and you edit an unformatted file, the editor will insert soft returns ì
  22. to conform to the formatting. In the "special functions" menubar item, you ì
  23. will find commands where you can transform text with soft returns into text ì
  24. with hard returns and the reverse.
  25.  
  26.  
  27. Indentations
  28.  
  29. Users of WinWord-like programs often have problems with indentations. In ì
  30. Write&Set, indenting is quite easy and handy.
  31.  
  32. One useful capability is to set tabulator stops. For example, tabulator stops ì
  33. at columns 6, 9, and 12 would be established by
  34.  
  35. .TB 6,9,12
  36.  
  37. The default value is .TB 4 (i.e., a tabulator stop at column 4).
  38.  
  39. áááááááááááThis is a text indented to column 12. Because the third tabulator ì
  40. áááááááááááis set to column 12, I had to type the tabulator key three times ì
  41. áááááááááááfor this indentation. I have named the characters which occurs when ì
  42. áááááááááááusing the tabulator key "snow characters". These characters are ì
  43. ááááááááááánormal characters which can be deleted or inserted manually. You ì
  44. ááááááááááácan press Ctrl-I to get a single snow character.
  45.  
  46.  
  47. (1) áThis is another sample. The expression (1) is not indented, but all text ì
  48. áááááfollowing (1) will be inserted to column 6. The insertion remains until ì
  49. áááááyou type a hard return.
  50. áááááa)áThis is a subentry in this text list. Here, I have written more text ì
  51. ááááááááso you can see that the next line is indented, too.
  52.  
  53. .pm8
  54. .lm6
  55. Automatic indentation can be established by changing the left margin, using ì
  56. the .LM (left margin) and .PM (paragraph margin) dot commands. You will ì
  57. see the effect of this command in the formatted file. In WSedit (unformatted), ì
  58. you won't see the "automatic indentation".
  59.  
  60. The "paragraph margin" affects the first line of a paragraph, and the "left ì
  61. margin" affects the other lines. If you enter only a value for the "left ì
  62. margin", it affects all lines in a paragraph.
  63.  
  64. ..now we disable "automatic indentation"
  65. .pm0
  66. .lm0
  67. Reformatting
  68.  
  69. If you want to alter the indentation, then modify the ".TB" command. To test ì
  70. it, modify the ".TB" command above to ".TB 8,10,15".
  71.  
  72. Nothing happens. Place the cursor on the line where snow characters are ì
  73. located and select special functions - format paragraph or simply press ì
  74. Ctrl-B. Now the modified ".TB" command takes effect.
  75.  
  76. Another possibility for modifying indented paragraphs is to delete or insert ì
  77. "snow characters" in the first line of the paragraph. If you don't press ì
  78. Ctrl-B, the indentation won't be modified.
  79.  
  80.