引入子图时如何在引用中的字母两边加括号? #1141
Replies: 1 comment 1 reply
|
在导言区添加以下两行即可: \renewcommand{\thesubfigure}{(\alph{subfigure})}
\captionsetup[subfigure]{labelformat=simple}第一行让 |
1 reply
Answer selected by
dzx-dzx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


在导言区添加以下两行即可:
第一行让
\thesubfigure本身携带括号,使\ref{子图标签}输出(a)的形式,从而图~\ref{fig:parent}\ref{fig:sub}可以得到图3.1(a);第二行将子图题注格式改为simple,直接显示\thesubfigure的内容,避免题注变成双重括号((a)),保持题注展示效果不变。参考