Hi. @AdrianoCzelentano has suggested another workaround ${ ... }$
, which looks much neater than mine! So let me share it here.
If you are a Latex Suite user, you can invoke it using the following snippet by typing mk
:
{
...
{trigger: "mk", replacement: " ${ $0 }$ $1", options: "tA"},
...
}