I am using booktabs library to make my table in latex. However, I noticed that due to the size of the table it goes out of the right margin. I tried to follow several recommendations from several posts but none did work for me. My code is the following:
\begin{table}[!htbp]
\centering
\caption{Classification, FID and IS performance for all the experimental protocol scenarios. }
\label{er:tbl2}
{\small
\begin{tabular}{*9c}
\toprule
Case & \multicolumn{4}{c}{dv1} & \multicolumn{4}{c}{dv2}\\
& cla& score1& score2& score3& cla& score1& score2& score3\\
\midrule
\textbf{Claas1} & {49.34$\%$} & & & & {44.73$\%$} & & & \\
\textbf{Claas2} & \textbf{52.52$\%$} & \textbf{59.44} & \textbf{2.16} &
\textbf{2.16} & \textbf{47.11$\%$} & \textbf{49.77} & \textbf{2.21}
& \textbf{2.21}\\
\textbf{Claas3} & 49.92$\%$ & 60.13 & 2.01 & 2.01 & 46.23$\%$ & 50.33 &
2.05 & 2.05\\
\textbf{Claas4} & 50.29$\%$ & 60.10 & 2.00 & 2.00 & 46.55$\%$ & 49.95 &
2.01 & 2.01\\
\bottomrule
\end{tabular}
}
\end{table}
How can I reduce the size or stretch the table within the range of my template's page?




\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}*9c@{}}might help – leandriis Feb 28 '20 at 13:10\setlength\tabcolsep{5pt}before\begin{tabular}, however your code for table can be further improved ... – Zarko Feb 28 '20 at 13:12articlethis is not a case. Please extend your document to complete small document beginning with\documentclass{...}and ending with\end{document}, which reproduce your problem. – Zarko Feb 28 '20 at 13:45