Article View: gnu.groff.bug
Article #27missing macros in groff tmac.an
From: trq
Date: Fri, 10 Apr 1992 09:29
Date: Fri, 10 Apr 1992 09:29
78 lines
2150 bytes
2150 bytes
GROFF VERSION:
1.05
MACHINE:
Decstation 2100
OS:
Ultrix 4.2
COMPILER:
g++ 2.1
INPUT FILES:
The following is the manual page for "yes" on Ultrix 4.2:
.\" SCCSID: @(#)yes.1 8.1 9/11/90
.TH yes 1
.SH Name
yes \- be repetitively affirmative
.SH Syntax
.B yes
[\|\fIarg\fR\|]
.SH Description
.NXR "yes command"
The
.PN yes
command repeatedly outputs \*(lqy\*(rq. If
.I arg
is given, that argument is output repeatedly.
Terminate the
.PN yes
command with
.CT C .
COMMAND LINE:
groff -Tascii -man yes.1
DESCRIPTION OF INCORRECT BEHAVIOUR:
The tmac.an file does not define the .PN macro (for pathnames), the
.CT macro (for control characters) or the lq and rq characters (left
and right quotes) which are used in the Ultrix man pages. The result
is the arguments of these macros don't get printed.
SUGGESTED FIX:
The following patch to macro/tmac.an defines the missing macros.
===================================================================
RCS file: RCS/tmac.an,v
retrieving revision 1.1
diff -c -r1.1 tmac.an
*** 1.1 1992/04/09 16:12:27
--- tmac.an 1992/04/09 16:21:51
***************
*** 315,320 ****
--- 315,334 ----
.nr an-prevailing-indent \\n[an-saved-prevailing-indent\\n[an-level]]
.in \\n[an-margin]u
..
+ .de PN
+ \fI\|\\$1\|\fP
+ ..
+ .de CT \" Control character
+ \s-2<\|CTRL\|/\|\\$1\|>\s+2
+ ..
+ .ie n \{\
+ . ds lq \&"\"
+ . ds rq \&"\"
+ .\}
+ .el \{\
+ . ds rq ''
+ . ds lq ``
+ .\}
.ds S \s[\\n[PS]]
.ie c\[rg] .ds R \[rg]
.el .ds R (Reg.)
------
Tom Quinn Theoretical Physics, University of Oxford
Internet: trq@dionysos.thphys.ox.ac.uk
JANET: trq@uk.ac.ox.astro
Phone: 44-865-273956
Technical Details
Message-ID:
<9204100929.AA02683@thphys.ox.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!dionysos.thphys.ox.ac.uk!trqShow Full Headers
Complete Article Headers
Newsgroups: gnu.groff.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!dionysos.thphys.ox.ac.uk!trq From: trq@dionysos.thphys.ox.ac.uk Subject: missing macros in groff tmac.an Message-ID: <9204100929.AA02683@thphys.ox.ac.uk> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Fri, 10 Apr 1992 09:29:16 GMT Approved: bug-groff@prep.ai.mit.edu Lines: 79