I'm trying to create a tabular with all the cells centered. I have found a way to make this possible but all the cells have to contain:
\multicolumn{1}{|c|}{"Text"}
Is there a way to center the text without the need to add the multicolumn command everywhere?
\documentclass[10pt]{article}
\usepackage[english]{babel}
\usepackage{a4wide}
\usepackage[utf8]{inputenc}
\usepackage{mathtools}
\usepackage{float}
\usepackage{makecell}
\usepackage{slashbox}
\usepackage{multirow}
\usepackage{array}
\begin{document}
\begin{table}[H]
\centering
\begin{tabular} {|c|p{.7\textwidth/5}|p{.7\textwidth/5}|p{.7\textwidth/5}|p{.7\textwidth/5}|}
\hline
\multirow{2}{*}{\backslashbox{Distance [m]}{Module}} & \multicolumn{2}{c|}{Range Test [dBm]} & \multicolumn{2}{c|}{Throughput Test [Kbps]}\\\cline{2-5}
& \multicolumn{1}{c|}{A-B} & \multicolumn{1}{c|}{A-C} & \multicolumn{1}{c|}{A-B} & \multicolumn{1}{c|}{A-C} \\\cline{1-5}
\multicolumn{1}{|c|}{10} & \multicolumn{1}{c|}{•} & • & • & • \\
\hline
\multicolumn{1}{|c|}{15} & • & • & • & • \\
\hline
\multicolumn{1}{|c|}{20} & • & • & • & • \\
\hline
\multicolumn{1}{|c|}{25} & • & • & • & • \\
\hline
\multicolumn{1}{|c|}{30} & • & • & • & • \\
\hline
\multicolumn{1}{|c|}{35} & • & • & • & • \\
\hline
\multicolumn{1}{|c|}{40} & • & • & • & • \\
\hline
\multicolumn{1}{|c|}{45} & • & • & • & • \\
\hline
\multicolumn{1}{|c|}{50} & • & • & • & • \\
\hline
\end{tabular}
\end{table}
\end{document}
when I try and use only centered cells I get the issue that the cells are not equally sized.





p{...}) centred (likec) columns. – moewe Mar 13 '19 at 09:28p{.7\textwidth/5}, so I thought that is what you are after. If you want automatic sizing you may want to look intotabularx(https://tex.stackexchange.com/q/89166/35864) ortabulary. – moewe Mar 13 '19 at 09:33\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}and would then useC{.7\textwidth/5}instead ofp{.7\textwidth/5}orc. – moewe Mar 13 '19 at 09:46