I have the following example code, and I want all the columns to have the same width:
\documentclass[xcolor=table]{article}
\usepackage{graphicx} % Required for inserting images
\usepackage{tabularx,booktabs}
\title{dd}
\author{david.moldes }
\date{June 2023}
\begin{document}
\end{table}
\maketitle
\section{Introduction}
\begin{table}\centering
\begin{tabular}{@{}lccccccc@{}}\toprule
& \multicolumn{7}{c}{\textbf{Levels}}\
\cmidrule{2-8}
\textbf{Factors} & \textit{1} & \textit{2} & \textit{3} & \textit{4} & \textit{5} & \textit{6} & \textit{7}\ \midrule
\textit{A} & Water & ChCl:2Gly & ChCl:2Urea & ---
& --- & --- & --- \
\textit{B}& 0 & 0.40 & 0.57 &0.69 & 0.82 & 0.86 & 0.91 \
\bottomrule
\end{tabular}
\end{document}
I tried to use the explanation given here, How to spread columns evenly without fixing table width?, but in a beamer document it does not work.


