![标签编号问题](https://linux22.com/image/463099/%E6%A0%87%E7%AD%BE%E7%BC%96%E5%8F%B7%E9%97%AE%E9%A2%98.png)
我正在尝试使用这样的子图命令:
\begin{figure}
\centering
\caption{Problema com 7 nós e 9 veículos}
\subfigure[Custo]{\label{fig17}\includegraphics[scale=.5]{part5-figuras/Solucoes/20 problemas ( 7 nós_9 veic ).png}}
\subfigure[Histograma]{\label{fig18}\includegraphics[scale=.5]{part5-figuras/Solucoes/caminhoes 7-9.png}}
\end{figure}
当我调用标签时,它如下所示:
我在第 5 章,它应该标记为 5.3(a) 和 5.3(b),但它的编号是 5.18(这是数字)。我不知道我是否必须使用某个包或类似的东西。我对此一无所知
答案1
根据 Mico 的建议,我尝试使用 subcaption 包并且成功了
\begin{figure}
\centering
\caption{Problema com 7 nós e 9 veículos}
\subcaptionbox{Custo\label{fig17}}{\includegraphics[scale=.5]{part5-figuras/Solucoes/20 problemas ( 7 nós_9 veic ).png}}
\subcaptionbox{Histograma\label{fig18}}{\includegraphics[scale=.5]{part5-figuras/Solucoes/caminhoes 7-9.png}}
\end{figure}