dfh@ecsvax.UUCP (David Hinnant) (03/06/88)
I've hooked a Xerox 2700 and a DEC LN03 to a Sys V Rel 2 VAX with DWB 1.0 for use by nroff. I've got nroff drivers for both devices. So far, so good. Now, if I define the italics/underling on and off entries in the "termtable" for the nroff driver, I can generate underlining, but very bizzarely: The underlining for both printers is done by turning it on before the desired text, and then off when finished. What happens when I format the line: "\fIunderline this text\fP but not this" is that the space before "but" is underlined as well. Moreover, when I use a ".ul" request, underlining is turned on, but never off when the last word on the line is to be underlined! I've gotten around this by putting the "underline off" command in "twnl" entry in the nroff driver table. Am I missing something? Help?!? One more question on a slightly different subject: How can I generate undelining in troff. I have ditroff and devps on another machine. My ".ul" commands turn italics on instead.... As always, thanks in advance for any assistance! -- Fortune for the day: "Beware of no pr}Blems in your diks subysstem" David Hinnant UUCP: ...mcnc!ecsvax!dfh h-three Systems, Inc. (919) 549-8334
mth@leadsv.UUCP (Mike Heideman) (03/08/88)
In article <4740@ecsvax.UUCP> dfh@ecsvax.UUCP (David Hinnant) writes: >One more question on a slightly different subject: How can I generate >undelining in troff. I have ditroff and devps on another machine. My >".ul" commands turn italics on instead.... Regarding your question of how to do underlining in troff (as opposed to nroff). First, if you use the -me macro package, then you can simply use the .u macro. That is what I do. Alternatively, check out section 12.4 of the NROFF/TROFF User's Manual. It shows how to set up a macro (.us) that will underscore a string. There is an obvious typo in the example - it should be .us "underlined words" rather than .ul . The .u macro of -me is essentially the same, but allows a second argument that appends additional text in the original font. See Section 7 of the -ME Reference Manual for the documentation. Note that both of these underlining schemes screw up if the underlined text ends up getting broken across a line or if horizontal movement is done. I know from personal experience. I had a need to underline some column headings for a small table, where I wanted each heading individually underlined - hence tbl was not appropriate. The .u macro could not handle this; I was using \k's and \h's for the columns and the underlining came out offset. I ended up putting a bunch of spaces as the second argument to .u, which worked, but required several iterations to line up properly. -- Mike Heideman - Lockheed Palo Alto Research Labs. UUCP: sun!sunncal!dipl!mth sun!sunncal!leadsv!mth