% This file is embedded in glossaries-user.pdf 
% Example 43 The tree* style: fixed width name and symbol
% Label: "ex:tree*fixednamesym"
% arara: pdflatex
% arara: pdflatex
% arara: pdfcrop
\documentclass[10pt]{article}
\pagestyle{empty}
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\usepackage[nopostdot,style=tree*]{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},
  widest-name={aliquam et},
  widest-symbol={$\sqrt{-1}$},
  widest-sub-name={w/2 name},
  widest-sub-sub-name={duisnibh},
  widest-sub-symbol={$\chi_0$},
  name-width=widest,
  sub-name-width=widest,
  sub-sub-name-width=widest,
  symbol-width=widest, sub-symbol-width=widest, }
 }
} 
\begin{document}
 \printnoidxglossary 
\end{document}
