دستور \mathbf یک دستور ریاضی است و بایستی در محیط ریاضی ازش استفاده کنین. مثال:
$ \mathbf{3.4} $
دستور \textbf{} روی متن اثر داره؛ نه عبارت ریاضی. مثال:
\textbf{3.4}
\documentclass[12pt]{article}
\begin{document}
	\begin{center}
		\begin{tabular}{c|c}
			\hline
			$ 3.4 $ & $ 3.4 $ \\
			\textbf{3.4} & $ \mathbf{3.4} $
		\end{tabular}
	\end{center}
\end{document}
خروجی:
