我正在尝试使用包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}