2

Assuming I have defined a glossary entry named v_rob as v_{\text{robot}} and in my text I want to describe the robot velocity at time t using a subscript, I was tempted to write \gls{v_rob}_t. This, however, produces an error as it is a double subscript. I was hoping to get the equivalent of v_{\text{robot},t}. As I frequently refer to such variables at different timepoints (e.g. t, t-1, t+1, ...), in the present form I can't really use the glossary entry and have to instead manually type v_{\text{robot},t}, v_{\text{robot},t-1} in my text.

My current workaround is adding a negative space between the glossary entry and the new subscript, but it's obviously not the best way to do it: \gls{v_rob}\hspace{-0.7pt}_t

Is there an elegant way to use subscripts with my glossary entry?

0 Answers0