From owner-freebsd-doc Sun Feb 17 13:33:45 2002 Delivered-To: freebsd-doc@freebsd.org Received: from idiom.com (idiom.com [216.240.32.1]) by hub.freebsd.org (Postfix) with ESMTP id 0982237B400 for ; Sun, 17 Feb 2002 13:33:43 -0800 (PST) Received: from cfcl.com (cpe-24-221-169-54.ca.sprintbbd.net [24.221.169.54]) by idiom.com (8.9.3/8.9.3) with ESMTP id NAA67722 for ; Sun, 17 Feb 2002 13:33:42 -0800 (PST) Received: from [192.168.254.205] (cerberus [192.168.254.205]) by cfcl.com (8.11.1/8.11.1) with ESMTP id g1HLaLG39237 for ; Sun, 17 Feb 2002 13:36:21 -0800 (PST) (envelope-from rdm@cfcl.com) Mime-Version: 1.0 Message-Id: Date: Sun, 17 Feb 2002 13:33:37 -0800 To: freebsd-doc@freebsd.org From: Rich Morin Subject: Any troff wizards out there? Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I am using the troff MS macros to generate the front matter for the DOSSIER volumes. I use the XA macro to create table of contents entries, as: .XA 10 \fCcpp(1:RedHat/cpp)\fR check out RCS revisions .XA 11 \fCctm(1:FreeBSD)\fR source code mirror system Each entry contains two lines. The first line consists of a name (e.g., cpp) and a parenthesized designation. The second line contains an (indented) description. So far so good; everything prints as desired: cpp(1:RedHat/cpp) check out RCS revisions . . . . . . . 10 Except that the two lines do not always stay together at the end of a page. It's been suggested to me that I use the .ne troff command. Our resident troff "expert" says this is beyond her. She thinks we need to modify the .XA macro to "do the right thing". Keeps (as in "keep this line with next") are created from scratch under troff -ms (there is no keep command, per se) using diversions. Help?? -r -- email: rdm@cfcl.com; phone: +1 650-873-7841 http://www.cfcl.com/rdm - my home page, resume, etc. http://www.cfcl.com/Meta - The FreeBSD Browser, Meta Project, etc. http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series http://www.ptf.com/tdc - Prime Time Freeware's Darwin Collection To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message