autoref 和 phantomsubcaption 的問題

autoref 和 phantomsubcaption 的問題

我有一個已經有小標題的圖形。我正在為此使用hyperref和打包。subcaption

我有類似的東西

\documentclass{article}
\usepackage{subcaption}
\usepackage{hyperref}
\usepackage{graphicx}

\begin{document}

\autoref{Fig1a}, \autoref{Fig1b}, \autoref{Fig1c} and \autoref{Fig1d} are in \autoref{Fig1}

\begin{figure}[htb]
\centering
{
\includegraphics{example-image}
\phantomsubcaption\label{Fig1a}
\phantomsubcaption\label{Fig1b}
\phantomsubcaption\label{Fig1c}
\phantomsubcaption\label{Fig1d}
}
\caption{Image description:
\textbf{(a)}~figure 1a,
\textbf{(b)}~figure 1b,
\textbf{(c)}~figure 1c and
\textbf{(d)}~figure 1d
}
\label{Fig1}
\end{figure}
\end{document}

當我編譯時它工作得很好。但是,其他具有相同結構的文檔,我不知道為什麼而不是圖1a,圖1b.... 我越來越項目1a,項目1b

有什麼幫助嗎?

相關內容