[vox-tech] LaTeX longtable

Henry House vox-tech@lists.lugod.org
Thu, 14 Mar 2002 16:05:31 -0800


--aM3YZ0Iwxop3KEKx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

> begin nbs <nbs@sonic.net>=20
[...]
> > What I really want, of course, is the ENTIRE longtable to be as wide
> > as the widest one.  Setting LTchunksize to something unreasonably large
> > (like 500) seems to break LaTeX (all but one page gets rendered).
> >=20
> > I assumed I could do something silly like set the longtable's width
> > to, oh, I dunno... 8 inches?  But the "\begin{longtable}" syntax
> > doesn't seem to like it very much. :)

I have used longtable. You can set the columns to a particular width. For
example:

	\usepackage{longtable}
	\setcounter{LTchunksize}{100}
	\usepackage{mdwtab}

	[...]

	\begin{longtable}{
		p{1.65cm}
		p{5.3cm}
		>{\hfill}p{2.1cm} # right-aligned column
		>{\hfill}p{2.1cm}
		>{\begin{flushleft}}p{3.8cm}<{\end{flushleft}}
		p{1.0cm}
	}

This somewhat hideous example creates six columns, all fixed width. The
flushleft environment prevents the text in the fifth column from being
stretched to fill the margins. You may insert arbitrary code before a
column's text using >{}, or after using <{}. You may need to bring in the
mdwtab package as well to make the exampe work.

--=20
Henry House
The attached file is a digital signature. See <http://romana.hajhouse.org/p=
gp>
for information.  My OpenPGP key: <http://romana.hajhouse.org/hajhouse.asc>.

--aM3YZ0Iwxop3KEKx
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8kTrLKK1cAVjXujwRAu9XAKDU0/7PaHFK0mt94XM2tqjh12NgVACg1/gh
INZpJWKwshYBvo1ccJKLWYg=
=uKEA
-----END PGP SIGNATURE-----

--aM3YZ0Iwxop3KEKx--