📄 troff.man
字号:
.B nto 1..TP.B .backtracePrint a backtrace of the input stack on stderr..TP.B .breakBreak out of a while loop.See also the.B whileand.B continuerequests.Be sure not to confuse this with the.B brrequest..TP.BI .cflags\ n\ c1\ c2\|.\|.\|.Characters.IR c1 ,.IR c2 ,\|.\|.\|.have properties determined by.IR n ,which is ORed from the following:.RS.TP1the character ends sentences(initially characters.B .?!have this property);.TP2lines can be broken before the character(initially no characters have this property);.TP4lines can be broken after the character(initially characters.B \-\e(hy\e(emhave this property);.TP8the character overlaps horizontally(initially characters.B \e(ul\e(rn\e(ruhave this property);.TP16the character overlaps vertically(initially character.B \e(brhas this property);.TP32an end of sentence character followed by any number of characterswith this property will be treatedas the end of a sentence if followed by a newline or two spaces;in other wordsthe character is transparent for the purposes of end of sentencerecognition;this is the same as having a zero space factor in \*(tx(initially characters.B \(ts')]*\e(dg\e(rqhave this property)..RE.TP.BI .char\ c\ stringDefine character.I cto be.IR string .Every time character.I cneeds to be printed,.I stringwill be processed in a temporary environment and the resultwill be wrapped up into a single object.Compatibility mode will be turned offand the escape character will be set to.B \ewhile.I stringis being processed.Any emboldening, constant spacing or track kerning will be appliedto this object rather than to individual characters in.IR string .A character defined by this request can be used just likea normal character provided by the output device.In particular other characters can be translated to itwith the.B trrequest;it can be made the leader character by the.B lcrequest;repeated patterns can be drawn with the character using the.B \eland.B \eLescape sequences;words containing the character can be hyphenatedcorrectly, if the.B hcoderequest is used to give the character a hyphenation code.There is a special anti-recursion feature: use of character within the character's definitionwill be handled like normal characters not defined with.BR char .A character definition can be removed with the.B rcharrequest..TP.BI .chop\ xxChop the last character off macro, string, or diversion.IR xx .This is useful for removing the newline from the end of diversionsthat are to be interpolated as strings..TP.BI .close\ streamClose the stream named.IR stream ;.I streamwill no longer be an acceptable argument to the.B writerequest.See the.B openrequest..TP.B .continueFinish the current iteration of a while loop.See also the.B whileand.B breakrequests..TP.BI .cp\ nIf.I nis non-zero or missing, enable compatibility mode, otherwisedisable it.In compatibility mode, long names are not recognised, and theincompatibilities caused by long names do not arise..TP.BI .do\ xxxInterpret.I .xxxwith compatibility mode disabled.For example,.RS.IP.B\&.do fam T.LPwould have the same effect as.IP.B\&.fam T.LPexcept that it would work even if compatibility mode had been enabled.Note that the previous compatibility mode is restored before any filessourced by.I xxxare interpreted..RE.TP.BI .fam\ xxSet the current font family to.IR xx .The current font family is part of the current environment.See the description of the.B styrequest for more information on font families..TP.BI .fspecial\ f\ s1\ s2\|.\|.\|.When the current font is.IR f ,fonts.IR s1 ,.IR s2 ,\|.\|.\|.will be special, that is, they will searched for characters not inthe current font.Any fonts specified in the.B specialrequest will be searched before fonts specified in the.B fspecialrequest..TP.BI .ftr\ f\ gTranslate font.I fto.IR g .Whenever a font named.I fis referred to in.B \efescape sequence,or in the.BR ft ,.BR ul ,.BR bd ,.BR cs ,.BR tkf ,.BR special ,.BR fspecial ,.BR fp ,or.BR styrequests,font.I gwill be used.If.I gis missing,or equal to.I fthen font.I fwill not be translated..TP.BI .hcode \ c1\ code1\ c2\ code2\|.\|.\|.Set the hyphenation code of character.I c1to.I code1and that of.I c2to.IR code2 .A hyphenation code must be a single inputcharacter (not a special character) other than a digit or a space.Initially each lower-case letter has a hyphenation code, whichis itself, and each upper-case letter has a hyphenation codewhich is the lower case version of itself.See also the.B hpfrequest..TP.BI .hla\ langSet the current hyphenation language to.IR lang .Hyphenation exceptions specified with the.B hwrequest and hyphenation patterns specified with the.B hpfrequest are both associated with the current hyphenation language.The.B hlarequest is usually invoked by the.B troffrcfile..TP.BI .hlm\ nSet the maximum number of consecutive hyphenated lines to.IR n .If.I nis negative, there is no maximum.The default value is \-1.This value is associated with the current environment.Only lines output from an environment count towards the maximum associatedwith that environment.Hyphens resulting from.B \e%are counted; explicit hyphens are not..TP.BI .hpf\ fileRead hyphenation patterns from.IR file ;this will be searched for in the same way that.BI tmac. nameis searched for when the.BI \-m nameoption is specified.It should have the same format as the argument tothe \epatterns primitive in \*(tx;the letters appearing in this file are interpreted as hyphenationcodes.A.B %character in the patterns file introduces a comment that continuesto the end of the line.The set of hyphenation patterns is associated with the current languageset by the.B hlarequest.The.B hpfrequestis usually invoked by the.B troffrcfile..TP.BI .hym\ nSet the.I hyphenation marginto.IR n :when the current adjustment mode is not.BR b ,the line will not be hyphenated if the line is no more than.I nshort.The default hyphenation margin is 0.The default scaling indicator for this request is.IR m .The hyphenation margin is associated with the current environment.The current hyphenation margin is available in the.B \en[.hym]register..TP.BI .hys\ nSet the.I hyphenation spaceto.IR n :when the current adjustment mode is.B bdon't hyphenate the line if the line can be justified by adding no more than.I nextra space to each word space.The default hyphenation space is 0.The default scaling indicator for this request is.BR m .The hyphenation space is associated with the current environment.The current hyphenation space is available in the.B \en[.hys]register..TP.BI .kern\ nIf.I nis non-zero or missing, enable pairwise kerning, otherwise disable it..TP.BI .mso\ fileThe same as the.B sorequest except that.I fileis searched for in the same way that.BI tmac. nameis searched for when the.BI \-m nameoption is specified..TP.B .nroffMake the.B nbuilt-in condition trueand the.B tbuilt-in condition false.This can be reversed using the.B troffrequest..TP.BI .open\ stream\ filenameOpen.I filenamefor writing and associate the stream named.I streamwith it.See also the.B closeand.B writerequests..TP .BI .opena\ stream\ filenameLike.BR open ,but if.I filenameexists, append to it instead of truncating it..TP.B .pnrPrint the names and contents of all currently defined number registerson stderr..TP.B .ptrPrint the names and positions of all traps (not including input linetraps and diversion traps) on stderr. Empty slots in the page traplist are printed as well, because they can affect the priority ofsubsequently planted traps..TP.BI .rchar\ c1\ c2\|.\|.\|.Remove the definitions of characters.IR c1 ,.IR c2 ,\|.\|.\|.This undoes the effect of a.B charrequest..TP.B .rj.TQ.BI .rj\ nRight justify the next.I ninput lines.Without an argument right justify the next input line.The number of lines to be right justifed is available in the.B \en[.rj]register.This implicitly does.BR .ce\ 0 .The.B cerequest implicitly does.BR .rj\ 0 ..TP.BI .rnn \ xx\ yyRename number register.I xxto.IR yy ..TP.BI .shc\ cSet the soft hyphen character to.IR c .If.I cis omitted,the soft hyphen character will be set to the default.BR \e(hy .The soft hyphen character is the character which will be insertedwhen a word is hyphenated at a line break.If the soft hyphen character does not exist in the font of the characterimmediately preceding a potential break point,then the line will not be broken at that point.Neither definitions (specified with the.B charrequest)nor translations (specified with the.B trrequest)are considered when finding the soft hyphen character..TP.BI .shift\ nIn a macro, shift the arguments by.I npositions:argument.I ibecomes argument.IR i \- n ;arguments 1 to.I nwill no longer be available.If.I nis missing,arguments will be shifted by 1.Shifting by negative amounts is currently undefined..TP.BI .special\ s1\ s2\|.\|.\|.Fonts.IR s1 ,.IR s2 ,are special and will be searched for characters not in thecurrent font..TP.BI .sty\ n\ fAssociate style.I fwith font position.IR n .A font position can be associated either with a font orwith a style.The current font is the index of a font position and so is alsoeither a font or a style.When it is a style, the font that is actually used is the font thename of which is the concatenation of the name of the current familyand the name of the current style.For example, if the current font is 1 and font position 1 isassociated with style.B Rand the currentfont family is.BR T ,then font.BR TRwill be used.If the current font is not a style, then the current family is ignored.When the requests.BR cs ,.BR bd ,.BR tkf ,.BR uf ,or.B fspecialare applied to a style,then they will instead be applied to the member of thecurrent family corresponding to that style.The default family can be set with the.B \-foption.The styles command in the.SM DESCfile controls which font positions(if any) are initially associated with styles rather than fonts..TP.BI .tkf\ f\ s1\ n1\ s2\ n2Enable track kerning for font.IR f .When the current font is.I fthe width of every character will be increased by an amountbetween.I n1and.IR n2 ;when the current point size is less than or equal to.I s1the width will be increased by.IR n1 ;when it is greater than or equal to.I s2the width will be increased by.IR n2 ;when the point size is greater than or equal to.I s1and less than or equal to.I s2the increase in width is a linear function of the point size..TP.BI .trf\ filenameTransparently output the contents of file.IR filename .Each line is output as it would be were it preceded by.BR \e! ;however, the lines are not subject to copy-mode interpretation.If the file does not end with a newline, then a newline willbe added.For example, you can define a macro.I xcontaining the contents of file.IR f ,using.RS.IP.BI .di\ x.br.BI .trf\ f.br.B .di.LPUnlike with the.B cfrequest,the file cannot contain characters such as.SM NULthat are not legal troff input characters..RE.TP.B .trnt abcdThis is the same as the.B trrequest except that the translations do not apply to text that istransparently throughput into a diversion with.BR \e! .For example,.RS.LP.nf.ft B\&.tr ab\&.di x\e!.tm a\&.di\&.x.fi.ft.LPwill print.BR b ;if.B trntis used instead of.B trit will print.BR a ..RE.TP.B .troffMake the.B nbuilt-in condition false,and the.B tbuilt-in condition true.This undoes the effect of the.B nroffrequest..TP.BI .vpt\ nEnable vertical position traps if.I nis non-zero, disable them otherwise.Vertical position traps are traps set by the.B whor.B dtrequests.Traps set by the.B itrequest are not vertical position traps.The parameter that controls whether vertical position traps are enabledis global.Initially vertical position traps are enabled..TP.BI .warn\ nControl warnings..I nis the sum of the numbers associated with each warning that is to be enabled;all other warnings will be disabled.The number associated with each warning is listed in the `Warnings' section.For example,.B .warn 0will disable all warnings, and.B .warn 1will disable all warnings except that about missing characters.If.I nis not given,all warnings will be enabled..TP.BI .while \ c\ anythingWhile condition.I cis true, accept.I anythingas input;.I ccan be any condition acceptable to an.B ifrequest;.I anythingcan comprise multiple lines if the first line starts with.B \e{and the last line ends with.BR \e} .See also the.B breakand.B continuerequests..TP.BI .write\ stream\ anythingWrite.I anythingto the stream named.IR stream ..I streammust previously have been the subject of an.B openrequest..I anythingis read in copy mode;a leading.B \(tswill be stripped..SS Extended requests.TP.BI .cf\ filenameWhen used in a diversion, this will embed in the diversion an object which,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -