Added initial LaTeX support

Rebased version of [pull #207](https://github.com/LeaVerou/prism/pull/207) on issue #206