[Tex/LaTex] How to change the font type of a table? LATEX

tables

I want to make the font type of a table to be the same that I am using in the text, how do I do that? How do I change the font in a table?

Best Answer

if you have only one table, the simplest way is

\begin{table}
\sffamily
\begin{tabular} ...

\end{tabular}
\end{table}

otherwise put in preamble

\usepackage{etoolbox}
\AtBeginEnvironment{table}{\sffamily}

note, this change font family only im tabular material. in caption is defined by caption set up.