\usepackage{xparse} \DeclareDocumentCommand{\newdualentry}{ O{} O{} m m m m } { \newglossaryentry{gls-#3}{name={#5},text={#5\glsadd{#3}}, description={#6},#1 } \makeglossaries \newacronym{#3}{#4}{see Glossary on: \gls{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}