I'm a beginner in using latex, and I face the following problem:
I have a table that has its first row too wide (each cell in the first row, which contains the title of its entire column is too wide). The rest of the cells in the other rows are not too wide. So, what I wanna do is making those cells of the first row take 3 rows, so that the whole table width doesn't exceed the page width.
Here is the code that currently exceeds the page width. Compile it and you will understand what I mean:
Code: Select all
\begin{table}[h]
\centering
\begin{tabular}[c]{l|c|c|c|c|c|c|}
\hline
\multicolumn{1}{|l|}{Implementation \#} & Implementation Parameters & Avg of M Problems & Stdev of Avg of M Problems & Expected Objective Fixing First Stage Variables & GAP & GAP Stdev\\
\hline
\multicolumn{1}{|l|}{1} & M=50, N=1000, N'=500 & 138090 & 11 & 138106 & 16 & 11\\
\hline
\multicolumn{1}{|l|}{2} & M=50, N=100, N'=1000 & 138056 & 36 & 138213 & 157 & 36\\
\hline
\multicolumn{1}{|l|}{3} & M=100, N=100, N'=1000 & 137961 & 20 & 138211 & 250 & 20\\
\hline
\multicolumn{1}{|l|}{4} & M=50, N=500; N'=1000 & 138086 & 16 & 138118 & 32 & 16\\
\hline
\end{tabular}
\end{table}
Thanks.
Aly