groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff] man-page macro


From: Bernd Warken
Subject: [Groff] man-page macro
Date: Wed, 22 Mar 2000 22:08:09 +0100

I propose to add the following macro .MP to both tmac.an and tmac.mm.
It is a convenient way to display a man page entry in the style required 
by man(7).

.\" format: .MP Entry Section [Punctuation...]
.\" Displays Entry in bold, Section in roman enclosed by () and
.\" optionally appends the rest in the starting font.
.de MP
.ds @tmp@ \\fB\\$1\\fP\\fR(\\$2)\\fP
.shift 2
address@hidden@]\\$*
.rm @tmp@
..

Try the following example sentence:

.MP groff 1
and
.MP grog 1
are the front-end binariess, whereas
.MP groff_man 5 ,
.MP groff_mm 5 , and
.MP groff_ms 5
describe common macro packages.


Bernd Warken <address@hidden>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]