bug-ed
[Top][All Lists]
Advanced

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

Re: [Bug-ed] g /RE/COMMAND-LIST not working ?


From: Bob Proulx
Subject: Re: [Bug-ed] g /RE/COMMAND-LIST not working ?
Date: Tue, 12 May 2015 12:26:07 -0600
User-agent: Mutt/1.5.23 (2014-03-12)

Antonio Diaz Diaz wrote:
> In the case of GNU ed, the troff source has always included extra spaces.
> They were not noticed because troff, I guess, removes them from the
> formatted output. For example, the following line is from ed.1 in GNU ed
> 0.2:
> 
> .RI (1,$)g /re/command-list

The .RI is a man page macro.

  $ man 7 man

       .RI Roman alternating with italics

The first part "(1,$)g" is typeset with Roman and the second part
"/re/command-list" is typset with Italic.  The spaces are only there
to separate the parameters to the .RI macro.  Additionally:

       Traditionally, each command can have up to six arguments, but
       the GNU implementation removes this limitation (you might still
       want to limit yourself to 6 arguments for portability's sake).
       Arguments are delimited by spaces.  Double quotes can be used
       to specify an argument which contains spaces.  All of the
       arguments will be printed next to each other without
       intervening spaces, so that the .BR command can be used to
       specify a word in bold followed by a mark of punctuation in
       Roman.  If no arguments are given, the command is applied to
       the following line of text.

Bob

Who used to write a lot of man documentation but now prefers texinfo.



reply via email to

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