% This file is embedded in glossaries-user.pdf 
% Example 42 The tree* style elements
% Label: "ex:tree*elements"
% arara: pdflatex
% arara: pdflatex
% arara: pdfcrop
\documentclass[10pt]{article}
\pagestyle{empty}
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\usepackage[nopostdot,style=tree*, entrycounter,subentrycounter]{glossaries}
\makenoidxglossaries
\loadglsentries{example-glossaries-user.tex}
\loadglsentries{example-glossaries-symbols.tex}
\loadglsentries{example-glossaries-constants.tex}
\loadglsentries{example-glossaries-parent.tex}
\glsadd{sample-i}
\glsadd{sample-i-0}
\glsadd{sample-i-1}
\glsadd{sample-i-2}
\glsadd{sample-p}
\glsadd{sample-w}
\glsadd{sample-w-0}
\glsadd{sample-w-1}
\glsadd{sample-w-2}
\glsadd{i-constant}
\glsadd{pi-constant}
\glsadd{psi}
\glsadd{Gauss-constant}
\glsadd{Gieseking-constant}
\glsadd{duisnisl}
\setlength{\fboxsep}{2pt}
\renewcommand\GlsTreeStarBox[1]{\fbox{#1}}
\renewcommand\GlsTreeStarItemCounterBox[1]{\fbox{#1}}
\setupglossaries{style-options={
 tree*={
  group-headings,
  name-symbol-sep=\textasteriskcentered,
  post-name-symbol=\textendash,
  pre-description=\textbullet,
  pre-location=\dotfill,
  post-location=\P,
  symbol-font=\color{teal},
  child-symbol-font=\color{orange},
  item-counter-font=\small\color{cyan},
  sub-item-counter-font=\small\color{magenta}
  }
 }
} 
\begin{document}
 \printnoidxglossary 
\end{document}
