Xref: utzoo comp.windows.x:36607 gnu.emacs.help:2097 comp.text.tex:7572 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!swrinde!mips!spool.mu.edu!agate!agate!adrianho From: adrianho@barkley.berkeley.edu (Adrian J Ho) Newsgroups: comp.windows.x,gnu.emacs.help,comp.text.tex Subject: Re: xdvi in emacs Message-ID: Date: 21 May 91 00:24:13 GMT References: <1991May16.152416.17303@unibi.uni-bielefeld.de> Sender: root@agate.berkeley.edu (Charlie Root) Organization: University of California, Berkeley Lines: 16 In-Reply-To: bob@MorningStar.Com's message of 20 May 91 20: 28:47 GMT In article bob@MorningStar.Com (Bob Sutterfield) writes: >I prefer to have -print-command actually put the document on >paper, and use compile-command for the previewer. Why not have _both_? All you have to do is edit tex-mode.el, copy the code for (TeX-print) to, say, (TeX-preview), change all references to TeX-dvi-print-command in the function to, say, TeX-dvi-preview-command, and add the variable TeX-dvi-preview-command in the same style as TeX-dvi-print-command. You could even go as far as binding a key sequence to TeX-preview -- look for the (define-key) that binds TeX-print and Do The Right Thing. If you really want to be thorough, change the help text for (latex-mode) and (tex-mode) in loaddefs.el to include (TeX-preview). Isn't Emacs _great_? 8-)