From owner-freebsd-questions@FreeBSD.ORG Thu Oct 23 03:33:52 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 EDA061065675 for ; Thu, 23 Oct 2008 03:33:52 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id AD3408FC1F for ; Thu, 23 Oct 2008 03:33:52 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-195-41-11.dynamic.qsc.de [92.195.41.11]) by mx01.qsc.de (Postfix) with ESMTP id 2B71C51574; Thu, 23 Oct 2008 05:33:50 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id m9N3XnFk006412; Thu, 23 Oct 2008 05:33:49 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Thu, 23 Oct 2008 05:33:48 +0200 From: Polytropon To: Gonzalo Nemmi Message-Id: <20081023053348.d21aca2a.freebsd@edvax.de> In-Reply-To: <200810230114.10208.gnemmi@gmail.com> References: <200810222156.20959.gnemmi@gmail.com> <20081023035102.469988aa.freebsd@edvax.de> <200810230114.10208.gnemmi@gmail.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: man -t odd page size X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Oct 2008 03:33:53 -0000 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. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...