부동 행 그림 상자 - 캡션에 두 줄

부동 행 그림 상자 - 캡션에 두 줄

이 명령을 사용하여 두 줄의 캡션을 얻으려고 하는데 을 사용하면 \\작동하지 않습니다. 누구든지 이 작업을 수행하는 방법을 알고 있다면 도움이 될 것입니다.

\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}

여기에 이미지 설명을 입력하세요

관련 정보