After my first steps in LaTeX, I am now trying to create a table. It will have 9 columns, where the first column needs to be more wide, since it contains text. whereas the other eight will contain just numbers an can be of equal width. However, I do not seem to be able to do that even after 1.5 hours of trying and searching this forum...

Please find below a minimum working example of my table (I know
\linewidth
is fixed in this example, but that was the only way I could produce an example to post).
Code: Select all
Code, edit and compile here:
\documentclass[12pt]{article}\usepackage{booktabs}\usepackage{tabularx}\begin{document}\begin{table}[!ht]\begin{tabularx}{\linewidth}{XXXXXXXXX}\topruleTreatments \\ \cmidrule(l){2-9}& A1 & A2 & A3 & A4 & B1 & B2 & B3 & B4 \\ \midrulethis is a longer text& 180 & 380 & 950 & 1400 & 180 & 380 & 950 & 1400 \\this is a longer text& 180 & 380 & 950 & 1400 & 180 & 380 & 950 & 1400 \\this is a longer text& 180 & 380 & 950 & 1400 & 180 & 380 & 950 & 1400 \\ \bottomrule\end{tabularx}\end{table}\end{document}
Thank you so much in advance,
Nina