.HL 1 SPECIAL CHARACTERS .INDEX SPECIAL CHARACTERS .LM +5; .text .i -5;_&##Ampersand#####UNDERLINE .s.index Underlining The character ampersand "_&" is used to specify underlining. The ampersand will cause the character following it to be underlined, e.g.#_&f_&o_&o becomes ^&foo\&. To begin underlining a whole section of text you preceed the section by _^_& and follow the section by _\_&. Any spaces in the section will not be underlined. To underline a single space preceed it by _&. Text with imbedded spaces may be underlined spaces and all by issuing the command _.UNDERLINE SPACES. .text .s.I -5;_###Number Sign###Quoted or non expandable SPACE .index Space .s.index Quoted Space It is occasionally necessary to include spaces in the text which should not be treated as word separators. For this purpose, RUNOFF treats the number-sign character "_#" as a quoted space; i.e. it will print as exactly one space in the output. Normal spaces may be expanded to multiple spaces to justify the text, but quoted spaces may not be expanded. Also normal spaces mark the end of the previous word and the beginning of the next. Text with imbedded quoted spaces may not be broken at the quoted spaces and split into separate lines. .text .s.i -5;__##Underline#####ACCEPT or Quote character .index Quote character .s.index Accept character To allow the appearance of the special characters (ampersand, number-sign, circumflex, or back-slash) in the output, the underline character "__" is used as a quote character. The character immediately following an underline will be transmitted to the output with no formatting effect. The underline itself is thus another case requiring quoting. The following 12 cases occur: .c; ___& ___^ ___\ ____ ___$ ___| ___= ___% ___< ___# ___{ ___} If normal spaces or tabs are preceeded by an ACCEPT character they are converted to quoted spaces. .text .s.i -5;_^##Circumflex####UPPERCASE shift or mode lock .skip As described above, the circumflex character "_^" is used to convert the letter following to upper-case. It is also used to lock the case mode in upper case, and the underline mode to "underline all text". If it is to appear in the printed text, it must be preceded by the quote character "___^". .text .s.i -5;_\###Backslash####LOWERCASE shift or mode unlock .skip As described above, the backslash character "_\" is used to output the letter following in lower-case. It is also used to lock the case mode in lower-case, and to disable underlining. If it is to appear in the printed text, it must be preceded by the quote character "___\". .text .s.i -5;_<##Less-than#####CAPITALIZE next word .skip If _.FLAGS CAPITALIZE has been engaged, the less-than character "_<" is a special character used to capitalize the entire word it precedes. If it is to appear in the printed text, it must be preceded by the quote character "___<". An appearance of a circumflex followed by less than "_^_<" permanently locks Runoff into capitalize mode. This may be cancelled by a double circumflex "_^_^". .text .s.I -5;_=##Equals-sign###HYPHENATE character .skip If _.FLAGS HYPHENATE has been engaged, the equals character "_=" used to disable automatic hyphenation for the word it preceeds. If it is to appear in the printed text, it must be preceded by the quote character "___=". If it is used in the middle of a word, the automatic hyphenation is not used, and instead the equals sign marks where hyphenation may occurr. .text .s.i -5;_%##Percent sign###OVERSTRIKE character .skip If _.FLAGS OVERSTRIKE has been engaged, the percent character "_%" will generate a backspace to allow overstriking the previous character to form new composite characters. When overstriking is enabled, this character must be preceeded by the quote character. The default is _.NO FLAGS OVERSTRIKE. Multiple backspaces may be generated, but you should be careful since the characters following the multiple backspace can cause unpredictable results if they are not printable characters. .text .s.i-5;_.##Period###CONTROL character .s This flag marks the rest of a line as a control or command if it appears at the beginning of a line. .text .s.i-5;_$##Dollar sign###SUBSTITUTE character .index Substitute character .s If _.FLAGS SUBSTITUTE has been enabled then the dollar sign marks the beginning of a substitution label. Runoff will then substitute some specified text for the label. The text may be specified by the _.DEFINE SUBSTITUTE command. Permanently defined substitutions are already available for the current date and time. See: _.FLAGS SUBSTITUTE. .text .s.i-5;_|##Vertical bar###BREAK character .s If _.FLAGS BREAK is enabled this character marks where a word or expression may be broken. A word containing a break will not be hyphenated, but will be broken if necessary. This flag also marks where a string is justified if _.TAB RIGHT is enabled. .text.s.i-5;_>##Greater than###INDEX/SUBINDEX flags .s If _.FLAGS INDEX is enabled, this character may be used to mark terms to be indexed. If _.FLAGS SUBINDEX is enabled, the character may be used inside a _.INDEX command to denote subindex terms. .text.s.i-5;_{ _} Braces###EQUATION formatting characters .s If _.FLAGS EQUATION is enabled these characters are used to delimit either the numerator or denominator of a fraction. The numerator and denominator are further separated by a slash "/". .br;(Not available in DSR) .text.s.i-5; ???? The user may define any other special character as a flag by using the _.FLAGS SPECIAL or _.FLAGS ESCAPE commands. Any flag so defined obeys the printing rules defined above. The meaning of the flag is entirely up to the user to define. .br;(Not available in DSR) .end text .NOTE All of these flags may be disabled by a _.NO FLAGS command. They may be enabled and changed to a different character by a _.FLAGS command. For example if you use the equals sign frequently you may change it to the double quotes which you never use by entering the following line. .s;_.FLAGS HYPHENATE " .END NOTE