% This file is embedded in glossaries-extra-manual.pdf 
% Example 103 Category post-link hook with punctuation lookahead
% Label: "ex:catpostlinkpunc"
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{article}
\pagestyle{empty}
\usepackage{glossaries-extra}
\glsdefpostlink{general}{\glsxtrdopostpunc{*}}
\newglossaryentry{sample}{name={sample},symbol={X},description={an example}} 
\begin{document}
\Gls{sample}, \glstext{sample}, (\glsdesc{sample}) and \glssymbol{sample}. 
\end{document}
