📄 m3
字号:
.tr |.rm mx.mhTabs, Leaders, and Fields.scTabs and leaders.The \s-1ASCII\s+1 horizontal tab character and the \s-1ASCII\s+1\s-1SOH\s+1 (hereafter known as the \fIleader\fR character)can both be used to generate either horizontal motion ora string of repeated characters.The length of the generated entity is governedby internal \fItab stops\fR specifiablewith \fBta\fR.The default difference is that tabs generate motion and leaders generatea string of periods;\fBtc\fR and \fBlc\fRoffer the choice of repeated character or motion.There are three types of internal tab stops\(em\\fIleft\fR adjusting, \fIright\fR adjusting,and \fIcentering\fR.In the following table:\fID\fR is the distance from the current position on the \fIinput\fR line(where a tab or leader was found)to the next tab stop;\fInext-string\fR consistsof the input characters following the tab (or leader) up to the next tab (or leader) or end of line;and\fIW\fR is the width of \fInext-string\fR..TScenter box;c2|c2|cc2|c2|cc2|c2|l.Tab Length of motion or Location oftype repeated characters \fInext-string\fR_Left \fID\fR Following \fID\fRRight \fID\-W\fR Right adjusted within \fID\fRCentered \fID\-W\(sl\fR2 Centered on right end of \fID\fR.TEThe length of generated motion is allowed to be negative, butthat of a repeated character string cannot be.Repeated character strings contain an integer number of characters, andany residual distance is prepended as motion.Tabs or leaders found after the last tab stop are ignored, but may be usedas \fInext-string\fR terminators..pgTabs and leaders are not interpreted in \fIcopy mode\fR.\fB\et\fR and \fB\ea\fR always generate a non-interpretedtab and leader respectively, andare equivalent to actual tabs and leaders in \fIcopy mode\fR..scFields.A \fIfield\fR is contained betweena \fIpair\fR of \fIfield delimiter\fR characters,and consists of sub-stringsseparated by \fIpadding\fR indicator characters.The field length is the distance on the\fIinput\fR line from the position where the field begins to the next tab stop.The difference between the total length of all the sub-stringsand the field length is incorporated as horizontalpadding space that is divided among the indicatedpadding places.The incorporated padding is allowed to be negative.For example,if the field delimiter is \fB#\fR and the padding indicator is \fB^\fR,\fB#^\fIxxx\fB^\fIright\|\fB#\fRspecifies a right-adjusted string with the string \fIxxx\fR centeredin the remaining space..h1.bt\fB&ta\fI|Nt|...\fR 0.8;|0.5in none E,\fBm\fR \Set tab stops and types.\fIt=\fBR\fR, right adjusting;\fIt=\fBC\fR, centering;\fIt\fR absent, left adjusting.\*(TR tab stops are preset every 0.5in.;\*(NR every 0.8in.The stop values are separated by spaces, anda value preceded by \fB+\fRis treated as an increment to the previous stop value..bt\fB&tc\fI|c\fR none none E \The tab repetition character becomes \fIc\fR,or is removed specifying motion..bt\fB&lc\fI|c\fR \fB.\fR none E \The leader repetition character becomes \fIc\fR,or is removed specifying motion..bt\fB&fc\fI|a|b\fR off off - \The field delimiter is set to \fIa\fR;the padding indicator is set to the \fIspace\fR character or to\fIb\fR, if given.In the absence of arguments the field mechanism is turned off..mhInput and Output Conventions and Character Translations.scInput character translations.Ways of inputting the graphic character set werediscussed in \(sc2.1.The \s-1ASCII\s+1 control characters horizontal tab (\(sc9.1),\s-1SOH\s+1 (\(sc9.1), and backspace (\(sc10.3) are discussed elsewhere.The newline delimits input lines.In addition,\s-1STX\s+1, \s-1ETX\s+1, \s-1ENQ\s+1, \s-1ACK\s+1, and \s-1BEL\s+1are accepted,and may be used as delimiters or translated into a graphic with \fBtr\fR (\(sc10.5).\fIAll\fR others are ignored..pgThe \fIescape\fR character \fB\e\fRintroduces \fIescape sequences\fR\(em\causes the following character to meananother character, or to indicatesome function.A complete list of such sequences is given in the Summary and Index on page 6.\fB\e\fRshould not be confused with the \s-1ASCII\s+1 control character \s-1ESC\s+1 of thesame name.The escape character \fB\e\fR can be input with the sequence \fB\e\e\fR.The escape character can be changed with \fBec\fR,and all that has been said about the default \fB\e\fR becomes truefor the new escape character.\fB\ee\fR can be used to print whatever the current escape character is.If necessary or convenient, the escape mechanism may be turned off with \fBeo\fR,and restored with \fBec\fR..h1.bt\fB&ec\fI|c\fR \fB\e\fR \fB\e\fR - \Set escape character to \fB\e\fR, or to \fIc\fR, if given..bt\fB&eo\fR on - - Turn escape mechanism off..scLigatures..lg0Five ligatures are availablein the current \*(TR character set \(em\fB\(fi\fR, \fB\(fl\fR, \fB\(ff\fR, \fB\(Fi\fR, and \fB\(Fl\fR.They may be input (even in \*(NR) by\fB\e(fi\fR, \fB\e(fl\fR, \fB\e(ff\fR, \fB\e(Fi\fR, and \fB\e(Fl\fR respectively..lgThe ligature mode is normally on in \*(TR, and \fIautomatically\fR invokes ligatures during input..h1.bt\fB&lg\fI|N\fR off;|on on - Ligature modeis turned on if \fIN\fR is absent or non-zero,and turned off if \fIN\(eq\^\fR0.If \fIN\fR\(eq\^2, only the two-character ligatures are automatically invoked.Ligature mode is inhibited forrequest, macro, string, register, or file names,and in \fIcopy mode\fR.No effect in \*(NR..scBackspacing, underlining, overstriking, etc.Unless in \fIcopy mode\fR, the \s-1ASCII\s+1 backspace character is replacedby a backward horizontal motion having the width of thespace character.Underlining as a form of line-drawing is discussed in \(sc12.4.A generalized overstriking function is described in \(sc12.1..pg\*(NR automatically underlinescharacters in the \fIunderline\fR font,specifiable with \fBuf\fR,normally that on font position 2 (normally Times Italic, see \(sc2.2).In addition to \fBft\fR and \fB\ef\fIF\fR,the underline font may be selected by \fBul\fR and \fBcu\fR.Underlining is restricted to an output-device-dependentsubset of \fIreasonable\fR characters..h1.bt\fB&ul\fI|N\fR off \fIN\(eq\fR1 E \Underline in \*(NR (italicize in \*(TR) the next \fIN\fRinput text lines.Actually, switch to \fIunderline\fR font, saving thecurrent font for later restoration;\fIother\fR font changes within the span of a \fBul\fRwill take effect,but the restoration will undo the last change.Output generated by \fBtl\fR (\(sc14) \fIis\fR affected by thefont change, but does \fInot\fR decrement \fIN\fR.If \fIN\fR\^>\^1, there is the risk thata trap interpolated macro may provide textlines within the span;environment switching can prevent this..bt\fB&cu\fI|N\fR off \fIN\(eq\fR1 E \A variant of \fBul\fR that causes \fIevery\fR character to be underlined in \*(NR.Identical to \fBul\fR in \*(TR..bt\fB&uf\fI|F\fR Italic Italic - \Underline font set to \fIF\fR.In \*(NR,\fIF\fR may \fInot\fR be on position 1 (initially Times Roman)..scControl characters.Both the control character \fB.\fR and the \fIno-break\fRcontrol character \fB\'\fR may be changed, if desired.Such a change must be compatible with the designof any macros used in the span of the change,andparticularly of any trap-invoked macros..h1.bt\fB&cc\fI|c\fR \fB.\fR \fB.\fR E \The basic control character is set to \fIc\fR,or reset to "\fB.\fR"..bt\fB&c2\fI|c\fR \fB\' \'\fR E The \fInobreak\fR control character is setto \fIc\fR, or reset to "\fB\'\fR"..scOutput translation.One character can be made a stand-in for another character using \fBtr\fR.All text processing (e. g. character comparisons) takes placewith the input (stand-in) character which appears to have the width of the finalcharacter.The graphic translation occurs at the moment of output(including diversion)..h1.bt\fB&tr\fI|abcd....\fR none - O Translate \\fIa\fR into \fIb\fR, \fIc\fR into \fId\fR, etc.If an odd number of characters is given,the last one will be mapped into the space character.To be consistent, a particular translationmust stay in effect from \fIinput\fR to \fIoutput\fR time..scTransparent throughput.An input line beginning with a \fB\e!\fR is read in \fIcopy mode\fR and \fItransparently\fR output(without the initial \fB\e!\fR);the text processor is otherwise unaware of the line's presence.This mechanism may be used to pass control information to a post-processoror to imbed control lines in a macro created by a diversion..scComments and concealed newlines.An uncomfortably long input line that must stayone line (e. g. a string definition, or nofilled text)can be split into many physical lines by ending all butthe last one with the escape \fB\e\fR.The sequence \fB\e\fR(newline) is \fIalways\fR ignored\(em\except in a comment.Comments may be imbedded at the \fIend\fR of any line by
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -