Skip to content
Discussion options

You must be logged in to vote

在导言区添加以下两行即可:

\renewcommand{\thesubfigure}{(\alph{subfigure})}
\captionsetup[subfigure]{labelformat=simple}

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

参考

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dzx-dzx
Comment options

Answer selected by dzx-dzx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
提问
Labels
None yet
2 participants