putting table in the text

marvin2jh's picture

I would like to a table shown below as an encapsulated tex file in the text.
But \resizebox{14.0cm}{4.6cm} does not work. When I add graphicx package, the table vanished.

How can I put the table which has adequate size within fixed margins in a paper?

\begin{center} \scriptsize
\resizebox{14.0cm}{4.6cm}
\begin{tabular}{p{1.7cm}p{1.7cm}p{1.8cm}p{1.2cm}p{1.8cm}p{1.2cm}p{1.8cm}p{1.2cm}}
\multicolumn{8}{c}{\textbf{TABLE 1}} \\
\multicolumn{8}{c}{Magnitude and volatility of excess credit reallocation rates} \\ \hline
& & \multicolumn{2}{c}{1983-2013} & \multicolumn{2}{c}{1983-1996} & \multicolumn{2}{c}{1999-2013} \\
& & Total Credit & Loan & Total Credit & Loan & Total Credit & Loan \\
Capital Area & R1 & 14.77 & 20.03 & 10.16 & 13.57 & 18.55 & 25.79 \\
& & 0.44 & 0.39 & 0.34 & 0.30 & 0.28 & 0.17 \\
& R2 & 11.00 & 19.04 & 5.44 & 15.61 & 16.33 & 22.83 \\
& & 0.55 & 0.40 & 0.21 & 0.53 & 0.19 & 0.22 \\
& R3 & 13.06 & 18.34 & 9.10 & 13.59 & 15.22 & 22.07 \\
& & 0.53 & 0.45 & 0.28 & 0.32 & 0.27 & 0.32 \\
South East & R4 & 14.18 & 18.07 & 10.44 & 14.13 & 17.58 & 21.76 \\
& & 0.33 & 0.32 & 0.29 & 0.20 & 0.20 & 0.27 \\
& R5 & 12.44 & 17.17 & 8.91 & 14.37 & 15.39 & 19.68 \\
& & 0.43 & 0.38 & 0.38 & 0.39 & 0.29 & 0.30 \\
& R6 & 14.32 & 15.84 & 14.17 & 14.03 & 14.25 & 17.78 \\
& & 0.34 & 0.40 & 0.39 & 0.50 & 0.28 & 0.31 \\
North East & R7 & 13.99 & 17.77 & 7.49 & 10.72 & 20.29 & 25.02 \\
& & 0.59 & 0.53 & 0.57 & 0.54 & 0.30 & 0.28 \\
& R8 & 12.88 & 16.83 & 9.87 & 13.25 & 15.05 & 19.80 \\
& & 0.48 & 0.38 & 0.32 & 0.36 & 0.43 & 0.25 \\
& R9 & 11.72 & 17.60 & 8.69 & 9.51 & 14.84 & 25.49 \\
& & 0.57 & 0.64 & 0.51 & 0.65 & 0.49 & 0.40 \\
South West & R10 & 13.69 & 16.27 & 8.23 & 10.03 & 18.10 & 21.23 \\
& & 0.43 & 0.49 & 0.37 & 0.53 & 0.20 & 0.28 \\
& R11 & 13.93 & 19.39 & 8.63 & 13.31 & 19.01 & 25.06 \\
& & 0.57 & 0.45 & 0.45 & 0.44 & 0.40 & 0.30 \\
& R12 & 13.37 & 18.86 & 9.24 & 13.42 & 17.65 & 24.37 \\
& & 0.57 & 0.48 & 0.78 & 0.64 & 0.34 & 0.27 \\
& R13 & 11.01 & 14.17 & 10.14 & 8.40 & 11.35 & 19.18 \\
& & 0.52 & 0.63 & 0.68 & 0.51 & 0.43 & 0.50 \\
Central & R14 & 11.55 & 17.67 & 7.77 & 12.13 & 15.05 & 22.66 \\
& & 0.49 & 0.50 & 0.35 & 0.43 & 0.38 & 0.39 \\
& R15 & 13.88 & 18.72 & 8.48 & 11.17 & 17.90 & 24.41 \\
& & 0.49 & 0.46 & 0.50 & 0.33 & 0.30 & 0.26 \\
& R16 & 13.53 & 17.53 & 8.97 & 13.18 & 17.98 & 22.25 \\
& & 0.49 & 0.40 & 0.47 & 0.45 & 0.32 & 0.22 \\
& Whole sample & 12.80 & 18.91 & 8.74 & 14.39 & 16.66 & 23.53 \\
& & 0.41 & 0.36 & 0.29 & 0.35 & 0.17 & 0.19 \\ \hline
\end{tabular}
}
\end{center}

The LaTeX in your post is

The LaTeX in your post is missing a brace, so doesn't compile without errors.  The attached corrects this and demonstrates that \resizebox works, but only when compiling for PDF.  The TrueTeX Previewer does not support scaling, including the \resizebox command.