⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 groff_mm.man

📁 早期freebsd实现
💻 MAN
📖 第 1 页 / 共 2 页
字号:
.TH MM @MAN7EXT@ "@MDATE@" "Groff Version @VERSION@".SH NAMEmm \- groff mm macros.SH SYNOPSIS.B groff.B \-m@TMAC_M@[.IR options .\|.\|.][.IR files .\|.\|.].SH DESCRIPTIONThe groff mm macros are intended to be compatible with the DWB mm macroswith the following limitations:.TP.B \(buno letter macros implemented (yet)..TP.B \(buno Bell Labs localisms implemented..TP.B \(buthe macros OK and PM is not implemented..TP.B \(bugroff mm does not support cut marks.LP\fBm@TMAC_M@\fP is intended to be international. Therefore it is possible to write short national macrofiles which change allenglish text to the preferred language. Use \fBm@TMAC_M@se\fP as an example..LPGroff mm has several extensions:.TP.B "APP name text"Begin an appendix with name \fIname\fP. Automatic naming occurs if\fIname\fP is "". The appendixes starts with \fBA\fP if auto is used.An new page is ejected, and a header is also produced if the numbervariable \fBAph\fP is non-zero. This is the default.The appendix always appear in the 'List of contents' with correctpagenumber. The name \fIAPPENDIX\fP can be changed by settingthe string \fBApp\fP to the desired text..TP.B "APPSK name pages text"Same as \fB.APP\fP, but the pagenr is incremented with \fIpages\fP.This is used when diagrams or other non-formatted documents areincluded as appendixes..TP.B B1Begin box (as the ms macro)Draws a box around the text..TP.B B2End box. Finish the box..TP.B BVLStart of broken variable-item list.As VL but text begins always at the next line.TP.B "COVER [arg]"\&\fBCOVER\fP begins a coversheet definition. It is importantthat \fB.COVER\fP appears before any normal text.\&\fB.COVER\fP uses \fIarg\fP to build the filename @TMAC_MDIR@/\fIarg\fP.cov. Therefore it is possible to create unlimitedtypes of coversheets.\fIms.cov\fP is supposed to look like the \fBms\fP coversheet.\&\fB.COVER\fP requires a \fB.COVEND\fP at the end of the coverdefinition.Always use this order of the covermacros:.nf\&.COVER\&.TL\&.AF\&.AU\&.AT\&.AS\&.AE\&.COVEND.fiHowever, only \fB.TL\fP and \fB.AU\fP are required..TP.B COVENDThis finishes the cover description and prints the cover-page.It is defined in the cover file..TP.B "GETHN refname [varname]"Includes the headernumber where the corresponding \fBSETR\fP \fIrefname\fPwas placed. Will be X.X.X. in pass 1. See \fBINITR\fP.If varname is used, \fBGETHN\fP sets the stringvariable \fIvarname\fP to the headernumber..TP.B "GETPN refname [varname]"Includes the pagenumber where the corresponding \fBSETR\fP \fIrefname\fPwas placed. Will be 9999 in pass 1. See \fBINITR\fP.If varname is used, \fBGETPN\fP sets the stringvariable \fIvarname\fPto the pagenumber..TP.B "GETR refname"Combines \fBGETHN\fP and \fBGETPN\fP with the text 'chapter' and ', page'.The string \fIQrf\fP contains the text for reference:.ti +.5i\&.ds Qrf See chapter \e\e*[Qrfh], page \e\e*[Qrfp]..br\fIQrf\fP may be changed to support other languages.Strings \fIQrfh\fP and \fIQrfp\fP are set by \fBGETR\fPand contains the page and headernumber..TP.B "GETST refname [varname]"Includes the string saved with the second argument to \fB.SETR\fP.Will be dummystring in pass 1.If varname is used, \fBGETST\fP sets the stringvariable \fIvarname\fP to the saved string. See \fBINITR\fP..TP.B "INITR filename"Initialize the refencemacros. References will be written to\fIfilename.tmp\fP and \fIfilename.qrf\fP. Requires two passes with groff.The first looks for references and the second includes them.\fBINITR\fP can be used several times, but it is only the firstoccurence of \fBINITR\fP that is active.See also \fBSETR\fP, \fBGETPN\fP and \fBGETHN\fP..TP.B "MC column-size [column-separation] "Begin multiple columns. Return to normal with 1C..TP.B "MT [arg [addressee]]"Memorandum type.The \fIarg\fP is part of a filename in \fI@TMAC_MDIR@/*.MT\fP.Memorandum type 0 thru 5 are supported, including \fI"string"\fP.\fIAddresse\fP just sets a variable, used in the AT&T macros..TP.B "MOVE y-pos [x-pos [line-length]]"Move to a position, pageoffset set to \fIx-pos\fP.If \fIline-length\fP is not given, the difference betweencurrent and new pageoffset is used.Use \fBPGFORM\fP without arguments to return to normal..TP.B "MULB cw1 space1 [cw2 space2 [cw3 ...]]"Begin a special multi-column mode. Every columns width must be specified.Also the space between the columns must be specified. The last columndoes not need any space-definition. MULB starts a diversion and MULEends the diversion and prints the columns.The unit for width and space is 'n', but MULB accepts all normal unitspecifications like 'c' and 'i'.MULB operates in a separate environment..TP.B "MULN"Begin the next column. This is the only way to switch column..TP.B "MULE"End the multi-column mode and print the columns..TP.B "PGFORM [linelength [pagelength [pageoffset]]]"Sets linelength, pagelength and/or pageoffset.This macro can be used for special formatting, like letterheadsand other.\fBPGFORM\fP can be used without arguments to reset everything after a \fBMOVE\fP..TP.B PGNHNo header is printed on the next page. Used to get rid offthe header in letters or other special textsThis macro must be used before any text to inhibit the pageheaderon the first page..TP.B "SETR refname [string]"Remember the current header and page-number as refname.Saves \fIstring\fP if \fIstring\fP is defined. \fIstring\fP is retrievedwith \fB.GETST\fP.See \fBINITR\fP..TP.B TABreset tabs to every 5n. Normally used to reset any previous tabpositions..TP.B VERBON [flag [pointsize [font]]]Begin verbatim output using courier font.Usually for printing programs.All character has equal width.The pointsize can be changed withthe second argument. By specifying the font-argumentit is possible to use another font instead of courier.\fIflag\fP control several special features.It contains the sum of all wanted features..in +.5i.ti -.5iValue.sp -1Description.ti -.5i1.sp -1Enable the escape-character (\e). This is normally turned off duringverbose output..ti -.5i2.sp -1Add en empty line before the verbose text..ti -.5i4.sp -1Add en empty line after the verbose text..ti -.5i8.sp -1Print the verbose text with numbered lines. This adds four digitsizedspaces in the beginning of each line. Finer control is available withthe string-variable \fBVerbnm\fP. It contains all arguments to the\fBtroff\fP-command \fB.nm\fP, normally '1'..ti -.5i16.sp -1Indent the verbose text with five 'n':s. This is controlled by thenumber-variable \fBVerbin\fP (in units)..in.TP.B VERBOFFEnd verbatim output..sp.LP.\"########################################################################New variables in m@TMAC_M@:.TP.B AppA string containing the word "APPENDIX"..TP.B AphPrint an appendix-page for every new appendix if this numbervariable is non-zero.No output will occur if \fBAph\fP is zero, but there will alwaysbe an appendix-entry in the 'List of contents'..TP.B HpsNumbervariable with the heading pre-space level. If the heading-levelis less than or equal to \fBHps\fP, then two lines will precede thesection heading instead of one. Default is first level only.The real amount of lines is controlled by the variables \fBHps1\fP and\fBHps2\fP..TP.B Hps1This is the number of lines preceding \fB.H\fP when the heading-levelis greater than \fBHps\fP. Value is in units, normally 0.5v..TP.B Hps2This is the number of lines preceding \fB.H\fP when the heading-levelis less than or equal to \fBHps\fP. Value is in units, normally 1v..TP.B LifgString containing \fIFigure\fP..TP.B LitbString containing \fITABLE\fP..TP.B LiexString containing \fIExhibit\fP..TP.B LiecString containing \fIEquation\fP..TP.B LiconString containing \fICONTENTS\fP..TP.B Lsp.TPThe size of an empty line. Normally 0.5v, but it is 1v if \fBn\fP is set (\fB.nroff\fP)..B "MO1 - MO12"Strings containing \fIJanuary\fI to \fIDecember\fP..TP.B QrfString containing "See chapter \e\e*[Qrfh], page \e\en[Qrfp]."..TP.B SectfFlag controlling "section-figures". A non-zero value enables this.Se also register N..TP.B SectpFlag controlling "section-page-numbers". A non-zero value enables this.Se also register N..TP.B .mgmAlways 1..\"########################################################################.LPA file called \fBlocale\fP or \fIlang\fP\fB_locale\fP is readafter the initiation of the global variables. It is thereforepossible to localize the macros with companyname and so on..sp 3.LPThe following standard macros are implemented:.TP.B 1CBegin one column processing.TP.B 2CBegin two column processing.TP.B AEAbstract end.TP.B "AF [name of firm]"Authors firm.TP.B "AL [type [text-indent [1]]]]"Start autoincrement list.TP.B "AS [arg [indent]]"Abstract start. Indent is specified in 'ens', but scaling is allowed..TP.B "AST [title]"Abstract title. Default is 'ABSTRACT'..TP.B "AT title1 [title2 ...]"Authors title.TP.B "AU name [initials [loc [dept [ext [room [arg [arg [arg]]]]]]]]"Author information.TP.B "B [bold-text [prev-font-tex [...]]]"Begin boldfaceNo limit on the number of arguments..TP.B BEEnd bottom block.TP.B "BI [bold-text [italic-text [bold-text [...]]]"Bold-italic.No limit on the number of arguments..TP.B "BL [text-indent [1]]"Start bullet list.TP.B "BR [bold-text [roman-text [bold-text [...]]]"Bold-roman.No limit on the number of arguments..TP.B BSBottom block start.TP.B DEDisplay end.TP.B "DF [format [fill [rindent]]]"Begin floating display (no nesting allowed).TP.B "DL [text-indent [1]]"Dash list start.TP.B "DS [format [fill [rindent]]]"Static display start.Can now have unlimited nesting. Alsoright adjusted text and block may be used (R or RB as \fIformat\fP)..TP.B "EC [title [override [flag [refname]]]]"Equation title.If \fIrefname\fP is used, then the equationnumber is saved with\&\fB.SETR\fP, and can be retrieved with \fB.GETST\fP \fIrefname\fP..TP.B "EF [arg]"Even-page footer..TP.B "EH [arg]"Even-page header..TP.B ENEquation end..TP.B "EQ [label]"Equation start..TP.B "EX [title [override [flag [refname]]]]"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -