🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.text
Article #1

-man macros for on-line manual entries

#1
From: Gary Perlman
Date: Wed, 09 Oct 1985 02:19
60 lines
2447 bytes
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@wanginst
Technical Details
Message-ID: <1189@wanginst.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!linus!wanginst!perlman

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/5/84; site wanginst.UUCP
Path: arc1-ca.pugleaf.net!utzoo!linus!wanginst!perlman
From: perlman@wanginst.UUCP (Gary Perlman)
Newsgroups: net.text,net.sources
Subject: -man macros for on-line manual entries
Message-ID: <1189@wanginst.UUCP>
Date: Tue, 8-Oct-85 22:19:51 EDT
Article-I.D.: wanginst.1189
Posted: Tue Oct  8 22:19:51 1985
Date-Received: Wed, 9-Oct-85 05:45:48 EDT
Distribution: net
Organization: Wang Institute, Tyngsboro, MA 01879 USA
Lines: 60