Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!qt.cs.utexas.edu!zaphod.mps.ohio-state.edu!mips!dimacs.rutgers.edu!rutgers!cmcl2!uupsi!sunic!dkuug!iesd!iesd.auc.dk!krab From: krab@iesd.auc.dk (Kresten Krab Thorup) Newsgroups: comp.emacs Subject: Re: Problem with outline mode Message-ID: Date: 26 Jun 91 20:56:25 GMT References: <2146@uqcspe.cs.uq.oz.au> Sender: news@iesd.auc.dk Organization: Mathematics and Computer Science, University of Aalborg Lines: 29 In-Reply-To: anthony@cs.uq.oz.au's message of 26 Jun 91 02:59:42 GMT Here's an outline-regexp that works fine for LaTeX. I use it in my `auc-tex' Emacs mode for LaTeX. Following this mode, is also an outline-minor mode written by Per Abrahamsen , that lets you use outline mode together with a major mode like e.g. tex-mode (or auc-tex not to forget!)... The auc-tex distribution package may be picked up by anonymous ftp at iesd.auc.dk:/pub/emacs-lisp/auc-tex.3.0.tar.Z. There's also an beta release there, but it's not fully working. Anyway - here's the regexp: (defvar LaTeX-outline-regexp (concat "[ \t]*" "\\\\" "\\(appendix\\|documentstyle\\|part\\|chapter\\|section" "\\|subsection\\|subsubsection\\|paragraph\\|subparagraph\\)") "Regular expresion to use for outlines.") The outline-minor mode itself may also be picked up there, but then you should need those two files: iesd.auc.dk:/pub/emacs-lisp/outline-m.el iesd.auc.dk:/pub/emacs-lisp/minor-map.el Happy LaTeX'in ! /Kresten