caixa de figura de linha flutuante - duas linhas na legenda

caixa de figura de linha flutuante - duas linhas na legenda

Estou tentando obter a legenda em duas linhas com este comando, mas usar \\não funciona. Se alguém souber como fazer isso seria útil

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

Responder1

Carregue o captionpacote:

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

insira a descrição da imagem aqui

informação relacionada