I want to get the first row to be bold as follows
The answer in \bfseries for math mode (whole table row in bold) suggests \rowstyle{\boldmath\textbf}
for tabular
which seems to work well. However, \RowStyle
and code-for-first-row
from NiceMatrix
do not seem to work well with \boldmath\textbf
unless these commands are placed before each entry in the table. Also, such solution does not work for \text
which we use to place text in math mode. Is it possible to get a neat solution?
\documentclass{article}
\usepackage{nicematrix}
\begin{document}
\begin{equation}
\begin{NiceArray}{l l l}[first-row, code-for-first-row=]
\text{\textbf{Item No}} & \boldmath\textbf f(t) & \boldmath\textbf F(s)
\\
1. & \delta(t) & 1
\\
\end{NiceArray}
\end{equation}
\end{document}
\mbox{\boldmath$f(t)$}
or\bm{f(t)}
with\usepackage{bm}
.