Path: utzoo!attcan!uunet!ncrlnk!ncr-sd!hp-sdd!hplabs!ucbvax!husc6!wjh12!bb From: bb@wjh12.harvard.edu (Brent Byer) Newsgroups: comp.text Subject: Re: troff macro problem Keywords: diversion thesis list of figures Message-ID: <320@wjh12.harvard.edu> Date: 17 Nov 88 17:05:27 GMT References: <13138@pollux.UUCP> Reply-To: bb@wjh12.UUCP (Brent Byer) Organization: Textware Intl., Cambridge MA Lines: 35 In article <13138@pollux.UUCP> lll@pollux.UUCP (Laurence Leff) writes: > >I am having trouble making the correct page number appear >on a list of figures, when the figure caption appears inside >the ms macros KS-KE pair of KF KE pair. > Below is an amended copy of your original .FG macro which does the trick. .de FG .ie !\(ts\\n(.z\(ts\(ts \{\ .\" arrive here iff we are storing into the 'keep' diversion .\" that is, the current diversion name is non-null, so we put a copy .\" of ourself into the diversion, such that we get another chance upon .\" the re-read of the diversion (on the final destination page) \!.FG "\\$1" . \} .el \{\ .\" arrive here iff we are reading back from the 'keep' diversion, and, .\" hence, we know what page we will land upon 'ev 2 'br 'da XZ .\" 'tm help \\$1 page: \\n% 'da 'ev . \} .. Brent Byer Textware Intl. PO 14 - Harvard Sq Cambridge, MA 02238 (617) uni-text att!ihesa!textware!brent