我想在子图中引用一个页面。解析过程中断,因为 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}