[OS X TeX] Two columns

Bob Kerstetter bkerstetter at mac.com
Thu Mar 25 14:43:35 EST 2004


On Mar 24, 2004, at 1:11 PM, Maarten Sneep wrote:

> On 24 mrt 2004, at 19:54, Bob Kerstetter wrote:
>
>> If you need to go across page breaks, try this:
>>
>> \documentclass[11pt]{article}
>> \usepackage{longtable}
>> \begin{document}
>>
>> \begin{longtable}{p{.45\linewidth} c p{.45\linewidth}}
>>
>> This is the column one stuff. It is just enough stuff to make it wrap.
>> &
>>   % this is the empty central gutter
>> & % there is probably some better way to get a gutter.
>>
>> This is the column two stuff. It is just enough stuff to make it wrap.
>>
>> \end{longtable}
>> \end{document}
>
> Hey, that is almost what I suggested ;)
>
> The difference is your "there is probably some better way to get a 
> gutter", as I use an @{} specifier. The @{} gets inserted between the 
> columns, using @{\hfill} pushes both columns out to the edges. You 
> might even want to use:
>
> \begin{longtable}{@{}p{.45\linewidth}@{\hfill}p{.45\linewidth}@{}}
>
> as it removes all automatically inserted space between columns (see p. 
> 108-109 of the old LaTeX Companion, if you have it).
>

Hey Maarten,

Thanks for the longtable info. I would have not thought of using 
\hfill. This is pretty neat.

I use relative widths whenever possible to facilitate changing the page 
size.

Thanks,

Bob 

-----------------------------------------------------
Please see <http://www.esm.psu.edu/mac-tex/> for list
guidelines, information, and LaTeX/TeX resources.





More information about the MacOSX-TeX mailing list