Latex在图片与\caption中间加入文字

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.] 中的中括号去掉,这样就可以去掉子图的标题:
在这里插入图片描述

接着,要用到最开始讲的知识,我们在每一个子图下面插入文字即可

  • 9
    点赞
  • 15
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值