add latex support

I am not sure if it is a good idea to include latex support. Some users don't need it at all and will find it annoying, as the dollar sign `$` is now a special char. But it is very usual for me.