1
\documentclass{article}
    \begin{document} 
       \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}
            DEC&0&1&2&3&4&5&6&7&8&9&10&11&12&13&14&15\\
                 \hline
            BIN&0000&0001&0010&0011&0100&0101&0110&0111&1000&1001&1010&1011&1100&1101&1110&1111\\
                 \hline
            HEX&0&1&2&3&4&5&6&7&8&9&A&B&C&D&E&F
        \end{tabular}
    \end{document}

Screenshot of the problem

resize text not working

1 Answers1

2
  • you need to specify as many columns c as your table has columns. In your example, two were missing

  • you could decrease the tabcolsep a bit to make your table more compact (this is explained in more detail in https://tex.stackexchange.com/a/332903/36296)


\documentclass{article}

\usepackage{geometry}

\begin{document}

\begingroup \scriptsize \setlength{\tabcolsep}{3pt} \begin{tabular}{|*{17}{c|}} DEC&0&1&2&3&4&5&6&7&8&9&10&11&12&13&14&15\ \hline BIN&0000&0001&0010&0011&0100&0101&0110&0111&1000&1001&1010&1011&1100&1101&1110&1111\ \hline HEX&0&1&2&3&4&5&6&7&8&9&A&B&C&D&E&F \end{tabular} \endgroup

\end{document}