I am making a table in a two-column document and one of the table columns is running out of the page. This is a sample of the table. I would like to wrap the last column in the table. How can I solve this?
\begin{table}[b]
\caption{}
\label{snps.tab}%
\begin{tabular*}{\columnwidth}{@{}lllll@{}}
\toprule
SNP & Chromosome & Gene & LOD score & Annotation \\
\colrule
rs33321100 & chr17 & Srd5a2 & 3.79 & 3-oxo-5-alpha-steroid 4-dehydrogenase 2 \\
\botrule
\end{tabular*}%
\end{table}
arraypackage, which provides a column formatpwhich is "paragraph" format and the text will wrap. – FionaSmith May 22 '14 at 20:03pis standard latex it doesn't need any package – David Carlisle May 22 '14 at 20:13arraybecause I wanted its other features and it mentions it in the doc so I thought it must be 'special' – FionaSmith May 22 '14 at 20:15table*environment instead of thetableenvironment. Note, though, thattable*(andfigure*) environments can only be placed at the top of a page. – Mico May 22 '14 at 20:19pcolumn type since of the basiclcolumn type may be of lower urgency to the OP. Though not mentioned explicitly by the OP, he/she faces a second, much greater problem: Thetabularmaterial is simply too wide to fit in a single column. The OP will have to use atable*environment. – Mico May 22 '14 at 20:24pand it results in an error for me. The document doesn't compile anymore. – Farhat May 22 '14 at 20:30\begin{tabular}{ l l l l p{3.5cm} }you might need to put anmbox{}to force a line break in a good place. – FionaSmith May 22 '14 at 20:46