I want to create a table that looks like
I used the nicematrix
package and was able to create something like this
I found that it is hard to add rules inside a matrix
environment. Here is my code:
\begin{equation*}
\begin{matrix}
\begin{matrix}
\\ a \\ a \\ a \\ a \\ a \\ a \\ a \\ a
\end{matrix} &
\begin{NiceMatrix}[first-row]
r & \xi_1-\xi_2 & \xi_3-\xi_2 \\
b & c & d \\
b & c & d \\
b & c & d \\
b & c & d \\
b & c & d \\
b & c & d \\
b & c & d \\
b & c & d \\
b & c & d
\end{NiceMatrix}
\end{matrix}
\end{equation*}
I think using equation
environments to create a table might cause some unexpected errors. Also, it is inconvenient to add rules. Even with this answer I still find it difficult to customize the rules. Are there any alternatives?