Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!wrdis01!gatech!mcnc!uvaarpa!haven!wam.umd.edu!charlie From: charlie@wam.umd.edu (Charles William Fletcher) Newsgroups: comp.sys.next Subject: Emacs/TeX hint Keywords: Emacs, TeX, TeXView, previewing Message-ID: <1991Mar21.134445.765@wam.umd.edu> Date: 21 Mar 91 13:44:45 GMT Sender: usenet@wam.umd.edu (USENET Posting) Organization: University of Maryland at College Park Lines: 17 Originator: charlie@cville.umd.edu Nntp-Posting-Host: cville Here's a hint for using the TeX mode in emacs. Since on the NeXT, the tex option -v will pass the dvi file to the previewer(TeXView), then by editing the emacs lisp file this can be done automatically from within emacs (in TeX-mode), even when compiling a region with C-c C-r. Here's how-- Change the emacs .el file for TeX (/usr/lib/emacs/lisp/tex-mode.el) by adding the "-v" option to the file commands corresponding to "TeX-command". That is, search for the string "TeX-command" and change 'tex' to 'tex -v' and 'latex' to 'latex -v'. The .elc (compiled file) may be obtained by going into the directory as su, and invoking emacs. Then use the command "M-x byte-compile-file" and give the file name (tex-mode.el) at the prompt. (As usual, it is wise to save copies of these files first, before working on them as su.) -Charlie