|
From: | Olive |
Subject: | Re: integrating PDFLaTeX with emacs? |
Date: | Sat, 19 Mar 2005 23:23:44 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040618 |
Elvis Chen wrote:
hi all, sorry for what may be a trivial question, but please help if it is trivial nonetheless :) I'm trying to get PDFLaTeX to play nicely with emacs. I'm using Linux Suse 9.1 with Emacs-21.3. I would like to edit my ~/.gnu-emacs-custom such that I can rebind the keys: Ctrl-c Ctrl-f to "pdflatex" my .tex file, and Ctrl-c Ctrl-v to launch xpdf to view the resulting .pdf file can someone give me a hint please? From emacsWiki I have found what may work: (setq tex-command "pdftex") (defun tex-view () (interactive) (tex-send-command "xpdf" (tex-append tex-print-file ".pdf"))) but it doesn't. my key-binding were still tied to latex/xdvi tia, ECC
(set-variable (quote latex-run-command) "pdflatex") (set-variable (quote tex-dvi-view-command) "xpdf")You can also do this interactively by M-x customize-variable latex-run-command and the same for tex-dvi-view-command
This works for the standard mode of emacs. auctex has that functionality built-in. Some people in this list find unbelievable to not use auctex. I strongly disagree with this. Some people, as me, prefer to use the standard TeX mode.
Olive
[Prev in Thread] | Current Thread | [Next in Thread] |