Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!mit-eddie!uw-beaver!tektronix!penguin!richl From: richl@penguin.UUCP Newsgroups: comp.unix.questions,comp.unix.wizards,comp.unix.xenix Subject: Re: NROFF/TROFF Diversions Message-ID: <10934@tektronix.TEK.COM> Date: Sat, 18-Apr-87 21:48:45 EST Article-I.D.: tektroni.10934 Posted: Sat Apr 18 21:48:45 1987 Date-Received: Sun, 19-Apr-87 11:36:42 EST References: <187@jplcwp.UUCP> Sender: richl@tektronix.TEK.COM Reply-To: richl@penguin.USS.TEK.COM (Rick Lindsley) Organization: Tektronix, Inc., Beaverton, OR. Lines: 16 Keywords: NROFF/TROFF DVERSIONS Xref: utgpu comp.unix.questions:1762 comp.unix.wizards:1804 comp.unix.xenix:228 In article <187@jplcwp.UUCP> deutsch@jplcwp.UUCP (Michael Deutsch) writes: > The register "dn" as I know gives the number > of lines since last diversion, however in my > case it comes up with a number of 320 for nroff > and 400 for troff, instead of 9 as the following > example shows. The documentation says that "dn" is only valid AFTER a diversion; I'm not sure if that's what you mean. (It may be valid during, but I'm not sure if you can count on it.) But one thing I *am* sure about is its units are the "basic units", not the number of lines. That is, in troff, your lines are 400 units high, and in nroff they are 320. I haven't tried, but you can probably get number of lines by dividing dn by .v. Rick