I am making a table but i am not able to adjust it. Here is a screen shot.
i have used following tex code
\begin{table}[ht]
\centering
\begin{tabular}{c c c c c c c}
\hline\hline
Methods &computing time & iterative times & $\|A X_k A - A\|_2$ & $\|X_k A X_k - X_k\|_2$ & $\|(A X_k)^* - A X_k\|_2$ & $\|(A X_k)^* - A X_k\|_2$ \\ [0.5ex]
\hline
method() & & & & & & \\
proposed method & & & & & & \\
\hline
\end{tabular}
\end{table}
Could anybody help me. I would be very much thankful to you.
Best Answer
You have quite a few columns in your table, and each column header is quite wide. To make the table fit in the textblock, I suspect you'll need to
Separately, I'd also recommend you use the commands
\toprule
,\midrule
, and\bottomrule
provided by thebooktabs
package and that you create a command named, say,\norm
, to denote the L_2 norm expressions. By creating such a command, you'll have a much easier time in the future if you ever decide to change the appearance of the\norm
function.Finally, you didn't specify which font size, paper width, and margin widths you employ, so I've had to make some assumptions about these important parameters in the MWE below. The MWE starts with a horizontal line that spans the width of the text block to give you an idea of the value of this important parameter.