\subfigure 不會在單字之間產生空格

\subfigure 不會在單字之間產生空格

誰能告訴我為什麼子圖不能在單字之間產生空格,它們都是連結在一起的?

\begin{figure}[htb!]
  \centering
  \subfigure[\label{fig:beamFRFdr(a)}$Original  stiffness  distribtution$]
   {\includegraphics[width=0.45\textwidth, height=0.2\textheight]{Kdr.eps}}
  \subfigure[\label{fig:beamFRFdr(b)}$Corresponding  FRF $]
   {\includegraphics[width=0.45\textwidth, height=0.2\textheight]{FRFdr.eps}}
  \caption{\label{fig:beamFRFdr} degradation  Distribution  Identified  by  Original  Algorithm  and the  Corresponding  FRF. }
\end{figure}

在此輸入影像描述

答案1

我猜你在執行以下操作後(但我可能是錯的):

在此輸入影像描述

  • 從程式碼片段可以得出結論,您使用了過時的套件subfigure
  • 相反,使用subfig甚至更好的subcaption包來代替它。 - 兩個套件都定義了subfloat具有類似功能的環境subfigure
  • 如果您喜歡子標題文字的斜體形狀,請在 package.json 中相應地定義它。為此使用數學環境是錯誤的。
  • 有關格式化標題和子標題的更多可能性,請參閱caption(和su8bcaption)包文件。
\documentclass{article}
\usepackage{graphicx}
\usepackage[text font=it]{subcaption}


\begin{document}
    \begin{figure}[ht]
    \centering
    \setkeys{Gin}{width=0.45\textwidth, height=0.2\textheight}
\subfloat[Original stiffness  distribution  \label{fig:beamFRFdr}]{\includegraphics{example-image-a}}
\hfil
\subfloat[Corresponding  FRF   \label{fig:beamFRFdr}]{\includegraphics{example-image-b}}
    \caption{Degradation  Distribution  Identified  by  Original  Algorithm  and the  Corresponding  FRF.}
\label{fig:beamFRFdr} 
\end{figure}
\end{document}

相關內容