From owner-freebsd-questions Tue May 4 2:59:14 1999 Delivered-To: freebsd-questions@freebsd.org Received: from daimler-benz.com (pluto1.str.daimler-benz.com [53.122.2.31]) by hub.freebsd.org (Postfix) with ESMTP id 3EB8914D0B for ; Tue, 4 May 1999 02:59:10 -0700 (PDT) (envelope-from norbert.meissner@daimlerchrysler.com) Received: by daimler-benz.com; id LAA12900; Tue, 4 May 1999 11:52:38 +0200 (MET DST) Received: from unknown(53.113.192.11) by pluto.daimler-benz.com via smap (V4.2) id xma012751; Tue, 4 May 99 11:51:34 +0200 Received: by S97H1H01 with Internet Mail Service (5.5.2448.0) id ; Tue, 4 May 1999 12:01:38 +0200 Message-ID: From: "Meissner, Norbert" To: "'Greg Lehey'" , "Meissner, Norbert" Cc: cjclark , freebsd-questions Subject: AW: Printing Manpages Date: Tue, 4 May 1999 11:57:52 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi folks, the correct solution is (if a2ps is installed) man topic | a2ps -2 -m | lpr -P myprinter for the options -2 -m read this cutout of the a2ps manpage: -m Understand UNIX manual output ie: 66 lines per page, no line numbering and possible bolding and underlin- ing sequences. The understanding of bolding and underlining is there by default even if -m is not specified.=20 -2 Print two pages per physical page (twinpage mode), =20 side by side or up-down, depending on the printing =20 mode (landscape or portrait). =20 I've done this many times and it works! Norbert =20 =20 > -----Urspr=FCngliche Nachricht----- > Von: Greg Lehey [SMTP:grog@lemis.com] > Gesendet am: Dienstag, 4. Mai 1999 09:22 > An: Norbert Meissner > Cc: cjclark; freebsd-questions > Betreff: Re: Printing Manpages >=20 > [Format recovered--see http://www.lemis.com/email/email-format.html] >=20 > On Tuesday, 4 May 1999 at 8:55:14 +0200, Meissner, Norbert wrote: > >> On Dienstag, 4. Mai 1999 06:23, Crist J. Clark > wrote: > >> > >> I want to print out some long manpages. I know how to convert a > >> manpage to Postscript and print it quite easily, > >> > >>> man -t topic | lpr > >> > >> Where 'topic' is the page of choice. > >> > >> However, I'd like to print two columns on a page (two manpage = pages > >> per page of paper). I know of a kind of ugly work around, > >> > >>> gunzip -c /usr/share/man/man1/topic.1.gz | groff -man -Tascii | > enscript -2r > >> > >> But that is an ugly command line and the output is not too pretty > >> either (it works, but unless enscript gets some tweaking, page = breaks > >> and other things are off). > >> > >> Anyone have a better way to convert manpages to a pretty two = column > >> per page form? Perhaps piping through gs somehow (the word = 'column' is > >> not even on 'man gs' so I don't know where to start there)? Or = maybe > >> enscript is the right tool with some different options? > > > > have a look at a2ps (a4 or letter size, what you prefer) at the = ports. > it > > just does what you want, especially for man pages. if you haven't = any > > ps-printer you should also have a look at ghostscript. >=20 > The problem with this solution is that it's not troff, it's nroff, = and > it *still* needs PostScript. >=20 > The correct solution (some assembly required) is to massage the > PostScript to print left and right. I do something similar for = proofs > of "The Complete FreeBSD", where I print four thumbnails on a page, > but it would take a lot of work to change that to two per page, which > is why I didn't answer before. >=20 > Greg > -- > See complete headers for address, home page and phone numbers > finger grog@lemis.com for PGP public key >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message