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