MapaDoSite ModificaçõesRecentes Notícias SeçãoElisp HowTo

PDFLaTeX

Emacs’s TeX mode doesn’t play nice with PDFLaTeX. Compiling the file with PDFLaTeX or PdfTeX from Emacs is relatively easy, but changing the view command to view the resulting PDF file instead of a DVI file can prove difficult.

JimMenard created a little shell script for Emacs to run. In .emacs he puts

(setq tex-dvi-view-command "/Users/jimm/bin/latex-view '*'")

and that script contains

#! /bin/sh
pdflatex ${1%dvi}tex && open ${1%dvi}pdf

AlanLue: This also works:

(setq tex-dvi-view-command "(f=*; pdflatex \"${f%.dvi}.tex\" && open \"${f%.dvi}.pdf\")")

CategoryTex