% This file is embedded in glossaries-user.pdf 
% Example 39 The tree* style: aligning descriptions
% Label: "ex:tree*aligndesc"
% arara: pdflatex
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{article}
\pagestyle{empty}
\usepackage[T1]{fontenc}
\usepackage[nopostdot,style=tree*]{glossaries}
\makenoidxglossaries
\loadglsentries{example-glossaries-user.tex}
\loadglsentries{example-glossaries-symbols.tex}
\loadglsentries{example-glossaries-constants.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} 

\setupglossaries{
style-options={
 tree*={
  name-symbol-width=widest,
  sub-name-symbol-width=widest,
  hang-indent=calculated,
 }
}
} 

\renewcommand{\glsnoidxitemhook}[2]{% 
 \GlsTreeUpdateWidestNameAndSymbol[#1]{#2}% 
} 
\begin{document}
 \printnoidxglossary 
\end{document}
