Nicematrix 包:我希望表格的第一行和第一列以粗体显示

Nicematrix 包:我希望表格的第一行和第一列以粗体显示

我想在我的文档中使用第一行和第一列boldfaced的包,nicematrix因为我以前的表格样式这个答案

\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx, float}
\usepackage{nicematrix}
\begin{document}
    \begin{table}[H]
    \centering
    \footnotesize
    \caption{What I Model for AR(2) at $n=10$}
    \label{tabb1}
    \resizebox{\textwidth}{7em}{%
        \begin{NiceTabular}{|c|c|c|c|}
            \hline
            \RowStyle{\bfseries}
            \textbf{} &
            \textbf{$\phi = (.4, .4)$} &
            \textbf{$\phi = (.45, .45)$} &
            \textbf{$\phi = (.35, .6)$} \\ \hline
            \textit{\textbf{$sd = 1$}} &
            $X_{t} = 0.0 + 0.4X_{t-1} + 0.4X_{t-2}; \varepsilon_{t} \sim  N(0,\,1)$ &
            $X_{t} = 0.0 + 0.45X_{t-1} + 0.45X_{t-2}; \varepsilon_{t} \sim  N(0,\,1)$ &
            $X_{t} = 0.0 + 0.35X_{t-1} + 0.6X_{t-2}; \varepsilon_{t} \sim  N(0,\,1)$ \\ \hline
            \textit{\textbf{$sd = 3$}} &
            $X_{t} = 0.0 + 0.4X_{t-1} + 0.4X_{t-2}; \varepsilon_{t} \sim  N(0,\,3)$ &
            $X_{t} = 0.0 + 0.45X_{t-1} + 0.45X_{t-2}; \varepsilon_{t} \sim  N(0,\,3)$ &
            $X_{t} = 0.0 + 0.35X_{t-1} + 0.6X_{t-2}; \varepsilon_{t} \sim  N(0,\,3)$ \\ \hline
            \textit{\textbf{$sd = 5$}} &
            $X_{t} = 0.0 + 0.4X_{t-1} + 0.4X_{t-2}; \varepsilon_{t} \sim  N(0,\,5)$ &
            $X_{t} = 0.0 + 0.45X_{t-1} + 0.45X_{t-2}; \varepsilon_{t} \sim  N(0,\,5)$ &
            $X_{t} = 0.0 + 0.35X_{t-1} + 0.6X_{t-2}; \varepsilon_{t} \sim  N(0,\,5)$ \\ \hline
            \textit{\textbf{$sd = 10$}} &
            $X_{t} = 0.0 + 0.4X_{t-1} + 0.4X_{t-2}; \varepsilon_{t} \sim  N(0,\,10)$ &
            $X_{t} = 0.0 + 0.45X_{t-1} + 0.45X_{t-2}; \varepsilon_{t} \sim  N(0,\,10)$ &
            $X_{t} = 0.0 + 0.35X_{t-1} + 0.6X_{t-2}; \varepsilon_{t} \sim  N(0,\,10)$ \\ \hline
            \end{NiceTabular}
        }
    \end{table}
\end{document}

这里是输出但我希望第一行和第一列以粗体显示。

相关内容