While printing the List of Symbols, I would like, in a draft, to print the definition commands as well. For instance, consider the following commands:
\providecommand{\perm}{\ensuremath{\pi}}
\providecommand{\permel}[1]{\ensuremath{\perm(#1)}}
and the following command for printing symbols within a table:
\providecommand{\symbdef}[2]{\texttt{\color{blue}\string #1} & #1 & #2}
Now, the code:
\section{List of Symbols}
\begin{tabular}{lll}
\symbdef{\perm}{a permutaion} \\
\symbdef{\permel{i}}{the value of \perm for the argument $i$} \\
\end{tabular}
proudeces output: \perm
and \permeli
in the first column. However I would like to print \permel{i}
instead of \permlei
here and do not know how.
Please help...