How do I tell LaTeX to automatically set the width size so that all text is in a line? Is there a simplest code available? Or teach me how to edit the width of a single column and have the remaining columns alter accordingly. The simplest code without using any additional functions like tabularx or tabularz
\begin{table*}[t]
\footnotesize
\begin{tabu} to \textwidth { | X[l] || X[c] | X[c] | X[c] || X[c] | X[c] | X[c] || X[c] | X[c] | X[c] | }
\hline
Method & Easy & Moderate & Hard & Easy & Moderate & Hard & Easy & Moderate & Hard \\
\hline
& \multicolumn{3}{c||}{Car} & \multicolumn{3}{c||}{Pedestrian} & \multicolumn{3}{c|}{Cyclist} \\
\hline
MCGD \cite{mcg-d} & 67.84 & 50.61 & 42.20 & 61.77 & 53.19 & 46.40 & 67.84 & 50.61 & 42.20 \\
\hline
MCG \cite{mcg} & 59.54 & 45.86 & 38.61 & 50.20 & 44.53 & 40.45 & 59.54 & 45.86 & 38.61 \\
\hline
SS \cite{selectivesearch} & 32.36 & 20.45 & 18.72 & 24.38 & 22.06 & 20.53 & 32.36 & 20.45 & 18.72 \\
\hline
EB \cite{edgeboxes} & 52.48 & 36.57 & 31.15 & 29.57 & 22.06 & 22.58 & 52.48 & 36.57 & 31.15 \\
\hline
3DOP \cite{3dop} & 95.39 & 82.85 & \textbf{82.25} & 89.48 & 83.29 & \textbf{74.94} & 95.11 & 77.63 & \textbf{77.38} \\
\hline
BING \cite{bing} & 8.50 & 5.37 & 10.93 & 24.64 & 27.21 & 32.23 & 8.50 & 5.37 & 10.93 \\
\hline
Ours & \textbf{95.64} & \textbf{83.15} & 77.54 & \textbf{96.46} & \textbf{87.77} & 74.94 & \textbf{95.63} & \textbf{91.44} & 73.96 \\
\hline
\end{tabu}
\caption{Recall of different proposal methods with an average of 500 proposals. The IOU criteria for car, pedestrian and cyclist are at 0.7, 0.5 and 0.5 respectively. In bold are the best results.}
\label{tab:results}
\end{table*}


\documentclass}to\end{document}. Also be clear in your question. What do you mean with "width size"? Is it the width of any column in your table, or is it the width of the entire table? What does "so that all text is in one line" mean? – Jan Feb 08 '17 at 06:57l(left-aligned),c(centered), andr(right-aligned), without loading any package. Then each column will be as wide as the widest entry, and each entry will be a single line. – gernot Feb 08 '17 at 07:13\textwidthyou should consider using a smaller font size, working with other margins, accepting line breaks or asking a more specific question. – TeXnician Feb 08 '17 at 07:22\resizebox{\linewidth}(as mentioned before, in My table doesn't fit; what are my options?). – Werner Feb 08 '17 at 07:24\resizebox{\linewidth}{...}"wrapper" by adding that the resulting tables generally look awful. – Mico Feb 08 '17 at 08:04