% This file is embedded in glossaries-extra-manual.pdf 
% Example 144 Nested glossaries
% Label: "ex:nested"
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{article}
\pagestyle{empty}
\usepackage{fontawesome}
\usepackage[style=tree]{glossaries-extra}
\newglossaryentry{pictograph}{name={pictograph},
 description={picture or symbol representing a word or phrase}}
\newglossaryentry{mathgreek}{name={Greek symbol},
 description={mathematical constants or functions}}
\newignoredglossary*{pictograph}
\newignoredglossary*{mathgreek}
\newglossaryentry{cut}{type={pictograph},
 name={\faCut},
 description={cut}}
\newglossaryentry{paste}{type={pictograph},
 name={\faPaste}, description={paste}}
\newglossaryentry{alpha}{type={mathgreek},
 name={\ensuremath{\alpha}},
 description={alpha}}
\newglossaryentry{beta}{type={mathgreek},
 name={\ensuremath{\beta}},
 description={beta}} 
\begin{document}
\newcommand{\nestedhandler}[1]{%
 \glsxtrunsrtdo{#1}%
 \ifglossaryexists*{#1}%
 {%
 \printunsrtinnerglossary[type={#1},leveloffset={++1},groups=false]{}{}%
 }%
 {}%
}
\printunsrtglossary*{\let\printunsrtglossaryhandler\nestedhandler} 
\end{document}