I have a Latex table (begin{tabular}), and I want it to break one of the columns if it needs to. So rather than: <------------ size of page ------------> /---------------------------------------------------\ | field | field | long field | field | | field | field | long long long long field | field | | field | field | long field | field | \---------------------------------------------------/ I get: /--------------------------------------\ | field | field | long field | field | | field | field | long long | field | | | | long long | | | | | field | | | field | field | long field | field | \--------------------------------------/ Anyone? Alexis -- Failure- When your best just isn't good enough. "Democracy is an appalling system of government, but it is seven times better than any other" - Churchill "If you think education is expensive, try ignorance" - Derek Bok
Alexis Lee writes:
I have a Latex table (begin{tabular}), and I want it to break one of the columns if it needs to.
So rather than:
<------------ size of page ------------> /---------------------------------------------------\ | field | field | long field | field | | field | field | long long long long field | field | | field | field | long field | field | \---------------------------------------------------/
I get: /--------------------------------------\ | field | field | long field | field | | field | field | long long | field | | | | long long | | | | | field | | | field | field | long field | field | \--------------------------------------/
Anyone?
Use something like \begin{tabular}{|l|l|p{3in}|l|} to set the third column as a 3-inch-wide paragraph. As Leslie Lamport used to say, "it's documented in the [his] LaTeX book", p 205. ..Adrian -- Dr Adrian F Clark WEB: http://esewww.essex.ac.uk/~alien/ EMAIL: alien@essex.ac.uk TEL: +44 1206 872432 FAX: +44 1206 872900 PAPER: VASE Lab, Dept ESE, University of Essex, Colchester, CO4 3SQ, UK
Adrian Clark wrote:
Alexis Lee writes:
I have a Latex table (begin{tabular}), and I want it to break one of the columns if it needs to.
So rather than:
<------------ size of page ------------> /---------------------------------------------------\ | field | field | long field | field | | field | field | long long long long field | field | | field | field | long field | field | \---------------------------------------------------/
I get: /--------------------------------------\ | field | field | long field | field | | field | field | long long | field | | | | long long | | | | | field | | | field | field | long field | field | \--------------------------------------/
Use something like \begin{tabular}{|l|l|p{3in}|l|}
to set the third column as a 3-inch-wide paragraph. As Leslie Lamport used to say, "it's documented in the [his] LaTeX book", p 205.
Woops. Forgot to mention I'd already tried something like this. The problem is that all the fields are of variable width, and I want as much space as is available to be used before it wraps the line. I did try p{\fill}, but it gave me LOTS of errors and helped me not at all. When I tried p{1in plus10in minus0in} it printed 'plus ... 0in' as part of the text for the next column... which it wrapped. The book I'm using is 'A guide to Latex 2e', Kopka and Daly. p 18. Thanks for answering what obviously sounded like an RTFM; tell me if I should just bite the bullet. Alexis -- Failure- When your best just isn't good enough. "Democracy is an appalling system of government, but it is seven times better than any other" - Churchill "If you think education is expensive, try ignorance" - Derek Bok
Alexis, have you tried using lyx, I've used it to generate many tables for my thesis, and it has options to set the size of the colums/rows.... it seems to work ok, although Adrian will tell you otherwise ;) Sz Alexis Lee wrote:
Woops. Forgot to mention I'd already tried something like this. The problem is that all the fields are of variable width, and I want as much space as is available to be used before it wraps the line.
I did try p{\fill}, but it gave me LOTS of errors and helped me not at all. When I tried p{1in plus10in minus0in} it printed 'plus ... 0in' as part of the text for the next column... which it wrapped.
The book I'm using is 'A guide to Latex 2e', Kopka and Daly. p 18.
Thanks for answering what obviously sounded like an RTFM; tell me if I should just bite the bullet.
-- Open Source Specialists http://www.entora.co.uk/ Tel: +44 (0)701 0723686 Fax: +44 (0)870 3214368
One extra thing... I just tried \p{15mm} and it didn't do a thing. Alexis -- Failure- When your best just isn't good enough. "Democracy is an appalling system of government, but it is seven times better than any other" - Churchill "If you think education is expensive, try ignorance" - Derek Bok
participants (3)
-
Adrian Clark -
Alexis Lee -
Neill Newman