title: Fit table size with the page size in latex
body: <p>I have many tables with different numbers of columns that should fit with the page size. For that, I used codes similar to the one below:</p>
  <pre><code>\begin{table}
      \caption{Values}
      \centering
      \resizebox{\linewidth}{!}{
          \begin{tabular}{!{\vrule}l!{\vrule}l!{\vrule}l!{\vrule}l!{\vrule}l!{\vrule}l} 
              \toprule
              DS             &amp; Criterion1 &amp; Criterion2 &amp; Criterion3 &amp; Criterion4  \\ 
              \midrule
              DS1 &amp; V1 &amp; V2 &amp; V3  &amp; V4 \\ 
              \midrule
              DS2       &amp; V5 &amp; V6 &amp; V7 &amp; V8 \\ 
              \midrule
              DS3       &amp; V9 &amp; V10 &amp; V11 &amp; V12 \\ 
              \midrule
              DS4 &amp; V13 &amp; V14 &amp; V15 &amp; V16 \\
              \botrule
          \end{tabular}
      }
  \end{table}
  </code></pre>
  <p>This code generates the tables but shows errors of the kind: <strong>Illegal characters in array arg</strong>.
  I didn't understand this error.</p>
  <p>Any help would be much appreciated.</p>