Latex longtable format

Started by Bruce Momjianover 13 years ago2 messageshackers
Jump to latest
#1Bruce Momjian
bruce@momjian.us

I have received several earnest requests over the years for LaTeX
'longtable' output, and I have just implemented it based on a sample
LaTeX longtable output file.

I have called it 'latex-longtable' and implemented all the behaviors of
ordinary latex mode. One feature is that in latex-longtable mode,
'tableattr' allows control over the column widths --- that seemed to be
very important to the users. One requested change I made to the
ordinary latex output was to suppress the line under the table title if
border = 0 (default is border = 1).

Patch and sample output attached. I would like to apply this for PG
9.3.

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

Attachments:

longtable.difftext/x-diff; charset=us-asciiDownload+172-19
longtable.psql.border_2text/plain; charset=us-asciiDownload
#2Bruce Momjian
bruce@momjian.us
In reply to: Bruce Momjian (#1)
Re: Latex longtable format

On Sat, Jan 12, 2013 at 07:09:31PM -0500, Bruce Momjian wrote:

I have received several earnest requests over the years for LaTeX
'longtable' output, and I have just implemented it based on a sample
LaTeX longtable output file.

I have called it 'latex-longtable' and implemented all the behaviors of
ordinary latex mode. One feature is that in latex-longtable mode,
'tableattr' allows control over the column widths --- that seemed to be
very important to the users. One requested change I made to the
ordinary latex output was to suppress the line under the table title if
border = 0 (default is border = 1).

Patch and sample output attached. I would like to apply this for PG
9.3.

Modified patch applied. I didn't need to modify our existing 'latex'
output format, except to add border=3 support. It was tempting to
suggest renaming our 'latex' output format to 'latex-tabular', because
that is what it uses, but 'tabular' is a package included by default in
Latex, while 'longtable' requires two additional packages to be
specified, so I resisted suggesting it. I did document that 'latex'
uses 'tabular'.

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers