浮動行圖形框 - 標題中的兩行

浮動行圖形框 - 標題中的兩行

我試圖使用此命令獲取兩行標題,但使用\\不起作用。如果有人知道如何做到這一點將會有幫助

\begin{figure}
\begin{floatrow}
\ffigbox{%
 \caption{Incentive Tune: $\theta_{1} = 0.0167$, $\theta_{2} = 0.008$ }
\includegraphics[scale= .35]{chapters/Chapter09/ch9_3.eps}%
}{%
}
\ffigbox{%
\caption{Incentive Tune: $\theta_{1} = 0.019$, $\theta_{2} = 0.01$ }
\includegraphics[scale=.35]{chapters/Chapter09/ch9_4.eps}%
}{%
}
\end{floatrow}
\end{figure}

答案1

載入caption包:

\documentclass{article}
\usepackage{floatrow}
\usepackage{graphicx}
\usepackage{caption}

\begin{document}

\begin{figure}
\begin{floatrow}
\ffigbox
  {\includegraphics[scale= .35]{example-image-a}}
  {\caption{Incentive Tune: \\ $\theta_{1} = 0.0167$, \\ $\theta_{2} = 0.008$}%
  }
\ffigbox
  {\includegraphics[scale=.35]{example-image-b}}
  {\caption{Incentive Tune: \\ $\theta_{1} = 0.019$, \\ $\theta_{2} = 0.01$}%
  }
\end{floatrow}
\end{figure}

\end{document}

在此輸入影像描述

相關內容