\usepackage{xparse} \DeclareDocumentCommand{\newdualentry}{ O{} O{} m m m m } { \newglossaryentry{gls-#3}{name={#5},text={#5\glsadd{#3}}, description={#6},#1 } \makeglossaries \newacronym[see={[Glossary:]{gls-#3}},#2]{#3}{#4}{#5\glsadd{gls-#3}} } \newdualentry{iommu}{IOMMU}{Input/Output Memory Management Unit}{... desc ...} \newdualentry{bar}{BAR}{Base Address Register}{... desc ...} \newacronym{dsa}{DSA}{Intel Data Streaming Accelerator}