I noticed that some incorrect usage of the \mathcal and \mathbb command generates interesting symbols.
\mathcal{M^1} \mathcal{M^2} \mathcal{M^3} \mathcal{M^4} \mathcal{M^5}
and
\mathbb{M^1} \mathbb{M^2} \mathbb{M^3} \mathbb{M^4} \mathbb{M^5}
Is this an expected behaviour? It seems that this is not what should be expected. I am wondering why would this happen instead of an error being thrown?


\mathcaland\mathbb(which are provided only as uppercase alphabets) contain other symbols packed in to fill the fonts. So only the actual argument of either of those commands should be in braces:\mathcal{M}^1. (Yes, a duplicate.) – barbara beeton Jun 02 '21 at 20:46\mathcaland\mathbbselect a different font, where regular characters such as M but also 1 are mapped to various symbols. The numbers-mapped-to-symbols are usually not entered directly, but called using macros such as\infty, which is internally defined as\mathchar"231, where 2 is the family and 31 is the hexadecimal code for the character1. – Marijn Jun 02 '21 at 20:48