I have a document which has some tables in it and I want to set some default border for each cell in the table. Right now I have defined a new command and I have to call that command for each cell but I don't want to do this. I want to set it as default so that every cell will have the same border. Is there a command which can solve my problem. My current code is like this
\documentclass[11pt]{article}
\usepackage{blindtext}
\usepackage{xcolor}
\begin{document}
\newcommand{\comm}[1]{
\setlength{\fboxrule}{2pt}
\fcolorbox{red}{white}{#1}
}
\begin{center}
\begin{tabular}{ c c c }
\comm{cell1} & \comm{cell2} & \comm{cell3} \\
\end{tabular}
\end{center}
\end{document}
Here I don't want to call commad "comm" for each cell.
\setlength\arrayrulewidth{2pt}
? See e.g. this answer for examples.