The command seemed to use a mixture of the new and old webpreview command: It was sourcing html.sh, but using function names of webpreview.sh. Changed the html_header and html_footer commands back to htmlHeader and htmlFooter to make everything work again. Changed: U trunk/Bundles/Latex.tmbundle/Commands/LaTeX and view.plist