@AlanMunn Have you heard of the
textglos
package? I just came across this for the first time. I had been thinking of trying to write something similar, lately, but it's cool that it already exists. It's pretty simple, but looks useful: it provides macros for inline glossing in text (not in examples).