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

📄 cawf.1

📁 Unix操作系统minix 2.0源码
💻 1
📖 第 1 页 / 共 2 页
字号:
.\"	manual page for cawf(1).\".\".\"	Copyright (c) 1991 Purdue University Research Foundation,.\"	West Lafayette, Indiana 47907.  All rights reserved..\".\"	Written by Victor A. Abell <abe@cc.purdue.edu>,  Purdue.\"	University Computing Center.  Not derived from licensed software;.\"	derived from awf(1) by Henry Spencer of the University of Toronto..\".\"	Permission is granted to anyone to use this software for any.\"	purpose on any computer system, and to alter it and redistribute.\"	it freely, subject to the following restrictions:.\".\"	1. The author is not responsible for any consequences of use of.\"	   this software, even if they arise from flaws in it..\".\"	2. The origin of this software must not be misrepresented, either.\"	   by explicit claim or by omission.  Credits must appear in the.\"	   documentation..\".\"	3. Altered versions must be plainly marked as such, and must not.\"	   be misrepresented as being the original software.  Credits must.\"	   appear in the documentation..\".\"	4. This notice may not be removed or altered..\".\" Some of the stuff in this file is a bit contorted, because it's also.\" the regression-test input..nr ES 5n.de ES.PP.in +\\n(ESu.nf...de EE.in -\\n(ESu.fi.PP...de PT.ie \\n(.$>1 .TP "\\$2".el .TP.ie !'\\$1'' \\$1.el \(bu...ds Nr \fInroff\fR.TH CAWF 1 "November, 1992".BY "Purdue University".SH NAMEcawf, nroff \- C version of the nroff-like, Amazingly Workable (text) Formatter.SH SYNOPSIS.B cawf[.BI \-c config] [.BI \-d device] [.B \-e] [.BI \-f font] [.B \-h] [.BI \-m acros] [ file ... ].SH DESCRIPTION.if t .tm OOPS -- CAWF THINKS IT'S TROFF!!!.I Cawfformats the text from the input \fIfile\fR(s)(standard input if none)in an approximation of \*(Nr.It comes closest to duplicating \*(Nr's.B manor.B msmacro package styles.It has some limited support for \*(Nr's.B memacros..SH OPTIONSOptions must precede file names..TP.BI \-c configdefines an alternate path to the device configuration file.Normally the device configuration file is found in.I device.cfin the.I cawflibrary (see the.B FILESsection)..IPThe device configuration file contains device character strings forselecting fonts and the bold or italic type faces.See the.B DEVICESsection for more information..TP.BI \-d devicespecifies the name of the output device.There are three built\-in devices \- ANSI, NONE and NORMAL \- andother devices may be defined in the device configuration file.See the.B DEVICESsection for more information..IPThe NORMAL device is the default..TP.B \-edirects.I cawfto issue an eject (FF or ^L) after the last page..TP.BI \-f fontspecifies the one font for the device, declared with the.BI \-d deviceoption, that is to be used for theentire document..I Fontmust match a font associated with the device's stanza in the deviceconfiguration file.See the.B DEVICESsection for more information..IPNo.I fontmay be specified for the built\-in devices ANSI, NONE or NORMAL..TP.B \-hrequests a help display..TP.BI \-m acrospecifies the macro file to be used.The standard.I cawfdistribution supplies macro files to support ``\-man'', ``\-me'' or ``\-ms''..I Cawffinds a macro file by constructing its name from `m',.I acroand.B .mac\- e. g.,.BI \-m anis converted to.BR man.mac .The default directory for macro files is defined when.I cawfis compiled; it's \fIC:\\SYS\\LIB\\CAWF\fP in the MS\-DOS environment;.I /usr/lib/cawfin the UNIX environment..TPfile ...are the names of files containing \*(Nr source text..SH NROFF COMPATIBILITY.I Cawfaccepts the following raw \*(Nr requests:.LP	.\e"	.ad	.bp	.br	.ce	.de	.di	.ds	.el	.fi	.fl	.ft	.i0	.ie	.if	.in	.it	.lg	.li	.ll	.ls	.na	.ne	.nf	.nr	.ns	.pl	.po	.ps	.rm	.rn	.rr	.rs	.so	.sp	.ta	.ti	.tm	.tr.LPand the following in-text codes:.ES\e$	\e%	\e*	\e"	\ec	\ef	\eh	\ek\en	\es	\ew.EEplus the full list of \*(Nr/\c.I troffspecial characters inthe original V7 \fItroff\fR manual..PPMany restrictions are present; the behavior in general is a subset of\*(Nr's.  Of particular note are the following:.IP \(bu 2The fully supported nroff request control character is the period.There is limited support for the  non\-break, acute accent controlcharacter..PTPoint sizes do not exist;.B .psis ignored..PTSpecial vertical spacing \- the.B .vsrequest included \- is ignored..PTConditionals cover only the numeric comparisons >, =, <, >= and <= on.BR \en(.$ ;string com\%par\%isons between a macro parameter and a literal;.B n(always true);and.BR t(always false).Only single line input is accepted from conditionals;multi\-line input \- e.g., \\(\fIanything\fP\\) \- is not supported..PTThe handling of strings is generally primitive..IP \(buHorizontal motion via.B \ehmust be supplied with a number register interpolation and must bepositive - e. g.,.BR \ew\en(NN ,where the value in NN is >= 0..IP \(buThe.B \ekfunction is reliable only after TAB characters, so it is useful onlyfor measuring table positions..IP \(buThe.B .direquest only turns output on and off \- any macro name is ignored..IP \(buExpressions - e. g.,.B .sp- are reasonably general, but the.BR | ,.BR & ,and.BR :\&operators do not exist, there must be white space between the end of the \*(Nrfunction and the beginning of the expression, and .B \ewrequires that quote (') be used as the delimiters..B \ewcounts the characters inside the quotes and scales the result in ens,so that, for example, \ew'\e(bu' equals 4n, and \ew'\e(bu'/1n equals 4..PTThe only acceptable count for the.B .itrequest is one,and it is effective only with.BR man ,.B meor.B msmacros..PTThe default scaling factor is `v' for the.BR .ne ,.BR .sp ,and.B .plraw \*(Nr requests; it is `u' for.BR .nr ;and `n' for.BR .in ,.BR .ll ,.BR .ls ,.BR .po ,.BR .taand.BR .ti .(A different scaling factor may be specified with a trailing character.).PTSome obsolete or meaningless requests \-.BR .i0 ,.B .lgand.B .li\&\- are silently ignored..PWhite space at the beginning of lines,and embedded white space within lines is dealt with properly.Sentence terminators at ends of lines are understood to implyextra space afterward in filled lines.Tabs are im\%plemented crudely and not exactly, althoughusually they work as expected.Hyphenation is done only at explicit hyphens, em-dashes, and \*(Nrdiscretionary hyphens.By default bold and italic characters are emulated with backspacing andoverprinting, but the.B \-dand.B \-foptions, combined with the contents of the device configuration file,may be used to generate special codes for bold and italic characters.(See the.B DEVICESsection for more information.).SH "MAN MACROS"The.B manmacro set replicates the full V7 manual macros,plus a few semi-random oddballs.The full list is:.ES\&.AT	.B	.BI	.BR	.BY	.DE	.DS	.DT	.HP	.I\&.IB	.IP	.IR	.IX	.LP	.NB	.P	.PD	.PP	.RB\&.RE	.RI	.RS	.SH	.SM	.SS	.TH	.TP	.UC.EE.B .BYand.B .NBeach take a single string argument (respectively, an indi\%cation ofauthorship and a note about the status of the manual page) and arrangeto place it in the page footer..B .ATand.B .IXdo nothing..SH "ME MACROS"The.B memacro subset has been derived from the.I cawf.B msmacros by Chet Creider <creider@csd.uwo.ca>.It includes:.ES\&.(l	.(q	.)l	.)q	.b	.bu	.i	.ip	.lp	.np\&.pp	.r	.sh	.sm	.u	.uh.EEThe .(l C and .(l L options are supported.In addition, the .AB, .AE, .AI, .AU, .DA, .ND, .TL and .UX macros havebeen retained from the.B msset, and the .XP macro has been borrowed from the Berkeley additions to the.B msmacro set..SH "MS MACROS"The.B msmacro set is a substantial subset of the V7 manuscript macros.The macros are:.ES\&.AB	.AE	.AI	.AU	.B	.CD	.DA	.DE	.DS	.I\&.ID	.IP	.LD	.LG	.LP	.ND	.NH	.NL	.PP	.QE\&.QP	.QS	.R	.RE	.RP	.RS	.SH	.SM	.TL	.TP\&.UL	.UX.EESize changes are recognized but ignored, as are.B .RPand.BR .ND ..B .ULjust prints its argument in italics..BR .DS / .DEdoes not do a keep,nor do any of the other macros that normally imply keeps..LPThe.B DYstring variable is available.The.BR PD ,.BR PI ,and.BR LLnumber registers exist and can be changed..SH "HEADERS AND FOOTERS".I Cawfallows the placement of text into the five line header andfooter sections from the.BR LH ,.BR CH ,.BR RF ,.BR LF ,.BR CF ,and.B RFstring variables, via the control of the.B .^brequest:.LP.ta \w'.^b HF 0'u+3n.nf\&.^b fh 1	enables header string placement on the first page\&.^b fh 0	disables header string placement on the first page\&.^b HF 1	enables header/footer string placement\&.^b HF 0	disables header/footer string placement.fi

⌨️ 快捷键说明

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