Fix latex preview and Gist