nroff -mm macro question

Steven P. Mazurek smazu at ameris.UUCP
Tue Apr 9 11:09:33 AEST 1991


In article <2570002 at hpcc01.HP.COM>, burch at hpcc01.HP.COM (Jeff Burch) writes:
> My nroff source looks like:
>    .VL 20
>    .LI "/test\.[Ch]"
>    This regular expression will search for the string "test.C" or
>    "test.h".  Note: the "\" is used to escape the ".", otherwise ...
>    .LE
> 
> I want this to be formatted like:
>    /test\.[Ch]    This regulare expression will search for the "test.C" or
>                   "test.h". Note: ...

You need to use the "on-the-fly" printable version of the escape
character which in this case happens to be the back-slash. Try replacing
your .LI line with:

		.LI "/test\e.[Ch]"

the "\e" should print the back-slash.

If you have Documentor's Workbench manuals you should be able to locate
this and similar information in the section on Nroff/Troff Escape
sequences - good luck.



-- 
Steven P. Mazurek	 | Email: {...,uunet,bcr,ohumc}!ameris!smazu
Ameritech Services	 | 
Schaumburg, IL USA 60010 | Phone : (708) 605-2858



More information about the Comp.unix.questions mailing list