I would like to print the first usage of a math symbol defined in my glossary in bold without defining a new glossary entry.
Using the text environment \textbf{\glssymbol{T1}} has no effect, because the symbol is in math mode.
Using the symbol in math mode does not work either: $\glssymbol{T1}$.
How do I print the math symbol in bold?
\documentclass{article}
\usepackage{glossaries}
\usepackage{bm}
\makeglossaries
\newglossaryentry{T1}{name={T1}, symbol={\ensuremath{T_1}}, description={longitudinal relaxation time}}
\newglossaryentry{T1bold}{name={T1}, symbol={\ensuremath{\bm{T_1}}}, description={longitudinal relaxation time (bold entry)}}
\begin{document}
This is the first time I use \textbf{\glssymbol{T1}} (should be \textbf{bold} like \glssymbol{T1bold}) and this the second time: \glssymbol{T1} (not bold).
Defining another symbol in the glossary leads to a second entry:
\printglossaries
\end{document}
\ensuremath{\boldsymbol{T_1}}or\boldmath\ensuremath{T_1}? – Bernard Feb 24 '20 at 13:57