0

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 \!.

Make42
  • 1,772

0 Answers0