-man macros for on-line manual entries
Gary Perlman
perlman at wanginst.UUCP
Wed Oct 9 12:19:51 AEST 1985
The following addition to the -man macros makes for shorter
and more readable on-line manual entries. It removes the
page breaks, which serve no useful function for an online
version, and make the page wider, using more of the screen.
This is a very quick job, but it seems to work well. Please
send me any fixes.
You can put this in your local version of man, so that nroff
to make a `cat'able version of the manual includes the file
in the command.
#! /bin/sh
# This is a shell archive, meaning:
# 1. Remove everything above the #! /bin/sh line.
# 2. Save the resulting text in a file.
# 3. Execute the file with /bin/sh (not csh) to create the files:
# online.macros
# This archive created: Tue Oct 8 22:06:03 1985
# By: Gary Perlman (Wang Institute, Tyngsboro, MA 01879 USA)
export PATH; PATH=/bin:/usr/bin:$PATH
if test -f 'online.macros'
then
echo shar: "will not over-write existing file 'online.macros'"
else
cat << \SHAR_EOF > 'online.macros'
.\" Nroff macros for printing manual entries on-line
.\" Gary Perlman (Wang Institute of Graduate Studies)
.\" Tue Oct 8 21:23:05 EDT 1985
.\"
.\" Usage: nroff -man this-file manual-entry > manual-entry.nr
.\"
.\" Remove macros for page control.
.\" Define registers for on-line nroff formatting.
.\" Use a wider page width to shorten the manual entries.
.rm }H
.rm }F
.\" Redefine the .TH macro
.\" I am assuming that the positional parameters are:
.\" program manual-section update-date system-release manual-name
.rm TH
.de TH
.nr IN .5i
.nr LL 75n
.nr PL \\n(.p
.ta .5i 1i 1.5i 2i 2.5i 3i 3.5i 4i 4.5i 5i 5.5i 6i 6.5i
.nr )P 1v
.nr )I .5i
.na
.nh
.ll \\n(LLu
.lt \\n(LLu
.tl @\\$1(\\$2)@\\$4@\\$3@
..
SHAR_EOF
fi
exit 0
# End of shell archive
--
Gary Perlman Wang Institute Tyngsboro, MA 01879 (617) 649-9731
UUCP: decvax!wanginst!perlman CSNET: perlman at wanginst
More information about the Comp.sources.unix
mailing list