latex两张图片并排时想要Figure 1(a)

正文中显示Figure 1a ,但我想要Figure 1(a)怎么办 ?

问题再现

想要的结果 

解决办法

在导言区加入这一行代码,位置如下。

\renewcommand\thesubfigure{(\alph{subfigure})}

\begin{figure}
\centering
	\begin{subfigure}{.48\textwidth}
        \captionsetup{labelformat=simple}
        \captionsetup[subfigure]{labelformat=parens}
		\includegraphics[width=\linewidth,page=1]{3.eps}
    \caption{figure a name}\label{fig1(a)}
	\end{subfigure}\hfill
	\begin{subfigure}{.48\textwidth}
        \captionsetup{labelformat=simple}
        \captionsetup[subfigure]{labelformat=parens}
		\includegraphics[width=\linewidth,page=1]{3.eps}
    \caption{figure b name}\label{fig1(b)}
	\end{subfigure}\hfill
\caption{figure name}
\label{fig1}
\end{figure}


\captionsetup{labelformat=simple} 用于设置图表标题的格式。

labelformat=simple 表示图表标题的格式被设置为简单的形式,即只显示数字或字母标签,而不包括 "Figure" 或 "Table" 等前缀。

 结果展示

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值