Skip to content

Commit

Permalink
Improve TeX usage by outputting PDF and opening with Evince
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasbishop committed Jul 3, 2012
0 parents commit 6e80946
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tex.el
Original file line number Diff line number Diff line change
@@ -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)")

0 comments on commit 6e80946

Please sign in to comment.