I made a table, but the table does not fit on the page. The code for the table is:
\begin{table}[H]
\centering
\label{my-label}
\begin{tabular}{|l|c|c|c|c|c|}
\hline
& \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{} \\ \hline
& x & 0 & 0 & 0 & 1 \\ \hline
& 1 & x & 0 & 0 & 1 \\ \hline
& 1 & 1 & x & 1 & 1 \\ \hline
& 1 & 1 & 0 & x & 1 \\ \hline
& 0 & 0 & 0 & 0 & x \\ \hline
& 3 & 2 & 0 & 1 & 4 \\ \hline
& 4 & 3 & 1 & 2 & 5 \\ \hline
\end{tabular}
\end{table}
How do I change the width of the table so that it fits on the page?
{}
on the gui - for in-line code use back-ticks. – user30471 Dec 4 '16 at 20:01\hlines
as this will look much better -- see the booktabs manual for a discussion on best practice in writing tables. – user30471 Dec 4 '16 at 20:07