I have a problem with my tables and I am not sure why. I made this table format a long time ago and wanted to use the same style again. Though I cannot seem to get the leftmost column to behave.
I just want all the columns to be equal and be centered.
\begin{table}[!ht]
\begin{tabularx}{\linewidth}{X*{4}{c}}
\hline\\ \multicolumn{4}{c}{\Large Keywords}
\\
\hline
\\
\large A & \large B & \large C & \large D\\\\
1 & 2 & 3 & 4\\
\hline
\end{tabularx}
\caption{test}\label{test}
\end{table}
This is what it looks like now.
How would one go about fixing this? 🙂
//Bogi
Best Answer
The preamble of your tabularx environment wasn't correct for what you want (you had one X column and 4 centred columns with their natural width). I took the liberty to replace the
\hline
s with rules from thebooktabs
package, which hace some vertical padding around them and a variable width, looking more ‘professional’: