\renewcommand*{\glossarysubentryfield}{...}
我注意到,今天更新词汇表后,出现了与和 相关的错误\renewcommand*{\glossaryentryfield}{...}
:这些命令之前没有定义。这让我很疑惑,这些命令是不是过时了——我在手册中找不到它们?我应该用什么来代替,我的两列式首字母缩略词列表还有什么问题?它似乎仍然可以正常工作,只是更新后出现了页码(不想要的)。
\documentclass{article}
\usepackage[acronym]{glossaries} \makeglossaries
\usepackage{multicol}
\usepackage{enumitem}
\newglossarystyle{AcronymsTwoCol}{%
\renewcommand*{\glossaryheader}{}%
\renewcommand*{\glsgroupheading}[1]{}%
\renewcommand*{\glossarysubentryfield}[6]{glssubentryitem{##2}{\strut\glstarget{##2}##4\glspostdescription\space ##6}}% caused error on update 2022-10-14, must be newcommand now ?
\renewcommand*{\glsgroupskip}{\vspace{7pt}}% space between alphabetized groups
\renewenvironment{theglossary}%
{\vspace*{1ex}\setlength{\columnsep}{30pt}\begin{multicols}{2}%
\begin{description}[font=\bfseries,leftmargin=1.7cm,style=multiline,itemsep=3pt]}%
{\end{description}\end{multicols}}%
\renewcommand*{\glossaryentryfield}[5]{% also must be newcommand now...
\item[{\normalfont\bfseries\glsentryitem{##1}\glstarget{##1}{##2}}]{##3\glspostdescription} %
}%
}
\newacronym{abc}{ABC}{A's, B's, and C's}
\newacronym{fb}{FB}{Foo Bar}
\newacronym{xyz}{XYZ}{Xamine Your Zipper}
\begin{document}
\gls{abc}\gls{fb}\gls{xyz}
Hello.
\printglossary[type=\acronymtype,style=AcronymsTwoCol]
\end{document}