% This file is public domain \documentclass{article} \usepackage[acronym]{glossaries} % \newdualentry[main options]{label}{short}{long}{description} \newcommand*{\newdualentry}[5][]{% \newglossaryentry{main-#2}{name={#4},% text={#3\protect\glsadd{#2}},% description={#5},% #1 }% \newacronym{#2}{#3\protect\glsadd{main-#2}}{#4} } \newdualentry{svm}% label {SVM}% abbreviation {support vector machine}% long form {Statistical pattern recognition technique}% description \makeglossaries \begin{document} \gls{svm}. \printglossaries \end{document}