From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Roger Leigh <rleigh(at)whinlatter(dot)ukfsn(dot)org> |
Cc: | pgsql-patches(at)postgresql(dot)org |
Subject: | Re: Troff -ms output for psql |
Date: | 2005-06-09 15:29:08 |
Message-ID: | 200506091529.j59FT8B17114@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
Patch applied, thanks.
> Following the commit of my psql latex format fixes, I've re-done the
> patch for the troff-ms format which previously included this patch.
> It's identical to the original but with the latex hunks removed.
---------------------------------------------------------------------------
Roger Leigh wrote:
> Hello,
>
> I've created a patch which adds support for troff "-ms" output to
> psql. i.e. "\pset format troff-ms". The patch also corrects some
> problems with the "latex" format, notably defining an extra column in
> the output table, and correcting some alignment issues; it also
> changes the output to match the border setting as documented in the
> manual page and as shown with the "aligned" format.
>
> The troff-ms output is mostly identical to the latex output allowing
> for the differences between the two typesetters.
>
> The output should be saved in a file and piped as follows:
>
> cat file | tbl | troff -T ps -ms > file.ps
> or
> tbl file | troff -T ps -ms > file.ps
>
> Because it contains tabs, you'll need to redirect psql output or use
> "script", rather than pasting from a terminal window, due to the tabs
> which can be replaced with spaces.
>
> I've attached the patch (against the current mainline), and example
> output of each for each of border=[123] and expanded mode on and off
> (both source and printable copy).
>
>
> Regards,
> Roger
>
>
> PS. I'm not subscribed, so I would appreciate a CC on any replies.
> Thanks!
>
>
> --
> Roger Leigh
>
> Printing on GNU/Linux? http://gimp-print.sourceforge.net/
> GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
Content-Description: patch to add troff output to psql
Content-Description: Troff -ms generated source
[ Attachment, skipping... ]
Content-Description: Troff -ms postscript output
[ Attachment, skipping... ]
Content-Description: LaTeX generated source
[ Attachment, skipping... ]
Content-Description: LaTeX PDF output
[ Attachment, skipping... ]
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2005-06-09 16:29:52 | Re: (8.1) to_timestamp correction (epoch to timestamptz) |
Previous Message | Bruce Momjian | 2005-06-09 14:55:27 | Re: [HACKERS] Should *.backup files ever be removed from pg_xlog? |