groff
[Top][All Lists]
Advanced

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

Re: [Groff] Question on -ms macro writing


From: Werner LEMBERG
Subject: Re: [Groff] Question on -ms macro writing
Date: Sun, 07 Dec 2003 05:30:28 +0100 (CET)

> Why all of the aliases?  NH is an alias for @NH; @NH uses SH, which
> is an alias for @SH.  It occurred to me that perhaps this is a
> clever way to allow users to alter existing macro behavior.

No, it is not intended for user's convenience.  Instead, the aliases
are used to make a bunch of macros end and print the cover page.

> For example, I could define SH in a file like this:
> 
>       .de SH
>       address@hidden
>       .fam H
>       .ps 14
>       ..
> 
> and use NH in the ordinary way, retaining its ms-prescribed
> functionality but get Helvetica in my section headings.  I'm having
> trouble getting this to work though. Have I missed the point, or
> am I just doing something wrong?

Try this:

  .am @SH
  .  fam H
  .  ps 14
  ..


    Werner

reply via email to

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