Friday, April 12, 2013

table with customised width of columns.

using p{.} in place of c/l, we can specify column width, as given in example below:


\begin{table}[!t]
\scriptsize
    \centering
    \caption{Converged Degrees}
   \begin{tabular}{|p{1.2cm}|l|l|p{1.4cm}|p{1.2cm}|p{1.5cm}|}
     \hline
         Model & $D1$  & $D2$  & D3  &  D4 & D5   \\ \hline
        M1 &0.240156 &0.556627 &2.134504 &0.484830 &224.384399 \\ \hline
M2 &0.442761 &0.675242 &0.339483 &0.300454 &382.939148 \\ \hline
M3 &0.556715 &0.825190 &0.002302 &1.000000 &60.705791 \\ \hline
    \end{tabular}
    \label{fig:Degress}
\end{table}

No comments:

Post a Comment