I would like to setup a command for adding inline math in text paragraphs. In that command, I want to change some style properties, like change the color of the equation. Fox example:
The value of $x = 2 + 3$ is $x=5$.
I would like to do.
The value of \Mimath{x = 2 + 3} is \Mimath{x=5}.
I through I could start with something like this:
\newcommand*\Mimath[1]{ $ #1 $ }
But that gives an error in TexStudio:
Undefined control sequence. ...lection of objects whatsoever. A set \Mimath
How can I create that type of command?

