Latex在图片与\caption中间加入文字,效果如下:
弄了一天,终于弄出来了。由于是新手,并没有教程教如何做,我以为插入图片后只能写\caption{。。。}。为了达到这个目的想了很多别的办法。我上面给的图片是一整张图,并不是5张子图,所以代码如下:
% 原本是这样的
\begin{figure*}[t!]
\centering
\includegraphics[width=0.75\textwidth]{fig4.jpg}
\caption{Visualization of segmentation results of each component insert into the baseline.}
\label{fig4}
\end{figure*}
%在插入的图片与\caption{}之间插入文字
\begin{figure*}[t!]
\centering
\includegraphics[width=0.75\textwidth]{fig4.jpg}
\begin{center}
\footnotesize ~~~~~~~~~Input\qquad\qquad\qquad\quad~~~~GT\qquad\qquad\qquad\quad~~ UNet\qquad\qquad\qquad UNet+ACPA~~~~\quad~~~~~ UNet+ACPA+DS
\end{center}
\caption{Visualization of segmentation results of each component insert into the baseline.}
\label{fig4}
\end{figure*}
在上面的代码中,直接使用center环境插入文字,字体大小选用\footnotesize,文字中使用~和\qquad来调节间距
拓展
添加子图,先引入包subfigure
\begin{figure*} \centering
\subfigure[figure 1 title.] { \label{fig:a}
\includegraphics[width=0.8\columnwidth]{a1.png}
}
\subfigure[figure 2 title.] { \label{fig:b}
\includegraphics[width=0.8\columnwidth]{a2.png}
}
\caption{ general title. }
\label{fig}
\end{figure*}
这样可以得到两个子图:
若是想要去掉子图前的序号(a),(b) 这就需要技巧了。我们可以将\subfigure[figure 1 title.] 中的中括号去掉,这样就可以去掉子图的标题:
接着,要用到最开始讲的知识,我们在每一个子图下面插入文字即可