Currently I define my multiplication with
\newcommand{\m}{ \!\cdot\!}}
but I would like to have the \! only there if the font is large enough. How do I check for the size of the font?
The important point here is, that the \m might be - for example - in a subscript (e.g. of an integral) and there I do not want to have \!.
I tried
\makeatletter
{\small \xdef\normalfontsize{\f@size}}
\newcommand{\m}{ \ifthenelse{\f@size<\normalfontsize} \cdot \ifthenelse{\f@size<\normalfontsize}{}{\!} }
\makeatother
inspired from Identifying and writing the font size, but this did not work - I always get the \!.
\mwith a\mathchoice, like\newcommand{\m}{\mathchoice{\!\cdot\!}{\!\cdot\!}{\cdot}{\cdot}}. See this answer. – Phelype Oleinik Sep 06 '19 at 14:43