I have a particular generic function in my document whose signature is $\mathscr{T}_{i}(\cdot)$. This function is used with different arguments in the text, e.g., $\mathscr{T}_{i}(\Lambda_j)$, $\mathscr{T}_{i}(\Lambda_j)$, etc. Using the glassories package and \gls command, every symbol appearing in the list of symbols is exactly identical to a symbol in the text. However, what I need is the substitution of the function-with-argument with the generic signature of the function in the list of symbols. Here is an MWE:
main.tex:
\documentclass{article}
\usepackage[nogroupskip]{glossaries}
\makenoidxglossaries
\loadglsentries{gloss-symb}
\newglossarystyle{mylong}{%
\setglossarystyle{long}%
\renewenvironment{theglossary}%
{\begin{longtable}[l]{@{}p{\dimexpr 2cm-\tabcolsep}p{0.8\hsize}}}
{\end{longtable}}%
}
\begin{document}
\printnoidxglossary[sort=def,style=mylong,title={List of Symbols}]
\printnoidxglossary[type=symbols,sort=use]
\input{myChap}
\end{document}
myChap.tex:
Here is the function \gls{myFunction}
Here is the function $\mathsf{T}_{i}(\Lambda_j)$
gloss-symb:
\newglossaryentry{myFunction}{name={\ensuremath{\mathsf{T}_{i}(\Omega_j)}},description={The intended function}}
The output would be:
How can I end up with this?:





\input{...}and\loadglsentriesfor an example. – egreg Apr 09 '18 at 20:47\inputs (and the other imported files) are fairly necessary. – Apr 09 '18 at 20:49