From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <10a4738c8adca8170cf87e14eec8c418@plan9.bell-labs.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] troff -man prints poorly Date: Tue, 26 Feb 2008 14:17:15 -0500 From: Sape Mullender In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-xzadvltnclzebhyebygywhmgrb" Topicbox-Message-UUID: 628fbdf6-ead3-11e9-9d60-3106f5b1d025 This is a multi-part message in MIME format. --upas-xzadvltnclzebhyebygywhmgrb Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit lp is the most horrible shell script imaginable. The line for your printer in /sys/lib/lp/devices is supposed to help match the output of troff to the input your printer expects. There are people out there who know how to do this. I've long given up. I just generate postscript/pdf (below's the relevant piece of the mkfile) and print that. %.ps:DQ: %.ms eval `{doctype $home/lib/macros.ms $stem.ms} | \ lp -m.9 -dstdout >$target %.ps:DQ: %.man eval `{doctype $home/lib/macros.ms $stem.man} | \ lp -m.9 -dstdout >$target %.pdf:DQ: %.ps cat /sys/doc/docfonts $stem.ps >_$stem.ps ps2pdf _$stem.ps $stem.pdf && rm -f _$stem.ps # Useful in acme: mk document.show %.show:VQ: %.ps page -w $stem.ps %.ps:D: %.jpg jpg -t -9 $stem.jpg | lp -dstdout >$target --upas-xzadvltnclzebhyebygywhmgrb Content-Type: message/rfc822 Content-Disposition: inline Received: from mail.cse.psu.edu ([130.203.4.6]) by plan9; Tue Feb 26 13:38:32 EST 2008 Received: from psuvax1.cse.psu.edu (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 1C43E1B5B8 for <9fans-local@plan9.bell-labs.com>; Tue, 26 Feb 2008 13:38:17 -0500 (EST) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: from localhost (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 21E711AB7B for <9fans@cse.psu.edu>; Tue, 26 Feb 2008 13:36:58 -0500 (EST) Received: from mail.cse.psu.edu ([127.0.0.1]) by localhost (psuvax1 [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10276-01-48 for <9fans@cse.psu.edu>; Tue, 26 Feb 2008 13:36:56 -0500 (EST) Received: from csplan9.rit.edu (csplan9.rit.edu [129.21.34.236]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 22A6E17321 for <9fans@cse.psu.edu>; Tue, 26 Feb 2008 13:36:56 -0500 (EST) Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] troff -man prints poorly Date: Tue, 26 Feb 2008 13:36:53 -0500 From: john@csplan9.rit.edu In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: 9fans-bounces+9fans-local=plan9.bell-labs.com@cse.psu.edu Errors-To: 9fans-bounces+9fans-local=plan9.bell-labs.com@cse.psu.edu > troff -man /sys/man/1/cat | page Looks good. > troff -man /sys/man/1/cat | lp -dPrinter Looks terrible. --upas-xzadvltnclzebhyebygywhmgrb--