From owner-freebsd-questions@FreeBSD.ORG Thu Jun 5 11:22:16 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 66AD337B401 for ; Thu, 5 Jun 2003 11:22:16 -0700 (PDT) Received: from falcon.midgard.homeip.net (h76n3fls20o913.telia.com [213.67.148.76]) by mx1.FreeBSD.org (Postfix) with SMTP id 0D5DA43F93 for ; Thu, 5 Jun 2003 11:22:14 -0700 (PDT) (envelope-from ertr1013@student.uu.se) Received: (qmail 16192 invoked by uid 1001); 5 Jun 2003 18:22:12 -0000 Date: Thu, 5 Jun 2003 20:22:12 +0200 From: Erik Trulsson To: Joan Picanyol i Puig , freebsd-questions@freebsd.org Message-ID: <20030605182211.GA65909@falcon.midgard.homeip.net> Mail-Followup-To: Joan Picanyol i Puig , freebsd-questions@freebsd.org References: <20030605175751.GA62895@grummit.biaix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030605175751.GA62895@grummit.biaix.org> User-Agent: Mutt/1.5.4i Subject: Re: printing man pages and source code (with vgrind + troff) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jun 2003 18:22:16 -0000 On Thu, Jun 05, 2003 at 07:57:51PM +0200, Joan Picanyol i Puig wrote: > Hi, > > I need to print many man pages and source code files, and I need the > output to be in pdf and preferably with two pages per side (syntax > colouring would be amazing:). So I've been looking at vgrind (+ ps2pdf?) > for the source code, but I can't get what I want. As for the man pages, > the semman2html > > Can someone tell me what the one-liner for this is? I would suggest using a2ps, and then pdf2ps to convert the postscript file to PDF. a2ps can convert most types of textfiles into nice-looking postscript. The one-liner would look something like: a2ps -2 -o - /path/to/input/file | ps2pdf - outputfile.pdf There are lots of flags you can give to a2ps to control the exact look of the output. Read the documentation if necessary. -- Erik Trulsson ertr1013@student.uu.se