Latex: subfloat取消编号

博客介绍了在使用IEEE论文模板时遇到的subcaption包与模板不兼容的问题,导致无法为图片子图设定编号。通过引入captionsetup[subfloat]并设置特定参数,成功地实现了无编号的子图展示。提供了具体的代码示例,展示了设置前后的效果对比。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

当我们使用Latex的图片下标功能时,可能需要设定编号,也可能不需要编号。

由于IEEE模板的设置与subfigure命令不兼容,所以无法使用subcaption

Package subcaption Error: This package can't be used in cooperation

后来我在:Latex-Subfloat格式 文章中找到了解决方案:

\captionsetup[subfloat]{labelsep=none,format=plain,labelformat=empty}

整个设置如下:

\begin{figure*}[t]
  \centering
  \captionsetup[subfloat]{labelsep=none,format=plain,labelformat=empty}
  \subfloat[$\ \ \ \ \ $ 2 spp. $\ \ \ \ \ \ \ \ \ \ \ \ \ $ 2 spp. $\ \ \ \ \ \ \ \ \ \ \ \ \ \ $ 512 spp. \\ \smallskip   $\ \ \ \ \ \ $ VPT $\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ $ Ours $\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ $ Ref. ]{
    %\hspace{0.2in}
    \includegraphics[width=0.31\textwidth]{Fig1/Untitled-1}
  }
  \subfloat[$\ \ \ \ \ $ 2 spp. $\ \ \ \ \ \ \ \ \ \ \ \ \ $ 2 spp. $\ \ \ \ \ \ \ \ \ \ \ \ \ \ $ 512 spp. \\ \smallskip   $\ \ \ \ \ \ $ VPT $\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ $ Ours $\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ $ Ref. ]{
    %\hspace{0.2in}
    \includegraphics[width=0.31\textwidth]{Fig1/Untitled-1}
  }
  \subfloat[$\ \ \ \ \ $ 2 spp. $\ \ \ \ \ \ \ \ \ \ \ \ \ $ 2 spp. $\ \ \ \ \ \ \ \ \ \ \ \ \ \ $ 512 spp. \\ \smallskip   $\ \ \ \ \ \ $ VPT $\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ $ Ours $\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ $ Ref. ]{
    %\hspace{0.2in}
    \includegraphics[width=0.31\textwidth]{Fig1/Untitled-1}
  }
  \centerline{}
  \caption{Lalalalalallalala}
  \label{fig:Totalpipeline}
  \vspace{-0.10in}
\end{figure*}

没有使用\captionsetup则显示为:

 使用了以后显示为:

 

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Dezeming

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值