I have to insert a wide table. I used the following commands but the last column exceeds the width of the page. What can I do?
Thanks
Code: Select all
\documentclass[12pt]{article}
\usepackage{booktabs}
\usepackage{array}
\usepackage{siunitx,amsmath}
\usepackage[T1]{fontenc}
\usepackage{caption}
\usepackage{array,booktabs,multirow}
\usepackage{mathtools}
\usepackage[format=hang]{caption}
\pagestyle{empty} \captionsetup{width=17cm}
\renewcommand{\baselinestretch}{1.5}\setlength{\evensidemargin}{3.5cm} \setlength{\textwidth}{6in}
\setlength{\textheight}{8.9in} \setlength{\evensidemargin}{3.5cm}
\setlength{\textwidth}{6in} \setlength{\topmargin}{-0.6in}
\setlength{\topmargin}{-0.2in} \setlength{\headsep}{.4in}
\setlength{\footnotesep}{.2in} \setlength{\parindent}{0.5cm}
\captionsetup{belowskip=12pt,aboveskip=4pt}
\begin{document}
\begin{table}
\caption{}
\makebox[\textwidth][c]{%
\footnotesize%
\begin{tabular}{
c
S[table-format=2.0]
S[table-format=3.0]
S[table-format=1.0]
S[table-format=1.0]
S[table-format=1.2]
S[table-format=1.2]
S[table-format=2.2]
S[table-format=2.2]
S[table-format=1.2]
S[table-format=2.2]
S[table-format= 1.5]
S[table-format=1.2]
S[table-format=2.2]
S[table-format=2.2]
S[table-format=2.2]
}\toprule [1.2pt]
\multirow{2}{*}[-0.75ex]{Run}& \multicolumn{8}{c}{ODP} &
\multicolumn{6}{c}{SP} & {$\Delta C_{{VSS|F_p}}$} \\
\cmidrule(lr){2-9}\cmidrule(lr){10-15}
&{$n^*_1$}&{$n^*_2$}&{$UWL^*_1$}&{$UCL^*_1$}&{$UWL^*_2$}&{$UCL^*_2$}&{$h^*$}&{$ETCU^*$}&{ANSSC}&{ANOC}&{ANFA}&{ANSS}&{ANOS}&{ATS}&{(\%)}\\\midrule[1.2pt]
5& 72& 103& 4 &6 &5,90& 7,68& 3,27& 10,20& 0,30& 22,59& 0,00191& 0,50& 39,6& 2,56& 0,78\\
7& 2& 14& 0 &1 &0,26& 2,91& 1,76& 2,64& 0,57& 1,72& 0,00083& 0,64& 4,14& 6,75& 16,46\\
\bottomrule[1.2pt]
\end{tabular}
}
\end{table}
\end{document}