groff
[Top][All Lists]
Advanced

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

Re: [Groff] Critique this bold-italic private macro for man pages


From: Bjarni Ingi Gislason
Subject: Re: [Groff] Critique this bold-italic private macro for man pages
Date: Tue, 2 May 2017 17:47:50 +0000
User-agent: Mutt/1.5.20 (2009-12-10)

On Sat, Apr 29, 2017 at 06:25:29AM -0400, G. Branden Robinson wrote:
> Any advice on how I can improve this?  (I'll take "no, don't even try to
> do this" as read, from those who hate man(7). ;-) )
> 

  You did not check the macro for errors (correctness, portability)!

> This is a private macro, not something I'm proposing as an extension to
> any macro package.
> 
> .\" The bold italic font is not accessible via the man macro package.
> .de BOLD-ITALIC
> .  ie d an-trap \       \" Groff and Heirloom troff have this diversion.
> .    ie F BI \{\        \" Is the font available?
> .    itc 1 an-trap      \" Set input trap for the next logical line.
> .    ft BI              \" Use the font.
> .    if \\n[.$] \&\\$*  \" Emit any arguments.
> .    \}
> .    el \&\\$*          \" Otherwise, simply emit arguments.
> .  el \&\\$*            \" Dupe because "&" cannot be used in if clauses.
> ..
> 
[...]

-- 
Bjarni I. Gislason



reply via email to

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