[comp.unix.questions] Changing the header on the -man nroff macro

stealth@caen.engin.umich.edu (Mike Peltier) (05/20/89)

   I have been trying to figure out how to change the header that the .TH
macro produces to something like 'CAEN Technical Note', instead of the
usual 'Unix Programmer's Manual'.  Any ideas?  I've looked at the
/usr/lib/macros/an file, and am completely clueless as to what every-
thing in there means.  I see the '.deTH' line, but everything subsequent
is a jumble of backslashes, parenthesis, and brackets as far as I'm
concerned.  Any insights on how this macro does it's magic?  Thanks
for your help.
   Please send repies through E-mail, since I don't usually keep abreast
of this newsgroup.  Thanks!
 

dale@ssbell.UUCP (Dale Miller) (05/22/89)

In article <4351f983.19ac2@wasp.engin.umich.edu> stealth@caen.engin.umich.edu (Mike Peltier) writes:
>
>   I have been trying to figure out how to change the header that the .TH
>macro produces to something like 'CAEN Technical Note', instead of the
>usual 'Unix Programmer's Manual'.  Any ideas?  I've looked at the
>/usr/lib/macros/an file, and am completely clueless as to what every-
>thing in there means.  I see the '.deTH' line, but everything subsequent
>is a jumble of backslashes, parenthesis, and brackets as far as I'm
>concerned.  Any insights on how this macro does it's magic?  Thanks
>for your help.
>   Please send repies through E-mail, since I don't usually keep abreast
>of this newsgroup.  Thanks!
> 
I had the same question once and noticed that on a SUN the .TH command
had the following options:
  .TH n c x v m 
with the explanation of:
Begin page named "n" of chapter "c."  The "x" argument is for extra
commentary for the center page footer.  The "v" argument alters the left
portion of the page footer.  The "m" argument alters the center protion
of the page header.  The .TH command line also incidentally sets the
prevailing indent and tabs to .5i.

I mainly use UNIX System V release 2 on a VAX 750.  I tried the SUN .TH
format on it and found that it works except the "v" parameter does not
seem to work for me, however, it is a positional parameter that is needed.
I use things like 
  .TH sample 1 "Sterling Software" "" "Configuration Management"

Experiment using the SUN format and you may find that you do not need to
change the man macros.


-- 
Dale Miller                  UUCP:     dale@ssbell
Sterling Software FSG/IMD    INTERNET: dale%ssbell.uucp@uunet.uu.net
1404 Ft. Crook Rd. South     Phone:    (402) 291-8300 
Bellevue, NE. 68005-2969     FAX:      (402) 291-4362