Xref: utzoo comp.unix.questions:5105 comp.unix.wizards:6180 Path: utzoo!mnetor!uunet!husc6!rutgers!mtune!akgua!sortac!pls From: pls@sortac.UUCP (Pat Sullivan) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: Need information for using man and mm together Message-ID: <234@sortac.UUCP> Date: 11 Jan 88 13:29:21 GMT References: <3532@whuts.UUCP> <2721@killer.UUCP> Reply-To: pls@sortac.UUCP (Pat Sullivan) Organization: AT&T Southern Region, Atlanta Lines: 44 In article <2721@killer.UUCP> wnp@killer.UUCP (Wolf Paul) writes: >In article <3532@whuts.UUCP> jdw1@whuts.UUCP (WILLIAMS) writes: >>Has anyone written a shell script that utilizes the mm and man >>macros in the same document? ... I replied to this in att.unix, then saw the same request and several replies but no answerts here ... I'm reposting my followup below in case anyone who's interested missed the reply there. >What is the purpose or application for this effort, by the way? We use it mainly for things like lists on manual pages. This reply addresses straight DWB2.0; if you're using something different, your solution will probably be similar, but not exactly the same. The real problem is that ``man'' and ``mm'' use the same internal macro and register names for different things. The source files for the macros are under /usr/src/cmd/text/macros.d: an.src is for man, mmt.src is for mm with troff, and mmn.src is for mm with nroff. We edited an.src to use only names that were not used by mmn.src or mmt.src for its internal stuff. The following substitutions worked for us: CHANGE TO ------ -- )E )e )I )H )L )c )M )d )R )P )p )g )s )i )t )j :U :K :m :O }f }s We occasionally have problems when we do *NOT* use the ``-rs1'' argument for reduced size pages; I can't recall a failure that was not due to bad input when ``-rs1'' *WAS* specified. Typical command line: troff -Tlj -man -mm -rs1 | dlj | lp =================================================================== Pat Sullivan - {gatech|akgua|ihnp4}!sortac!pls - voice 404-257-7382