changing the way nroff underlines/hi

Warren Hapke hapke%vger at gswd-vms.gould.com
Sat Feb 27 08:30:21 AEST 1988


You wanted to know
> is there a nroff command which will change nroff's "underlining" style
> from
>	_^Hc_^Ho_^Hr_^He_^Hd_^Hu_^Hm_^Hp_^Hs_^Hi_^Hz_^He
> to
>	coredumpsize^H^H^H^H^H^H^H^H^H^H^H^H____________

If you use the nroff line-drawing function to underline, you can get what you
want.  Use the following macro, taken verbatim from Ossanna's 'NROFF/TROFF
User's Manual, section 12.4:

	.de us
	\\$1\l'|0\(ul'
	..

The command .us "coredumpsize" will then produce what you want.

Note that this is the only way to underline anything in troff.

Warren Hapke, Gould CSD-Urbana



More information about the Comp.unix.wizards mailing list