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)")