From owner-freebsd-questions@FreeBSD.ORG Thu Oct 23 03:47:30 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 852921065670 for ; Thu, 23 Oct 2008 03:47:30 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mx1.freebsd.org (Postfix) with ESMTP id 367F38FC12 for ; Thu, 23 Oct 2008 03:47:30 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so29375ywe.13 for ; Wed, 22 Oct 2008 20:47:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=sdl/6wvxNxMcx+BnobeUZyDENmdaThz9HqMl5/m9byg=; b=bAdHvsCnFfsLAaLhr5GrQZ8T9VDolpsxRMKwtOyK0s+kWH+1SRaTkYroc9pkZDjsCG o47ha9KEazLTnHOXvdLocU5v93Z3Nbx9pRfWpvTpFJJmN+3lQmevqNPL+kFdAh1oW9oV TTa9JCt0HepH/ksg7HpkaLytBw8MltzD/Sw+g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; b=DknPMK0mpc3kJk+G/k0W31pQ1iiatcl39DR8bRXiqbJXI8/jqIN/i4eDgyFtoZ3cdh Cb8zsLQkh/DLW04tsZe5mAhunl2vbVGrcS9hVJxdcssGZCVM6EKkLhjxkIc64WYSs5Tb IIAKQi5FEj1mtWU5XSSokbSltav6oN6vU2Lng= Received: by 10.100.165.5 with SMTP id n5mr32354ane.129.1224733649087; Wed, 22 Oct 2008 20:47:29 -0700 (PDT) Received: from 190-177-219-62.speedy.com.ar ([190.177.219.62]) by mx.google.com with ESMTPS id c27sm2144104ana.37.2008.10.22.20.47.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 22 Oct 2008 20:47:28 -0700 (PDT) From: Gonzalo Nemmi To: freebsd-questions@freebsd.org Date: Thu, 23 Oct 2008 01:47:22 -0200 User-Agent: KMail/1.9.10 References: <200810222156.20959.gnemmi@gmail.com> <200810230114.10208.gnemmi@gmail.com> <20081023053348.d21aca2a.freebsd@edvax.de> In-Reply-To: <20081023053348.d21aca2a.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810230147.22975.gnemmi@gmail.com> Subject: Re: man -t odd page size X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Oct 2008 03:47:30 -0000 On Thursday 23 October 2008 1:33:48 am Polytropon wrote: > On Thu, 23 Oct 2008 01:14:10 -0200, Gonzalo Nemmi wrote: > > Amm ... could you share it with us? > > Please, please, please??? > > > > :D > > In basic (not in BASIC) it consists the same commands that Warren > posted. It's a simple two line script without significant error > checking, and of course coded in an ugly way (as it is used to scare > people off the command line): > > #!/bin/sh > [ $# != 0 ] && ( zcat `man -w $@` | groff -Tps -dpaper=a4 -P-pa4 -mandoc | > ps2pdf - /tmp/man.pdf && gv /tmp/man.pdf && rm /tmp/man.pdf ) > > By the way, it's called ~/bin/pdfman here now, because man2pdf > would suggest that it takes a manpage as input and gives a PDF > file as output, but it doesn't - it's used just like man, but > produces and displays (!) the manpage file right away, giving > the user the choice to view and / or to print it (from within > the viewer); I chose gv, but you can use xpdf, KDE's or Gnome's > default PDF viewer or the thing from Acrobat, if you like. > Afterwards, the PDF file, stored temporarily, is deleted. > > One of its disadvantages is that you cannot search within the PDF > file such as you can from within man's default pager less, using > the / key. Your rule too :D Will try to make a perl version of it (just for fun and because I like perl a lot .. hate me if you so desire .. I know I desereve it :) ) and post it as soon as it works ok :) Thanks a lot for your support Polytropon :) PS: now we have pdf man pages in A4 format :D :D :D Best regards -- Blessings Gonzalo Nemmi