% This file is embedded in glossaries-user.pdf 
% Example 45 The tree* style: inner and outer name and symbol fixed width
% Label: "ex:tree*fixedname+sym2"
% arara: pdflatex
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{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,
  name-symbol-width=widest,
  sub-name-symbol-width=widest,
% compensate for space taken up by \fbox:
  item-counter-padding=2\fboxsep+2\fboxrule,
  sub-item-counter-padding=2\fboxsep+2\fboxrule,
  name-padding=4\fboxsep+4\fboxrule,
  symbol-padding=2\fboxsep+2\fboxrule,
  hang-indent=calculated,
  name-symbol-padding=2\fboxsep+2\fboxrule,
  par-indent=\hangindent + 1em,
 }
 }
} 
\begin{document}
 \printnoidxglossary 
\end{document}
