🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #12098

Re: Editing Latex under emacs

#12098
From: Jose Marin
Date: Wed, 06 Nov 1996 00:00
86 lines
3650 bytes
In article <32788863.102F11D5@eurecom.fr>,
	Jakob Hummes <hummes@eurecom.fr> writes:
> Try auc-tex, the major mode for latex under emacs.
> It comprises not only highlighting, but also other fancy stuff.
> 
> Cheers,
> - Jakob


And if you use AUCTeX, try something like this: (works for Unix, with 
a fairly complete installation of emacs-19.3X)



; My personal '.emacs' file.
; Main features: hilit19, transient-mark-mode, auto-fill for Text (and
; "derived") modes, AUCTeX.
; Jose L Marin 1996



; I load syntax highlighting.
; Package hilit19.el doesn't seem to work for me.
;(load "hilit19")
; This other package, font-lock.el, looks much better.
(load "font-lock")
(add-hook 'text-mode-hook 'turn-on-font-lock)
(add-hook 'fortran-mode-hook 'turn-on-font-lock)
(add-hook 'font-lock-mode-hook 'turn-on-fast-lock)
(setq font-lock-maximum-decoration t)


; If you are using a windowing system such as X, you can cause the region
; to be highlighted when the mark is active by including
(transient-mark-mode t) ; regions will be active temporarily
; and if you want to make use of marks without the highlighting getting in
; the way all the time, you can enable this:
; (setq mark-even-if-inactive t) 


; If you want auto-fill mode on in all major modes, do this:
;(setq-default 'auto-fill-hook 'do-auto-fill)
; To turn it on for every buffer in, for example, Text
; mode, do this:
(add-hook 'text-mode-hook 'turn-on-auto-fill)
; And this is the maximum column width. Default is 70. Change the default
; here if you wish.
;(setq-default fill-column 65) 


; Set this definition to view dvi files within emacs (with C-c C-v),
; with the standard Latex mode. (Not Auc-Tex)
(setq tex-dvi-view-command "xdvi")


; AUCTeX: we load it here
; =======================
(require 'tex-site)
; And now enable all the good stuff: make AUCTeX aware of style files,
; and enable the multi-file-documents features.
(setq TeX-parse-self t) ; Enable parse on load
(setq TeX-auto-save t)  ; Enable parse on save (will create /auto subdir)
(setq-default TeX-master nil)     ;query for master file
; If you plan to use Outline minor mode, you'll need this redefinition:
;(setq outline-minor-mode-prefix "\C-c\C-o") ; Or any other way you like it...







===============================================================================
Jose L. Marin                                       marin@wanda.unizar.es
Dept. de Fisica de la Materia Condensada            marin@posta.unizar.es
Instituto de Ciencias de Materiales de Aragon       marin@chain.unizar.es
Facultad de Ciencias, Universidad de Zaragoza       marin@gang.unizar.es
50009 Zaragoza, SPAIN
Phone:34 76 76 1221
FAX: 34 76 76 1229

Now at EPCC/Heriot-Watt:			    jose@ma.hw.ac.uk
(from Oct 13 to Dec 21)				    marin@epcc.ed.ac.uk
(mail sent to "wanda" will be forwarded to me here)
==============================================================================
Technical Details
Message-ID: <55q96c$nup@cn1.hw.ac.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <327663AE.7373@ele.tue.nl> <3277AB9C.28CC@imec.be>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f9e16,f26663d99160e653
X-Google-Attributes: gidf9e16,public
X-Google-Thread: 103b8b,f26663d99160e653
X-Google-Attributes: gid103b8b,public
X-Google-Thread: 102b9a,f26663d99160e653
X-Google-Attributes: gid102b9a,public
From: jose@ma.hw.ac.uk (Jose Marin)
Subject: Re: Editing Latex under emacs
Date: 1996/11/06
Message-ID: <55q96c$nup@cn1.hw.ac.uk>
X-Deja-AN: 196577616
references: <327663AE.7373@ele.tue.nl> <3277AB9C.28CC@imec.be>
content-type: text/plain; charset=us-ascii
organization: Heriot-Watt University
mime-version: 1.0
newsgroups: comp.text.tex,comp.emacs,gnu.emacs.help