![如何使用 \cref 来引用 minted 环境?](https://linux22.com/image/357674/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%20%5Ccref%20%E6%9D%A5%E5%BC%95%E7%94%A8%20minted%20%E7%8E%AF%E5%A2%83%EF%BC%9F.png)
我试过了
\begin{listing}
\begin{minted}{SQL}
SELECT COUNT(*) FROM lineitem
WHERE l_shipdate <= :shipdate
\end{minted}
\label{test}
\end{listing}
但它不起作用。\cref{test}
参考父节
我试过了
\begin{listing}
\begin{minted}{SQL}
SELECT COUNT(*) FROM lineitem
WHERE l_shipdate <= :shipdate
\end{minted}
\label{test}
\end{listing}
但它不起作用。\cref{test}
参考父节