What I want to do:
- Create a table in math mode without $...$ everywhere
- Bolding the first column
What I have done:
- Using
>{$}c<{$}to put table in math mode; see this answer. - Following this answer, I use the package
bm. However, I failed to integrate the command$\bm{}$into>{$}c<{$}introduced above.
I have tried >{$\bm\{}c<{\}$}, >{$\bm}c<{$}, >{\bm$}c<{$}, and >\bm{{$}c<{$}}. Notice that >{$\it}c<{\it$} can italicize the first column. But that is not what I want.
\documentclass{article}
\usepackage{array} % >{\command} and <{\command} for advanced column specification
\usepackage{bm} % for bold math symbols
\begin{document}
\begin{table}[!t]
\renewcommand{\arraystretch}{1.5}
\centering
\begin{tabular}{|>{$}c<{$}|>{$}c<{$}|}
\hline
2 & \sin(x) \\ \hline
3 & \log(x) \\ \hline
\end{tabular}
\end{table}
\end{document}

\bmhas a normal argument, thus the curly braces are argument braces. Therefore the argument for\bmin\bm\bgroup...\egroupis\bgroup, which disturbs the internals, thus that some bold commands are leaking out and affect numbers. However other symbols like\intare not becoming bold. – Heiko Oberdiek Jun 26 '15 at 05:12