我缺少一些关于如何在生成的索引中输入子条目的信息acro/imakeidx
。
assetclass
不被理解为 的子条目asset
。
\documentclass{book}
\usepackage{acro}
\usepackage{imakeidx}
\makeindex
\acsetup{
index/use=true
}
\DeclareAcronym{asset}{%
short=asset,
long= underlying asset
}
\DeclareAcronym{assetclass}{%
short=asset class,
long=asset class,
% index = {\ac{asset}!class}
index = {asset!class}
}
\begin{document}
This is the demonstration of the usage of \ac{asset}---which is not to be confused with \ac{assetclass}.
\printacronyms
\printindex
\end{document}
答案1
仅供记录,@Cicada 的评论回答了我的问题。
\documentclass{book}
\usepackage{acro}
\usepackage{xcolor}
\usepackage{imakeidx}
\makeindex[columns = 1]
\acsetup{ index/use=true }
\DeclareAcronym{asset}{%
short=asset,
long= underlying asset,
index={asset}, }
\DeclareAcronym{assetclass}{%
short=asset class,
long=asset class,
index = {asset!class} }
\begin{document}
This is the demonstration of the usage of \ac{asset}---which is not to be confused with \ac{assetclass}.
\printacronyms
\printindex
\end{document}