groff �Ǵ���� Unix ϵͳ�����ṩ�����е��ı���ʽ������ nroff/troff �� GNU �汾����һ�����ڱ�д�ֲ�ҳ���������̽ӿڵȵ������ĵ����ڱ����У����ǽ�����չʾ���ʹ�� groff ��д���Լ��� man �ֲ�ҳ��
�� Unix ϵͳ������������ı�����ϵͳ��troff �� nroff���������ɱ���ʵ����Ϊ��ʼ�� Unix �������ģ���ʵ�ϣ����� Unix ϵͳ�IJ���ԭ�����Ϊ��֧��������һ���ı�����ϵͳ��������ı��������ĵ�һ���汾������ roff����Ϊ “runoff”——���������Ժ������ troff������ʱ����Ϊ�ض������ֻ����������nroff �Ǹ���һЩ�İ汾������Ϊ�˸��� Unix ϵͳ�ı��ı���������groff �� nroff �� troff �� GNU ʵ�֣����� Linux ϵͳ�ϡ��������˼�����չ���ܺ�һЩ��ӡ�豸����������
groff �ܹ������ĵ������º��鼮���ܶ�ʱ�����������������ı���ʽ��ϵͳ���� TeX����Ѫ��һ����Ȼ����groff���Լ�ԭ���� nroff����һ�����еĹ����� TeX ���������ȱ���ģ�������ͨ ASCII �����������ϵͳ�����ɴ�ӡ���ĵ��������úܺã��� groff ȴ�ܹ����ɿ��������������ͨ ASCII��������������Ĵ�ӡ����ֱ������ͨ�ı���ӡ�������Ҫ��������������ĵ��Լ���ӡ�ı�����groff Ҳ����������Ҫ�ģ���ȻҲ�����Ʒ���� Texinfo��Lametex �ȵȣ���
groff ����һ���ô������� TeX С�ܶࣻ������Ҫ��֧���ļ��Ϳ�ִ�г�����������С���� TeX �汾���١�
groff һ���ض�����;�����ڸ�ʽ�� Unix �� man �ֲ�ҳ���������һ�� Unix ����Ա����϶���Ҫ��д�����ɸ��� man �ֲ�ҳ���ڱ����У����ǽ�ͨ����дһ����̵� man �ֲ�ҳ������ groff ��ʹ�á�
�� TeX һ����groff ʹ���ض����ı���ʽ��������������δ����ı����������Ա� TeX ֮���ϵͳ��������һЩ�����Ǹ��Ӽ�ࡣ���⣬groff �ڻ����ĸ�ʽ����֮���ṩ�˼���������������Щ����������ΪһЩ�ض����͵��ĵ������Ƶġ��ٸ����ӣ� mgs �����д�����»����ĺ��ʺϣ��� man ������� man �ֲ�ҳ��
��д man �ֲ�ҳ
�� groff ��д man �ֲ�ҳʮ�ּ�Ҫ����� man �ֲ�ҳ��������������һ��������Ҫ��Դͷ����ѭ����������������ʾ������������У����ǽ�Ϊһ���鹹������ coffee ��д man �ֲ�ҳ���������Ը��ַ�ʽ��������������Ȼ���
ʹ�������ı��༭�����������´��룬������Ϊ coffee.man����Ҫ����ÿ�е��кţ����ǽ����ڱ����е�˵����
.TH COFFEE 1 "23 March 94"
.SH NAME
coffee \- Control remote coffee machine
.SH SYNOPSIS
\fBcoffee\fP [ -h | -b ] [ -t \fItype\fP ]
\fIamount\fP
.SH DESCRIPTION
\fBcoffee\fP queues a request to the remote
coffee machine at the device \fB/dev/cf0\fR.
The required \fIamount\fP argument specifies
the number of cups, generally between 0 and
12 on ISO standard coffee machines.
.SS Options
.TP
\fB-h\fP
Brew hot coffee. Cold is the default.
.TP
\fB-b\fP
Burn coffee. Especially useful when executing
\fBcoffee\fP on behalf of your boss.
.TP
\fB-t \fItype\fR
Specify the type of coffee to brew, where
\fItype\fP is one of \fBcolumbian\fP,
\fBregular\fP, or \fBdecaf\fP.
.SH FILES
.TP
\fC/dev/cf0\fR
The remote coffee machine device
.SH "SEE ALSO"
milk(5), sugar(5)
.SH BUGS
May require human intervention if coffee
supply is exhausted.
�嵥 1��ʾ�� man �ֲ�ҳԴ�ļ�
��Ҫ����Щ��ɬ�Ĵ����Ż����㡣�ַ������� \fB��\fI �� \fR �ֱ������ı�����Ϊ���塢б������壨�������壩��\fP ��������Ϊǰһ��ѡ������塣
������ groff �����Ե㣨.����ͷ���������ס��� 1 ���У����ǿ����� .TH �����������ø� man �ֲ�ҳ�ı���Ϊ COFFEE��man �IJ���Ϊ 1���Լ��� man �ֲ�ҳ�����°汾�����ڡ���˵����man �ֲ�ĵ� 1 ���������û������ 2 ��������ϵͳ���õȵȡ�ʹ�� man man �����˽�������֣���
�ڵ� 2 �У�.SH �������ڱ��һ���ڵĿ�ʼ�������ý�����Ϊ NAME��ע�⣬�ֵ� Unix man �ֲ�ҳ����ʹ�� NAME�� SYNOPSIS��DESCRIPTION��FILES��SEE ALSO��NOTES��AUTHOR �� BUGS �Ƚڣ����������Ҳ��ҪһЩ����Ŀ�ѡ�ڡ���ֻ�DZ�д man �ֲ�ҳ�Ĺ���������ǿ��������������ˡ�
�� 3 �и�����������ƣ�����һ�����ߣ�-������������������ NAME ��ʹ�������ʽ�Ա���� man �ֲ�ҳ���Լӵ� whatis ���ݿ���——���������� man -k �� apropos ���
�� 4-6 �����Ǹ����� coffee �����ʽ�Ĵ�١�ע�⣬б�� \fI...\fP ���ڱ�ʾ�����еIJ�������ѡ�����÷�������������
�� 7-12 �и����˸������ժҪ���ܡ�����ͨ�����ڱ�ʾ������ļ������ơ�
�� 13 �У�ʹ�� .SS ��ʼ��һ����Ϊ Options ���ӽڡ�
���ŵ� 14-25 ����ѡ���б�����ʹ�ò����б���ʽ��ʾ�������б��е�ÿһ���� .TP ��������ǣ�.TP ������Dz�������֮���Ǹ�����ı������磬�� 14-16 �У�
.TP
\fB-h\P
Brew hot coffee. Cold is the default.
������ʾ���£�
-h Brew hot coffee. Cold is the default.
�� 26-29 �д����� man �ֲ�ҳ�� FILES �ڣ��������������������ʹ�õ��ļ�������ʹ�� .TP ��������ʾ�ļ��б���
�� 30-31 �У������� SEE ALSO �ڣ����ṩ���������Բο��� man �ֲ�ҳ��ע�⣬�� 30 �е� .SH ������ "SEE ALSO" ʹ��������������������Ϊ .SH ʹ�õ�һ���ո����ָ��ýڵı��⡣�κγ���һ�����ʵı��ⶼ��Ҫʹ��������������Ϊһ����һ������
��� 32-34 �У��� BUGS �ڡ�
��ʽ���Ͱ�װ man �ֲ�ҳ
Ϊ���������Ļ�ϲ鿴����ֲ�ҳ��ʽ������ʽ�������ʹ���������
$ groff -Tascii -man coffee.man | more
-Tascii ѡ����� groff ������ͨ ASCII �����-man ���� groff ʹ�� man �ֲ�ҳ�꼯�ϡ����һ����������� man �ֲ�ҳ��ʾӦ�����¡�
COFFEE(1) COFFEE(1)
NAME
coffee - Control remote coffee machine
SYNOPSIS
coffee [ -h | -b ] [ -t type ] amount
DESCRIPTION
coffee queues a request to the remote coffee machine at
the device /dev/cf0\. The required amount argument speci-
fies the number of cups, generally between 0 and 12 on ISO
standard coffee machines.
Options
-h Brew hot coffee. Cold is the default.
-b Burn coffee. Especially useful when executing cof-
fee on behalf of your boss.
-t type
Specify the type of coffee to brew, where type is
one of columbian, regular, or decaf.
FILES
/dev/cf0
The remote coffee machine device
SEE ALSO
milk(5), sugar(5)
BUGS
May require human intervention if coffee supply is
exhausted.
��֮ǰ�ᵽ���ģ�groff �ܹ������������͵������ʹ�� -Tps ѡ����� -Tascii �������� PostScript ���������Խ��䱣��Ϊ�ļ����� GhostView �鿴������һ�� PostScript ��ӡ����ӡ������-Tdvi �������豸�ص� .dvi ����������� TeX �������
�����ϣ���ñ��������ϵͳ��Ҳ���Բ鿴��� man �ֲ�ҳ������Ҫ��װ��� groff Դ�ļ��������û��� %MANPATH Ŀ¼���档���� man �ֲ�ҳ���� /usr/man����һ���ֵ� man �ֲ�ҳӦ�÷��� /usr/man/man1 �£���ˣ�ʹ�����
$ cp coffee.man /usr/man/man1/coffee.1
�⽫��װ�� man �ֲ�ҳ�� /usr/man �й�������ʹ�ã�ע��ʹ�� .1 ��չ�������� .man������������ִ�� man coffee ����ʱ���� man �ֲ�ҳ�ᱻ�Զ����¸�ʽ�������ҿɲ鿴���ı��ᱻ���浽 /usr/man/cat1/coffee.1.Z �С�
����㲻��ֱ�Ӹ��� man �ֲ�ҳ��Դ�ļ��� /usr/man������˵�㲻��ϵͳ����Ա������ɴ������Լ��� man �ֲ�ҳĿ¼������������뵽��� %MANPATH��%MANPATH ���������ĸ�ʽͬ %PATH һ�����ٸ����ӣ�Ҫ����Ŀ¼ /home/mdw/man �� %MANPATH ��ֻ��Ҫ��
$ export MANPATH=/home/mdw/man:$MANPATH
groff �� man �ֲ�ҳ�껹������������ѡ���ʽ������ҵ����ǵ���ð취�Dz鿴 /usr/lib/groff �е��ļ��� tmac Ŀ¼�����˺��ļ�������ͨ������������ṩ��������ĵ���Ҫ�� groff ʹ���ض��ĺ꼯�ϣ�ֻ��Ҫʹ�� -m macro ���� -macro�� ѡ����磬Ҫʹ�� mgs �꣬ʹ�����
groff -Tascii -mgs files...
groff �� man �ֲ�ҳ�����ѡ�������˸���ϸ�ڡ�
���ҵ��ǣ���ͬ groff �ṩ�ĺ꼯��û�����Ƶ��ĵ����� 7 ���ֵ� man �ֲ�ҳ�ṩ��һЩ�����磬man 7 groff_mm ����� mm �꼯�ϵ���Ϣ��Ȼ�������ĵ�ͨ��ֻ�������� groff ʵ���в�ͬ���¹��ܣ����������Ѿ��˽��ԭ���� nroff/troff �꼯�ϣ����� DWB��the Documentor's Work Bench������ѵ���Ϣ��Դ������һ����������Щ����꼯��ϸ�ڵ��顣Ҫ�˽����ı�д man �ֲ�ҳ����Ϣ������Կ��� man �ֲ�ҳԴ�ļ���/usr/man �У�����ͨ���������Ƚ�Դ�ļ��������
��ƪ�����ǡ�Running Linux�� �е�һ�£��� Matt Welsh �� Lar Kaufman �������������棨ISBN 1-56592-100-3�����ڱ����У��������� Linux ��ʹ�õĸ����ı���ʽ��ϵͳ�Ľ̡̳����ڵġ�Linux Journal���е����ݼ���Running Linux��Ӧ�ÿ��Ը����ṩ�� Linux ��ʹ�ø����ı����ߵ����ÿ��ˡ�
�������ø��µ�ַ��//m.ajphoenix.com/linux/32996.html