![如何在子浮动图中引用页面](https://linux22.com/image/426998/%E5%A6%82%E4%BD%95%E5%9C%A8%E5%AD%90%E6%B5%AE%E5%8A%A8%E5%9B%BE%E4%B8%AD%E5%BC%95%E7%94%A8%E9%A1%B5%E9%9D%A2.png)
我想在子图中引用一个页面。解析过程中断,因为 tex 假设页面引用的页面括号]
正在关闭 subfloat 命令。我该如何防止这种情况发生,或者如何正确引用子图中的页面?
\begin{figure}[H]
\centering
\subfloat[Confusion matrix for multi-class classification. The confusion matrix of a classification with n classes. When considering the class $k$ $(0 \leq k \leq n)$, the four different classification results can be obtained: true positive (green), true negative (orange), false positive (brown), and false negative (red) \citep[p.73]{kruger2016activity}.]{\includegraphics[width=0.4\textwidth]{multiclass-conf-matrix-alt.png}
\label{fig:mult-mat}}
\hfill
\subfloat[Example for a multiclass confusion matrix \citep{baeld:f1}.]
{\includegraphics[width=0.55\textwidth]{binary_classes-multi-class-1.png}
\label{fig:mult-ex}}
\caption{Multiclass confusion matrices.}
\label{fig:multi-conf-mat}
\end{figure}
答案1
如果要]
在可选参数中使用,可以将其括在花括号中,例如,
\subfloat[Example for a multiclass confusion matrix {\citep[47]{baeld:f1}}.]
{\includegraphics[width=0.55\textwidth]{binary_classes-multi-class-1.png}