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

📄 tmac.doc.old

📁 早期freebsd实现
💻 OLD
📖 第 1 页 / 共 3 页
字号:
.	nr eP \\n(eP-1.	nr oP 0.	nr eZ 0.	uO.\}...\" option end.de oE.uO.ie \\n(hP \{\.       as f1 \\*(rB\\*(h1\\*(h2\\*(h3.	Oz.	nr oZ 0.\}.el \{\.	as f1 \\*(rB.\}.ie "\\*(iM"Op" \{\.	if \\n(aO .aO.if t \{\.	if (\\n(.lu-\\n(.ku-\\n(.ou-(2*\\n(fWu))<\w'\fC\\*(f1'u .br.\}.if n \{\.	nr aa \w'\\*(f1'u.\" .	nr qq \\n(.lu-\\n(.ku-\\n(.ou.\" \&aa == \\n(aa, f1==\\*(f1, qq==\\n(qq.	if (\\n(.lu-\\n(.ku-\\n(.ou-\\n(aau)<=(8*\\n(fWu) .br.\}\&\\*(f1.	ds iM.	ds f1.	hy.\}.el .nr oE \\n(oE-1...de aO.as f1 \\*(rB.nr aO \\n(aO-1.if \\n(aO >0 .aO...\".de Xr.if \\n(.$<=1 \{\.	ie \\n(.$==1 \{\.		if !"\\*(iM"" .as f1 \&\\*(xR\\$1\fP.		if "\\*(iM"" \&\\*(xR\\$1\fP.	\}.	el .tm Xr Usage: .Xr manpage_name [section#] \\*(Pu.\}.if \\n(.$==2 \{\.	rZ \\$2.	ie "\\*(iM"" \{\.		ie \\n(rZ \&\\*(xR\\$1\fP\\$2.		el \&\\*(xR\\$1\fP(\\$2).	\}.	el \{\.		ie \\n(rZ .as f1 \&\\*(xR\\$1\fP\\$2.		el .as f1 \&\\*(xR\\$1\fP(\\$2).	\}.\}.if \\n(.$>=3 \{\.	rZ \\$2.	ie \\n(rZ \{\.		ie !"\\*(iM"" .as f1 \&\\*(xR\\$1\fP\\$2\\$3\\$4\\$5\\$6\\$7\\$8.		el \&\\*(xR\\$1\fP\\$2\\$3\\$4\\$5\\$6\\$7\\$8.	\}.	el \{\.		rZ \\$3.		ie \\n(rZ \{\.			if !"\\*(iM"" \{\.			     as f1 \&\\*(xR\\$1\fP(\\$2)\\$3\\$4\\$5\\$6\\$7\\$8.			\}.			if "\\*(iM"" \{\\&\\*(xR\\$1\fP(\\$2)\\$3\\$4\\$5\\$6\\$7\\$8.			\}.		\}.		el \{\.			tm rZ = \\n(rZ  the arg is \\$3.			tm Xr-XX Usage: .Xr manpage_name [section#] \\*(Pu.		\}.	\}.\}...\".\".de Ex.tm Ex defunct, Use .Dl: \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9...\" Display (one) Line of text..de Dl.ie "\\*(iM"" \{\'	ta .5i 1i 1.5i 2i 2.5i 3i 3.5i 4i 4.5i 5i 5.5i 6i 6.5i.	in \\n(.iu+\\n(Dsu.	mN \\$1.	ie \\n(mN .\\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9.	el \{\.		nr cF \\n(.f.\"	 Literal font is none specified\&\\*(lI\\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9.		ft \\n(cF.	\}.	in \\n(.iu-\\n(Dsu.\}.el \{\.	mN \\$1.	ie \\n(mN .\\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8.	el \{\.		nr cF \\n(.f.		ds f1 \&\\*(lI\\&\\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8.		as f1 \&\f\\n(cF.	\}.\}...\".\".\" user set Tagged Paragraph Width (used in both Dp and Tp).de Tw.ie \\n(.$==0 \{\.	nr aa 0.\}.el \{\.	mN \\$1.	ie \\n(sW>2 \{\.		nr tW (\\n(sW+3)*\\n(fWu).	\}.	el \{\.		ie \\n(mN .nr tW \\n(mN.		el .nr tW \\$1.	\}.	nr tF 1.\}...\".de Dw.Tw \\$1...\".de Di.ie \\n(.$==0 \{\.	nr tI \\n(Dsu.\}.el \{\.	sW \\$1.	if \\n(sW>=2 \{\.		nr tI \\$1u.	\}.	if \\n(sW<2 \{\.		if "\\$1"L" \{\.			nr tI 0.		\}.	\}.\}...\" tagged paragraph.\" initialize baby stack variables.nr np 0.nr p1 0.ds s\n(np.\".de Tp.ie "\\$1"" .pE p s np.el \{\.	ds iM Tp.	mN \\$1.	ie \\n(tF \{\.		ds tC Tw.		nr tC 1.		nr tF 0.	\}.	el \{\.		if !"Tw"\\*(s\\n(np" \{\.			ie \\n(mN \{\.				ds tC \\$1.				nr tW \\n(mN.			\}.			el \{\.				ds tC Tx.				nr tW \\n(Tx.			\}.			if !"\\*(tC"\\*(s\\n(np" .nr tC 1.		\}.	\}.	sp \\n(vVu.	if !\\n(cR .ne 2.	if \\n(tC \{\.		nr np \\n(np+1.		nr p\\n(np \\n(tW.		ds s\\n(np \\*(tC.		nr tC 0.		ds tC.		in \\n(.iu+\\n(p\\n(npu.	\}.	ie \\n(mN \{\.		ds f1.		\\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9.		if !"\\$1"Cx" .pT st p np.	\}.	el \{\.		br.		ev 1.		fi.		di Td\&\\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9.		br.		di.		ev.		na.		ds tD \\*(Td\\.		pT di p np.	\}.\}...\".\".\" Complex Expression Macro.\".\"	 TODO: add length across line boundary check (like Li).de Cx.hy 0.ie \\n(.$==0 \{\.	if "\\*(iM"Cx" \{\.		ds iM.		if \\n(oE .oE\&\\*(f1.		ds f1.	\}.	if "\\*(iM"Tp" .pT st p np.	if "\\*(iM"Dp" .pT st q mp.\}.el \{\.	if "\\*(iM"" \{\.		ds iM Cx.		ds f1 \&.	\}.	mN \\$1.\" Here are the args: `\\$1'  `\\$2'  `\\$3'  `\\$4'.	ie \\n(mN .\\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9.	el \{\.		as f1 \&\\$1.		if \\n(.$>1 .Cx \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9.	\}.\}...\" Prefix string in default font to content specified string.de Pf.Cx \\$1.\\$2 \\$3 \\$4 \\$5.Cx...\" Suffix string in default font to content specified string.de Sf.Cx \\$1 \\$2.Cx \\$3.Cx...\" Simple Option Begin.de Ob.hy 0.ie "\\*(iM"" \{\.	ev 2.	fi.	di oB.\}.el \{\.tm shouldn't be here.	as f1 \&[.	mN \\$1.	ie \\n(mN .\\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9.	el \{\.		as f1 \&\\$1.		if \\n(.$>1 .Oc \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9.	\}.\}...de Oc.as f1 \&\\$1.if \\n(.$>1 .Oc \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9...de Oe.hy 0.ie "\\*(iM"" \{\.	br.	di.	ev.	ds bO \\*(oB\\\&[\\*(bO\&].\}.el \{\.	as f1 \&].\}...\" White space for Cx.de Ws.Cx \&\ \&...\" tagged paragraph.\" initialize baby stack variables.nr mp 0.nr q1 0.ds r\n(np.\".\" Complex Dp tag.de Dc.Dp Cx \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8...\" Complex Tp tag.de Tc.Tp Cx \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8...\" Tag with a flag and an argument with a space.de Ta.if "\\$2"" \{\.	Tp Fl \\$1.\}.el \{\.	Tp Fl \\$1.	Cx \&\ \&.	Ar \\$2 \\$3.	Cx.\}...de Da.Dp Cx Fl \\$1.Ws.Ar \\$2 \\$3.Cx...de To.Tp Cx Fl \\$1.Ar \\$2 \\$3.Cx...de Do.Dp Cx Fl \\$1.Ar \\$2 \\$3.Cx...\" Blended tag toggle.de Bt.ie \\n(tP==0 .nr tP 1.el .nr tP 0...\" Bullet paragraph.de Bu.Tp Sy \&\(bu...\" Display tagged paragraph.de Dp.ie "\\$1"" \{\.	pE q r mp.	sp \\n(vVu.\}.el \{\.       ds iM Dp.       mN \\$1.       ie \\n(tF \{\.               ds tC Tw.               nr tC 1.               nr tF 0.       \}.       el \{\.               if !"Tw"\\*(r\\n(mp" \{\.                       ie \\n(mN \{\.                               ds tC \\$1.                               nr tW \\n(mN.                       \}.                       el \{\.                               ds tC Tx.                               nr tW \\n(Tx.                       \}.                       if !"\\*(tC"\\*(r\\n(mp" .nr tC 1.               \}.       \}.       if !\\n(cR .ne 2.       if \\n(tC \{\.               nr mp \\n(mp+1.               nr q\\n(mp \\n(tW.               ds r\\n(mp \\*(tC.               nr tC 0.               ds tC.		ie \\n(tIu==\\n(Dsu .nr i\\n(mp \\n(Dsu.		el \{\.			nr i\\n(mp \\n(tIu.			nr tI \\n(Dsu.		\}.              	in \\n(.iu+\\n(i\\n(mpu.		sp \\n(vVu.		in \\n(.iu+\\n(\\q\\n(mpu.       \}.       ie \\n(mN \{\.               \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9.               if !"\\$1"Cx" .pT st q mp.       \}.       el \{\.               br.               ev 1.               fi.               di Td\&\\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9.               br.               di.               ev.               na.               ds tD \\*(Td\\.               pT di q mp.       \}.\}...\".\" .pE number_stack string_stack counter.de pE.ie "\\$3"mp" \{\.	in \\n(.iu-(\\n(\\$1\\n(\\$3u)-(\\n(i\\n(mpu).	rr i\\n(mp.\}.el .in \\n(.iu-\\n(\\$1\\n(\\$3u.\" .in \\n(.iu-\\n(\\$1\\n(\\$3u.if \\n(\\$3<=0 .tm Extraneous call .Tp or .Dp.rr \\$1\\n(\\$3.rm \\$2\\n(\\$3.nr \\$3 \\n(\\$3-1.ds iM...\".\" .pT [st or di] number_stack counter.de pT.ie "\\$1"st" \{\.	nr bb \\n(\\$2\\n(\\$3u.	ti -\\n(bbu.	ie (\\n(\\$2\\n(\\$3u-2n)<=\w'\\*(f1'u \{\&\\*(f1\\*(tP.		if \\n(tP==0 .br.	\}.	el \\*(f1\h'|\\n(\\$2\\n(\\$3u'\c.\}.el \{\.       ti -\\n(\\$2\\n(\\$3u.	ie (\\n(\\$2\\n(\\$3u-2n)<=\\n(dlu \{\&\\*(tD\\*(tP.	       if !\\n(tP .br.	\}.	el \\*(tD\h'|\\n(\\$2\\n(\\$3u'\c.	if t 'ad.\}.	ds iM.	ds f1'fi...\".\" The new SH.\".de Sh.\" set Sh state off, check for list state before calling indent (.In).nr nS 0.nr sE 0.ie "\\$1"NAME" \{\.\"	name state on, housekeep (headers & footers).	hK'	in 0.\}.el \{\.	if "\\$1"SYNOPSIS" .nr nS 1.	in 0.\}.pL'sp.ns.ta .5i 1i 1.5i 2i 2.5i 3i 3.5i 4i 4.5i 5i 5.5i 6i 6.5i.if !\\n(cR .ne 3'fi\&\fB\\$1 \|\\$2 \|\\$3 \|\\$4 \|\\$5 \|\\$6 \|\\$7 \|\\$8 \|\\$9\&\fP\&.in \\n(.iu+\\n(Tiu.if "\\$1"SEE" .nr sE 1.ns...\".\" Nd minus sign for an en dash used in .Sh Name.de Nd\&\-\& \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9...de Ss.sp.ti -.25i\&\fB\\$1 \|\\$2 \|\\$3 \|\\$4 \|\\$5 \|\\$6 \|\\$7 \|\\$8 \|\\$9\&\fP\&.ta .5i 1i 1.5i 2i 2.5i 3i 3.5i 4i 4.5i 5i 5.5i 6i 6.5i.if !\\n(cR .ne 2.br...\"	.if "\\$1"Ss" .in \\n(.iu+\\n(sIu.\"...\".\".\" Column Macro.\".hy 0.de Cw.ie \\n(.$==0 \{\.	br.	in \\n(.iu-\\n(eWu.	ta .5i 1i 1.5i 2i 2.5i 3i 3.5i 4i 4.5i 5i 5.5i 6i 6.5i.\}.el \{\.	Pp.	if \\n(.$==1 \{\.		ta \w'\\$1    'u.		nr eW \w'\\$1    'u'		in \\n(.iu+\\n(eWu.	\}.	if \\n(.$==2 \{\.		ta \w'\\$1    'u +\w'\\$2    'u.		nr eW \w'\\$1    'u+\w'\\$2    'u'		in \\n(.iu+\\n(eWu.	\}.	if \\n(.$==3 \{\.		ta \w'\\$1    'u +\w'\\$2    'u +\w'\\$3    'u.		nr eW \w'\\$1    'u+\w'\\$2    'u+\w'\\$3    'u'		in \\n(.iu+\\n(eWu.	\}.	if \\n(.$==4 \{\.	ta \w'\\$1    'u +\w'\\$2    'u +\w'\\$3    'u +\w'\\$4    'u.	nr eW \w'\\$1    'u+\w'\\$2    'u+\w'\\$3    'u +\w'\\$4    'u'	in \\n(.iu+\\n(eWu.	\}.	if \\n(.$==5 \{\.ta \w'\\$1    'u +\w'\\$2    'u +\w'\\$3    'u +\w'\\$4    'u +\w'\\$5    'u.nr eW \w'\\$1    'u +\w'\\$2    'u +\w'\\$3    'u +\w'\\$4    'u +\w'\\$5    'u'	in \\n(.iu+\\n(eWu.	\}.\}...de Cl.ti -\\n(eWu.mN \\$1.ie \\n(mN .\\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9.el \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9...nr dQ 0.de Ds.ie !"\\$1"" \{\.	mN d\\$1.	if \\n(mN \{\.		nr dQ \\n(dQ+1.		d\\$1.	\}.\}.el .br.nf...de Df.ie !"\\$1"" \{\.       mN d\\$1.       if \\n(mN \{\.               nr dQ \\n(dQ+1.               d\\$1.       \}.\}.el .br...de Dn\\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9.nf...de dI.nr d\\n(dQ \\n(dIu.in \\n(.iu+\\n(dIu...de dC.nr d\\n(dQ (\\n(.l-\\n(.i)/4u.in \\n(.iu+\\n(d\\n(dQu...de dR.nr d\\n(dQ (\\n(.l/3)u.in \\n(.iu+\\n(d\\n(dQu...de dL.nr aa 0...de De.br.if \\n(d\\n(dQ \{\.	in \\n(.iu-\\n(d\\n(dQu.	rr d\\n(dQ.	nr dQ \\n(dQ-1.\}.fi...\".de Fn.ie \\n(.$==0 \{\.	tm Usage: .Fn function_name function_arg(s) ... \\*(Pu.\}.el \{\.	nr cF \\n(.f.	ie \\n(.$==1 .ds f1 \&\\*(nM\\$1\fP\\*(lP\fP\\*(rP\fP.	el \{\.		ds f1 \\*(nM\\$1\fP\\*(lP.		nr aa 0.		rC \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9.	\}.	if "\\*(iM"" \{\\&\\*(f1.		ds f1.	\}.\}...\".de rC.rZ \\$1.ie \\n(rZ \{\.	as f1 \f\\n(cF\\*(rP\f\\n(cF\\$1\\$2\\$3\\$4\\$5\\$6\\$7.\}.el \{\.	ie \\n(aa .as f1 \fP, \\*(aR\\$1.	el .as f1 \\*(aR\\$1.	nr aa 1.	ie \\n(.$>1 .rC \\$2 \\$3 \\$4 \\$5 \\$6 \\$7.	el .as f1 \fP\\*(rP\fP.\}..

⌨️ 快捷键说明

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