% arara: pdflatex % arara: makeglossaries % arara: pdflatex \documentclass{article} \usepackage[T1]{fontenc} \usepackage[colorlinks]{hyperref} \usepackage{glossaries-extra} \makeglossaries \setabbreviationstyle{long-short-sc} \newabbreviation{ssi}{ssi}{server side includes} \newabbreviation{html}{html}{hypertext markup language} %DON'T use this with upper casing commands! \newabbreviation{shtml}{shtml}{\gls{ssi} enabled \gls{html}} % Alternatively %\newabbreviation{shtml}{shtml}{\glsxtrshort{ssi} enabled \glsxtrshort{html}} \begin{document} This is a sample document testing nested link text. The \texttt{glossaries-extra} package temporarily modifies commands like \verb|\gls| or \verb|\glsxtrshort| that occur in fields, when any of those field is accessed through linking commands. First use: \gls{shtml}. \newpage Next use: \gls{shtml}. \newpage \printglossaries \end{document}