It's a more general rule about when and where to use mathematical notation. Though style rules do differ in places.
For what it's worth I've not seen "12x" in formal contexts, but if that is proper then the times symbol still shouldn't be styled as part of the maths formula imho.