引用子浮點問題

引用子浮點問題

我在文章中使用了從其他論文中獲取的圖像。我希望能夠引用 中的圖像\subfloat,但latex會產生錯誤訊息。這是程式碼片段,

\newcommand{\figDWidth}{0.45\textwidth}
\begin{figure}[t]
    \centering
    \subfloat[Bley et al.~\cite{Bley}]{\label{Ch.Background.Fig.1:a}\includegraphics[width=\figDWidth]{./Figures/Bley.jpg}}~
    \subfloat[Jang et al.~\cite{Jang}]{\label{Ch.Background.Fig.1:b}\includegraphics[width=\figDWidth]{./Figures/Jang.jpg}}
    \label{Ch.Background.Fig.1}
\end{figure}

和錯誤訊息,

Illegal parameter number in definition of \sf@captionlist. ...gDWidth]{./Figures/Bley.jpg}}

相關內容