acro 包的选项索引不起作用

acro 包的选项索引不起作用

我正在尝试使用包index的选项acro自动将首字母缩略词包含在索引中(由包创建imakeidx)。但这似乎不起作用。是我做错了什么,还是这是包的问题acro

\documentclass{scrartcl}
\usepackage[index]{acro}
\usepackage{imakeidx}
\makeindex

\DeclareAcronym{blah}{short=blah, long=a random acronym}
\DeclareAcronym{blahblah}{short=blahblah, long=another random acronym}

\begin{document}

This is the demonstration of the usage of \ac{blah}---which is not to be confused with \ac{blahblah}.

\printacronyms

\printindex

\end{document}

编辑:

版本 3中可工作的 MWEacro如下:

\documentclass{scrartcl}
\usepackage{acro}
\usepackage{imakeidx}
\makeindex

\acsetup{
    index/use=true
}

\DeclareAcronym{blah}{short=blah, long=a random acronym}
\DeclareAcronym{blahblah}{short=blahblah, long=another random acronym}

\begin{document}

This is the demonstration of the usage of \ac{blah}---which is not to be confused with \ac{blahblah}.

\printacronyms

\printindex

\end{document}

相关内容