From owner-freebsd-questions@FreeBSD.ORG Thu Oct 23 03:13:24 2008 Return-Path: <owner-freebsd-questions@FreeBSD.ORG> 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 14376106566B for <freebsd-questions@freebsd.org>; Thu, 23 Oct 2008 03:13:24 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.183]) by mx1.freebsd.org (Postfix) with ESMTP id B218B8FC1B for <freebsd-questions@freebsd.org>; Thu, 23 Oct 2008 03:13:23 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: by el-out-1112.google.com with SMTP id v27so36137ele.13 for <freebsd-questions@freebsd.org>; Wed, 22 Oct 2008 20:13:22 -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=Uda3TAS3z3tEH+Wl3sybVmQl7rJSNQ/MKzoeE85ZLwA=; b=koqWn1r+0VsaJFT98Moyp6stghqhWtjUqZTTwcSkQemfuys8n0MaW+74xo+GZLzvvF Boh/yzFG5ox6Et0xJtENGIZwsoSqvu6CjOwOuNl/1y1lGSZp8/iisE2I63vQ8nt7AjpY znJb54d6DG/wK4v+scNqFgGVrLVzj45uKQhoM= 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=qik0R1nKYkAEgZQnWXCXfpJfQILABrgzCiMEZWthJ8gvbKmRGszy8s/KiUO4jlpfqW SgC4nSCUCKGQKSOhi/aPG6JhqgjjwmrxjO95LiEr0fiPWlfL0+F5BShoifDFya8CubR5 S5KSkdp9D8HcRgMwwq0IaSLaUbfeZfs7lxsy8= Received: by 10.90.100.20 with SMTP id x20mr21984agb.56.1224731602692; Wed, 22 Oct 2008 20:13:22 -0700 (PDT) Received: from 190-177-219-62.speedy.com.ar ([190.177.219.62]) by mx.google.com with ESMTPS id 30sm12963921yxk.4.2008.10.22.20.13.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 22 Oct 2008 20:13:22 -0700 (PDT) From: Gonzalo Nemmi <gnemmi@gmail.com> To: freebsd-questions@freebsd.org Date: Thu, 23 Oct 2008 01:13:16 -0200 User-Agent: KMail/1.9.10 References: <200810222156.20959.gnemmi@gmail.com> <20081023023840.bdacc8b9.freebsd@edvax.de> <alpine.BSF.2.00.0810221902330.5789@wonkity.com> In-Reply-To: <alpine.BSF.2.00.0810221902330.5789@wonkity.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810230113.16928.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 <freebsd-questions.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions> List-Post: <mailto:freebsd-questions@freebsd.org> List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=subscribe> X-List-Received-Date: Thu, 23 Oct 2008 03:13:24 -0000 On Wednesday 22 October 2008 11:19:16 pm Warren Block wrote: > On Thu, 23 Oct 2008, Polytropon wrote: > > On Wed, 22 Oct 2008 21:56:20 -0200, Gonzalo Nemmi <gnemmi@gmail.com> wrote: > >> Is there an easy way to get man to format the man page using plain good > >> ISO 216 standard A4 page size? > > > > My suggfestion for an attempt would be to first strip any control > > characters from the output of "man -P cat <entry>" and then pipe > > it to an ASCII to PDF converter (a2ps, if I remember correctly); > > this would remove any markups, I know, but would lead to a PDF > > output using the system's default paper size, A4 (I hope). > > But groff can do A4. Just as a first pass: > > zcat `man -w ls` | groff -Tps -dpaper=a4 -P-pa4 -mandoc | ps2pdf - tmp.pdf > > It produces the right media size in the PS file, but I can't really test > it because I don't have any A4 paper. > > Maybe there's a way to get man(1) to send different options to groff > than -t, but I don't know it. > > -Warren Block * Rapid City, South Dakota USA You just rule ... Thank you I mean it .. Thanks a lot :) My best regards :D -- Blessings Gonzalo Nemmi