.left margin .ifnot hlp .hl 1 Chapter/Appendix Formatting .endif hlp .left margin +5 .helpc CHAPTER .q _.CHAPTER [;][title] .qq _.CH [;][title] .skip .index CHAPTER indicates the beginning of a chapter with the specified title. Successive .CHAPTER commands number the following chapters sequentially. .ifnot small The title can contain escape sequences. Tabs within the title are treated as ordinary spaces. This command declares the layout to be chapter oriented, which has effects on the page numbers and the section headers. The effect of this command is as if the following command string were entered: .skip .I5;_.NO HEADER _.PAGE SIZE _.PAGE .I5;_.FIGURE 12 _.CENTER; CHAPTER n .skip and n is incremented by 1 automatically. After a "CHAPTER n", the following commands are performed: .skip .I5;_.BLANK 2 _.CENTER; title .i5;_.BLANK 3 _.TITLE title .i5;_.FILL _.HEADER _.SUBTITLE .if hlp .if rsx .i5;ADDITIONAL HELP AVAILABLE: result STYLE .endif rsx .endif hlp .HELPD RESULT .skip The resulting chapter heading will have a centered title and chapter number. The chapters of this document are an example of the chapter format. All special printer features_* are turned off, and underlining is turned off at the beginning of the chapter and after the chapter title. .ifnot hlp .footnote .i-2;_*#Special features are only turned off if the appropriate escape sequences are defined as LCK. .end footnote .endif hlp In addition the case, margins, spacing, and justify/fill modes are reset, any subtitles are cleared, and the chapter name is set to the title. The title will appear in CAPS unless it contains a shift down (_\_\). If the _.NO AUTOTITLE or _.NO TITLE command is used, the page title will not automatically be the same as the chapter title. To control the margins and spacing, use the _.PAGE SIZE command to set the permanent margins and spacing before the _.CHAPTER command is executed. .p; It is possible to reformat the chapters with the _.STYLE CHAPTER command. Chapter numbers can be selected to be letters or Roman numerals with the _.DISPLAY CHAPTER command. In addition, the _.DISPLAY CHAPTER command can be used to change the word "CHAPTER" to another word, or just blank space. _.DISPLAY CHAPTER can underline chapter titles, or use bolding on printers that support this feature. The STYLE and DISPLAY commands, when used together, can completely alter the chapter header. .helpd STYLE .endif small .q _.STYLE CHAPTER [n1],[-n2],[-n3],[-n4],[-n5] .qq _.STCH [n1],[-n2],[-n3],[-n4],[-n5] .S.x STYLE> CHAPTER changes the style of the chapter and appendix headers. .list 0 .le;n1#=#Number of lines to skip before the word CHAPTER. .le;n2#=#Number of lines to skip after the word CHAPTER. If n2=-1, the title and the word CHAPTER will appear on the same line. .le;n3#=#Number of lines between the title and text. If n3=-1, the title and any following text will be placed on the same line. .le;n4#=#Number of spaces to indent the word CHAPTER. .le;n5#=#Number of spaces to indent the title. If n4 or n5 are -1, the line will be centered. If n4 or n5 are -2, the line will be right justified. .els 0 .i5;DEFAULT: _.STYLE CHAPTER 12,1,3,-1,-1. .i5;(Not available in DSR) .helpc APPENDIX .br .q _.APPENDIX [;][title] .qq _.AX [;][title] .s.x APPENDIX indicates the start of an appendix with the specified title. Successive _.APPENDIX commands assign identifying letters in alphabetical order. .ifnot small This command performs the same functions as _.CHAPTER except that an appendix results. This command acts as if the following command string were entered: .S.LM +5.LITERAL .NO HEADER .PAGE SIZE .PAGE .FIGURE 12 .CENTER APPENDIX a .BLANK 2 .CENTER; title .BLANK 3 .TITLE title .FILL .HEADER .SUBTITLE .END LITERAL .S.LM -5 The letter following the word APPENDIX is incremented before it is printed. Both _.STYLE CHAPTER and _.DISPLAY APPENDIX alter the look of the appendix header. .endif small