I am trying to generate a list of math symbols, based on How to create a list of symbols where symbols can be used in math mode?. When I try to use the code below it gives me an error of
'! TeX capacity exceeded, sorry [input stack size=5000]'
\documentclass{article}
\usepackage{glossaries}
\makenoidxglossaries
\newglossaryentry{rho}{%
name={\ensuremath{\rho}},
sort=rho,
description={Normalized Cross Correlation Metric}
}
\begin{document}
\printnoidxglossary
\renewcommand{\rho}{\gls{rho}}
$\rho$
\gls{rho}
\end{document}
How can I overcome this?
\rho→\gls{rho}→\rho→\gls{rho}... no wonder TeX is exhausted at some point. By the way, I don't recommend to use\rhothis way. – Sep 15 '15 at 20:38