[texhax] tables question

Robin Fairbairns Robin.Fairbairns at cl.cam.ac.uk
Wed Mar 16 22:41:23 CET 2005


> am using this code to make a table. It is show as a table but latex is 
> not doing the line wrapping in a good way.  The line goes the end of the 
> pages without ever line wrapping.
> 
> \begin{table}[hang]
> \centering
> \caption{SIP Responses}
> \begin{tabular}{|l|l||}
>     \hline
> \textbf{\bf Class Code}  & {\bf Function}                \\
>     \hline \hline
> xx       &  
> whatevenrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr 
>    \\
> 
>     \hline
> \end{tabular}    
> \label{tab:sip_responses}
> \end{table}
> 
> any ideas on how to make it wrap?

don't tell it not to wrap, as you did by specifying "l" column type.

p{<width>} column type wraps within the given width.



More information about the texhax mailing list