# Using acronym in math mode

I am using the acronym package to set up my formula symbols. When I use them in normal math mode, everything is fine. But when I use one of them as a subscript, the font size is normal and not smaller like the other subscripts.

I tried with \scriptsize, but there is a warning that this is not supported, but it works. I also tried \scriptstyle but this has no effect.

\documentclass{article}
\usepackage{acronym}
\begin{document}
to big

$$\acs{v}_{\acs{N}}$$

works, but with warning

$$\acs{v}_{\scriptsize\acs{N}}$$

works not

$$\acs{v}_{\scriptstyle\acs{N}}$$

\begin{acronym}
\acro{v}[\ensuremath{v}]{Velocity}
\acro{N}[\ensuremath{N}]{Count}
\end{acronym}
\end{document}

• I think this is better done with glossaries rather than acronym. Feb 8 '20 at 23:46
• I don't need the huge functionality of glossaries, so I wanted to use the lightweight one Feb 9 '20 at 8:56

You can use macro \text from amsmath package:

\documentclass{article}
\usepackage{acronym}
\usepackage{amsmath}
\begin{document}
$$\acs{v}_{\text{\acs{N}}}$$
\begin{acronym}
\acro{v}[\ensuremath{v}]{Velocity}
\acro{N}[\ensuremath{N}]{Count}
\end{acronym}
\end{document}


• Yes, this is working. I think it is a bit misused, but why not. Feb 9 '20 at 8:53