I'm dealing with a large table in my thesis.
I currently have four columns in my table, with small numbers in the 1st and 4th columns and long(ish) text in columns 2 and 3. Therefore I want columns 1 and 4 to be narrower than 2 and 4.
I have referred to the tabularx (I've been told it is also applicable to xltabular) documentation where it says:
{>{\hsize=.5\hsize\linewidth=\hsize}X
>{\hsize=1.5\hsize\linewidth=\hsize}X}
to change the X column sizes, but how would I do this for four columns?
My current table uses the following:
\begin{xltabular}{\linewidth}{XXXX}
\hline
\thead{Approx. \\ Raman shift\\ $(cm^{-1})$} & \textbf{Assignment} & \thead{What does this \\ mean for bone?} & \textbf{References} \\ \hline
Main body of table
\end{xltabular}
I have referred to Table layout with tabularx (column widths: 50%|25%|25%), but it didn't help.
Many thanks
{XXXX}. As you can see,>{\hsize=0.5\hsize\linewidth=\hsize}is added in fromt of the first and the lastXtype column. – leandriis Jul 24 '20 at 20:42\centering\arraybackslashas in>{\hsize=.5\hsize\linewidth=\hsize\centering\arraybackslash}Xand likewise for the wider columns. – leandriis Jul 24 '20 at 21:20\newcolumntype{Z}[1]{>{\hsize=#1\hsize\linewidth=\hsize\centering\arraybackslash}X}. You can later use it as follows:\begin{xltabular}{\textwidth}{Z{0.5}Z{1.5}Z{1.5}Z{0.5}}. – leandriis Jul 24 '20 at 21:23\begin{xltabular}{\linewidth}{lXXl}instead of having to worry about changing the relative widths of the columns. – leandriis Jul 25 '20 at 10:17