📄 eqn.man
字号:
result..RS.LPFor example, suppose you wanted a construct that `cancels' an expressionby drawing a diagonal line through it..IP.nf.ft B.ne 6+\n(.Vu\&.EQdefine cancel 'special Ca'\&.EN\&.de Ca\&.ds 0s \eZ'\e\e*(0s'\ev'\e\en(0du'\eD'l \e\en(0wu -\e\en(0hu-\e\en(0du'\ev'\e\en(0hu'\&...ft.fi.LPThen you could cancel an expression.I ewith.BI cancel\ {\ e\ }.LPHere's a more complicated construct that draws a box round an expression:.IP.nf.ft B.ne 11+\n(.Vu\&.EQdefine box 'special Bx'\&.EN\&.de Bx\&.ds 0s \eZ'\eh'1n'\e\e*(0s'\e\eZ'\ev'\e\en(0du+1n'\eD'l \e\en(0wu+2n 0'\eD'l 0 -\e\en(0hu-\e\en(0du-2n'\e\eD'l -\e\en(0wu-2n 0'\eD'l 0 \e\en(0hu+\e\en(0du+2n''\eh'\e\en(0wu+2n'\&.nr 0w +2n\&.nr 0d +1n\&.nr 0h +1n\&...ft.fi.RE.SS CustomizationThe appearance of equations is controlled bya large number of parameters. These can be set usingthe.B setcommand..TP.BI set\ p\ nThis sets parameter.I pto value.I n ;.I nis an integer.For example,.RS.IP.Bset x_height 45.RE.IPsays that.B eqnshould assume an x height of 0.45 ems..RS.LPPossible parameters are as follows.Values are in units of hundredths of an em unless otherwise stated.These descriptions are intended to be expository rather thandefinitive..TP \w'\fBdefault_rule_thickness'u+2n.B minimum_size.B eqnwill not set anything at a smaller point-size than this.The value is in points..TP.B fat_offsetThe.B fatprimitive emboldens an equationby overprinting two copies of the equationhorizontally offset by this amount..TP.B over_hangA fraction bar will be longer by twice this amount thanthe maximum of the widths of the numerator and denominator;in other words, it will overhang the numerator anddenominator by at least this amount..TP.B accent_widthWhen.B baror.B underis applied to a single character,the line will be this long.Normally,.B baror.B underproduces a line whose length is the width of the object to which it applies;in the case of a single character,this tends to produce a line that looks too long..TP.B delimiter_factorExtensible delimiters produced with the.B leftand.B rightprimitives will have a combined height and depth of at least this manythousandths of twice the maximum amount by which the sub-equation thatthe delimiters enclose extends away from the axis..TP.B delimiter_shortfallExtensible delimiters produced with the.B leftand.B rightprimitives will have a combined height and depthnot less than the difference oftwice the maximum amount by which the sub-equation thatthe delimiters enclose extends away from the axisand this amount..TP.B null_delimiter_spaceThis much horizontal space is insertedon each side of a fraction..TP.B script_spaceThe width of subscripts and superscripts is increased by this amount..TP.B thin_spaceThis amount of space is automatically inserted after punctuationcharacters..TP.B medium_spaceThis amount of space is automatically inserted on either sideof binary operators..TP.B thick_spaceThis amount of space is automatically inserted on either side ofrelations..TP.B x_heightThe height of lowercase letters without ascenders such as x..TP.B axis_heightThe height above the baseline of the center of characterssuch as \(pl and \(mi.It is important that this value is correct for the fontyou are using..TP.B default_rule_thicknessThis should set to the thickness of the.B \e(rucharacter, or the thickness of horizontal lines produced with the.B \eDescape sequence..TP.B num1The.B overcommand will shift up the numerator by at least this amount..TP.B num2The.B smallovercommand will shift up the numerator by at least this amount..TP.B denom1The.B overcommand will shift down the denominator by at least this amount..TP.B denom2The.B smallovercommand will shift down the denominator by at least this amount..TP.B sup1Normally superscripts will be shifted up by at least this amount..TP.B sup2Superscripts within superscripts or upper limitsor numerators of.B smalloverfractionswill be shifted up by at least this amount.This is usually less than sup1..TP.B sup3Superscripts within denominators or square rootsor subscripts or lower limits will be shifted up by at leastthis amount.This is usually less than sup2..TP.B sub1Subscripts will normally be shifted down by at least this amount..TP.B sub2When there is both a subscript and a superscript, the subscriptwill be shifted down by at least this amount..TP.B sup_dropThe baseline of a superscript will be no morethan this much amount below the top of the object onwhich the superscript is set..TP.B sub_dropThe baseline of a subscript will be at least this much belowthe bottom of the object on which the subscript is set..TP.B big_op_spacing1The baseline of an upper limit will be at least thismuch above the top of the object on which the limit is set..TP.B big_op_spacing2The baseline of a lower limit will be at least thismuch below the bottom of the object on which the limit is set..TP.B big_op_spacing3The bottom of an upper limit will be at least this much above thetop of the object on which the limit is set..TP.B big_op_spacing4The top of a lower limit will be at least this much belowthe bottom of the object on which the limit is set..TP.B big_op_spacing5This much vertical space will be added above and below limits..TP.B baseline_sepThe baselines of the rows in a pile or matrix will normally bethis far apart.In most cases this should be equal to the sum of.B num1and.BR denom1 ..TP.B shift_downThe midpoint between the top baseline and the bottom baselinein a matrix or pile will be shifted down by this much from the axis.In most cases this should be equal to.BR axis_height ..TP.B column_sepThis much space will be added between columns in a matrix..TP.B matrix_side_sepThis much space will be added at each side of a matrix..TP.B draw_linesIf this is non-zero, lines will be drawn using the.B \eDescape sequence, rather than with the.B \elescape sequence and the.B \e(rucharacter..TP.B body_heightThe amount by which the height of the equation exceeds thiswill be added as extra space before the line containing the equation(using.BR \ex .)The default value is 85..TP.B body_depthThe amount by which the depth of the equation exceeds thiswill be added as extra space after the line containing the equation(using.BR \ex .)The default value is 35..TP.B nroffIf this is non-zero,then.B ndefinewill behave like.B defineand.B tdefinewill be ignored,otherwise.B tdefinewill behave like.B defineand.B ndefinewill be ignored.The default value is 0(This is typically changed to 1 by the.B eqnrcfile for the.B asciiand.B latin1devices.).LPA more precise description of the role of many of theseparameters can be found in Appendix H of.IR The\ \*(txbook ..RE.SS MacrosMacros can take arguments.In a macro body,.BI $ nwhere.I nis between 1 and 9,will be replaced by the.IR n-thargument if the macro is called with arguments;if there are fewer than.I narguments, it will be replaced by nothing.A word containing a left parenthesis where the part of the wordbefore the left parenthesis has been defined using the.B definecommandwill be recognized as a macro call with arguments;characters following the left parenthesisup to a matching right parenthesis will be treated as comma-separatedarguments;commas inside nested parentheses do not terminate an argument..TP.BI sdefine\ name\ X\ anything\ XThis is like the.B definecommand, but.I namewill not be recognized if called with arguments..TP.BI include\ \(ts file \(tsInclude the contents of.IR file .Lines of.I filebeginning with.B .EQor.B .ENwill be ignored..TP.BI ifdef\ name\ X\ anything\ XIf.I namehas been defined by.B define(or has been automatically defined because.I nameis the output device)process.IR anything ;otherwise ignore.IR anything ..I Xcan be any character not appearing in.IR anything ..SS Fonts.B eqnnormally uses at least two fonts to set an equation:an italic font for letters,and a roman font for everything else.The existing.B gfontcommandchanges the font that is used as the italic font.By default this is.BR I .The font that is used as the roman font can be changedusing the new.B grfontcommand..TP.BI grfont\ fSet the roman font to.IR f ..LPThe.B italicprimitive uses the current italic font set by.BR gfont ;the.B romanprimitive uses the current roman font set by.BR grfont .There is also a new.B gbfontcommand, which changes the font used by the.B boldprimitive.If you only use the.BR roman ,.B italicand.B boldprimitives to changes fonts within an equation,you can change all the fonts used by your equationsjust by using.BR gfont ,.B grfontand.B gbfontcommands..LPYou can control which characters are treated as letters(and therefore set in italics) by using the.B chartypecommand described above.A type of.B letterwill cause a character to be set in italic type.A type of.B digitwill cause a character to be set in roman type..SH FILES.Tp \w'\fB@MACRODIR@/eqnrc'u+2n.B @MACRODIR@/eqnrcInitialization file..SH BUGSInline equations will be set at the point size that is current at thebeginning of the input line..SH "SEE ALSO".BR groff (@MAN1EXT@),.BR @g@troff (@MAN1EXT@),.BR groff_font (@MAN5EXT@),.I The\ \*(txbook
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -