Xref: utzoo comp.windows.x:36735 gnu.emacs.help:2123 comp.text.tex:7609 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!dali.cs.montana.edu!mintaka!bloom-beacon!eru!hagbard!sunic!dkuug!iesd!iesd.auc.dk!krab From: krab@iesd.auc.dk (Kresten Krab Thorup) Newsgroups: comp.windows.x,gnu.emacs.help,comp.text.tex Subject: Re: xdvi in emacs ... (and much more) Message-ID: Date: 23 May 91 03:26:39 GMT References: <1991May16.152416.17303@unibi.uni-bielefeld.de> Sender: news@iesd.auc.dk Organization: Mathematics and Computer Science, University of Aalborg Lines: 56 In-reply-to: adrianho@barkley.berkeley.edu's message of 21 May 91 00:24:13 GMT >>>>> On 21 May 91 00:24:13 GMT, adrianho@barkley.berkeley.edu (Adrian J Ho) said: Adrian> 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. Adrian> Why not have _both_? All you have to do is edit tex-mode.el, copy the Adrian> code for (TeX-print) to, say, (TeX-preview), change all references to Adrian> TeX-dvi-print-command in the function to, say, Adrian> TeX-dvi-preview-command, and add the variable TeX-dvi-preview-command Adrian> in the same style as TeX-dvi-print-command. You could even go as far Adrian> as binding a key sequence to TeX-preview -- look for the (define-key) Adrian> that binds TeX-print and Do The Right Thing. Adrian> If you really want to be thorough, change the help text for Adrian> (latex-mode) and (tex-mode) in loaddefs.el to include (TeX-preview). If anyone is Interested, I've made a much enchanced LaTeX mode for Emacs. The features discussed here concerning the ability to run both a printer driver and a previewer are there. Also BibTeX and Makeindex are bound to seperate keys. But thats not all. I've also made a parser, for the (La)TeX output, so that the errors may be parsed. That means, pressing C-c C-n (TeX-next-error), will move the cursor to the file and position of the given error. Using this feature all errormessages are documented - online. I got most of this documentation from Leslie. The distribution package comes with a minor-outline-mode, an outlinemode that can run under LaTeX mode. Other features: Intelligent macros for often used controlsequences like \section{ ... } and anvironments. Indentation by environments Well.. You may pick it up by anonymous ftp to iesd.auc.dk : pub/emacs-lisp/auc-tex.shar the files are also available individually in the files: auc-tex.el outline-m.el minor-map.el Happy LaTeX'in! /Kresten Adrian> Isn't Emacs _great_? 8-) Sure.