I have this MWE:
\documentclass[12pt,a4paper]{article}
\usepackage{nicematrix}
\begin{document}
\begin{enumerate}
\item
\begin{center}
$\begin{pNiceMatrix}[first-row,first-col]
& \{1,2\} & \{1,3\} & \{1,4\} & \{2,3\} & \{2,4\} & \{3,4\} \\
x_1 & 1 & 0 & 1 & 0 & 0 & 0 \\
x_2 & -1 & 0 & 0 & 1 & 1 & 0 \\
x_3 & 0 & 0 & 0 & -1 & 0 & 1 \\
x_4 & 0 & 0 & -1 & 0 & -1 & -1 \\
\end{pNiceMatrix}$
\end{center}
\item Two.
\item Three.
\end{enumerate}
\end{document}
Unfortunately the 1. just before the matrix is centered as well. How can I avoid this?
Best Answer
Quick and dirty hack: