Fix support for LaTeX previews