From 6e80946f3060a64fe2f1e731bb54aae733b0fde6 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Tue, 3 Jul 2012 16:30:25 -0400 Subject: [PATCH] Improve TeX usage by outputting PDF and opening with Evince --- tex.el | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tex.el diff --git a/tex.el b/tex.el new file mode 100644 index 0000000..024f786 --- /dev/null +++ b/tex.el @@ -0,0 +1,7 @@ +;; generate pdf output +;; creates also a fake dvi file so that tex-dvi-view-command doesn't choke +(setq latex-run-command + "(TEXFILE=*; pdflatex $TEXFILE && cp ${TEXFILE%.tex}.pdf ${TEXFILE%.tex}.dvi)") + +;; xdvi is crap, use evince instead +(setq tex-dvi-view-command "(DVIFILE=*; evince ${DVIFILE%.dvi}.pdf)")