Do not insert spaces in between $$ in latex code.