.bp
.ds F3
.ds H1  ~
.ds Hl MP119
.ds Hr Introduction to UNIX
.ds F1
.ll 65
.nf
.ds F1
.sp 15
		       INTRODUCTION TO UNIX
.sp 1.0i
       uu         uu        nn       nn    iii     ttttttttt
       uu         uu        nnn      nn    iii        ttt
       uu         uu        nn n     nn    iii        ttt
       uu         uu        nn  n    nn    iii        ttt
       uu         uu        nn   n   nn    iii        ttt
       uu         uu        nn    n  nn    iii        ttt
       uuuuuuuuuuuuu        nn     nnn     iii        ttt


			 iiiiiiiiiiiiiiiii
			    iii iii iii
			    iii iii iii
			    iii iii iii
			    iii iii iii
			 iiiiiiiiiiiiiiiii


.ti 12
(Unix Text Editor, Nroff, and Text Formatting)
.sp 2.0i
					     Mildred M. Ware
.br
					     September, 1978
.bp 1
.af % i
.ds F1 - % -
.ds Fd
.ds F3
.ds H1  ~
.ds Hl MP119
.ds Hr Introduction to UNIX
.PH "~~~~~~~~~~~~~~~TABLE~OF~CONTENTS" 5 2 2 3


.PH "~~~~~~~~~~~~~~~~~~Unit III"


A. Introduction to Unit III___________________________ 1
   Objectives for Unit III____________________________ 2

B. Module I_____Text Editing

   Objectives_________________________________________ 3
   1. Unix Text Editor________________________________ 4
   2. Ed command______________________________________ 4
   3. Append command__________________________________ 5
   4. Write command___________________________________ 5
   5. Creating a file_________________________________ 6
   6. Quit command____________________________________ 7
   7. Error messages__________________________________ 7
   8. Displaying the file_____________________________ 8
   9. Modifying the file______________________________ 9
  10. Substitute command______________________________ 9
  11. Context searching_______________________________ 13
  12. Backward search ________________________________ 15
  13. Delete command__________________________________ 16
  14. Change command__________________________________ 16
  15. Insert command__________________________________ 17
      Advanced Features:
  16. Append command__________________________________ 19
  17. Write command___________________________________ 19
  18. Move command____________________________________ 20
  19. Edit command____________________________________ 21
  20. File command____________________________________ 23
  21. Read command____________________________________ 23
  22. Global command__________________________________ 26
  23. "V" command_____________________________________ 27
  24. Special characters______________________________ 27
      a. The Circumflex________________________________28
      b. The Dollar Sign_______________________________28
      c. The I Don't Care Character____________________29
      d. The Repetition Character______________________30
      e. Character Classes_____________________________30
      f. The Line Repeat Character_____________________31
      g. The Backslash Character_______________________32
  25. Summary of commands_____________________________ 35
  26. Module I Test___________________________________ 36
  27. Answers to Module I test________________________ 37

C. Module II----NROFF
   Objectives_________________________________________ 40
   Introduction to Nroff______________________________ 41
   1. Nroff commands__________________________________ 42
   2. Page control formatting_________________________ 43
   3. Text placement control__________________________ 46
   4. Adjusting output lines__________________________ 48
   5. Vertical spacing________________________________ 49
   6. Setting line lengths____________________________ 53
   7. Indenting_______________________________________ 54
   8. Macros__________________________________________ 55
   9. Arguments_______________________________________ 56
  10. Character strings_______________________________ 58
  11. Underlining_____________________________________ 61
  12. Generating titles_______________________________ 62
  13. Numbering pages_________________________________ 63
  14. Displaying the current date_____________________ 63
  15. Character translation___________________________ 64
  16. Defining tabs___________________________________ 65
  17. Summary of commands_____________________________ 68
  18. Module II Test__________________________________ 71
  19. Answers to Module II test_______________________ 73

D. Module III---- Additional formatting techniques
   Objectives_________________________________________ 75
   Introduction to "NM MACROS"________________________ 76
   1. Headers_________________________________________ 76
   2. Footers_________________________________________ 77
   3. Generating classifications______________________ 78
   4. Underlining_____________________________________ 79
   5. Paragraph formation_____________________________ 80
   6. Paragraph headings______________________________ 81
   7. Outline style paragraph headings________________ 84
   8. Table of contents_______________________________ 85
   9. Forming outlines________________________________ 85
  10. Bullet marked items_____________________________ 90
  11. Word hyphenation________________________________ 90
  12. Annotating files________________________________ 92
  13. Module III Test_________________________________ 93
  14. Answers to Module III test______________________ 95
  15. Summary of "NM MACROS"__________________________ 97
  16. Unit III Proficiency Test_______________________ 98
.bp 1
.af % 1
.fi
.ad n
.fi
.ad n
.PH "~~~~~~~~~~~~~~~~UNIT~III~--~TEXT EDITING" 5 2 2 3
.PP 5
This Unit discusses text editing, text formatting, and nroff.
.PP 5
In module 1, you will learn to edit your files by
adding, changing, inserting, and deleting information.
.PP
In module 2, you will learn to format your files by utilizing
nroff, a text processor. Nroff also interprets and places your formatted
file in readable form.  Controlling output, setting line lengths,
vertical spacing, indenting, underlining, macros, character strings,
and line numbering are among the topics to be discussed.
.PP
In module 3, you will learn  additional formatting techniques.
Topics will include forming headers, trailers, indenting, underlining,
paragraphing, etc.
.bp
.PH "~~~~~~~~~~~~~~~OBJECTIVES FOR UNIT III"
.sp
When you complete this unit, you will be able to:
.sp
.L1  5 2 1
Use the command to gain access to the  UNIX Text editor.
.L1
Modify your files by using the UNIX Text Editor commands.
.L1
Use the command to terminate use of the UNIX Text Editor.
.L1
Use the command to gain access to nroff.
.L1
Use the nroff commands to format your files.
.L1
Use the "nm macros" to enhance text formatting.
.E1








