[comp.emacs] Problem with outline mode

anthony@cs.uq.oz.au (Anthony Lee) (06/26/91)

I am in the middle of writing up my thesis, I've noticed that
outline mode could be useful.  I have tried to define the
outline-regexp variable so that "\section" (LaTeX) can be used as
heading in outline mode but I have difficulty getting it to work.
I used "\(sub\)*section" as the regexp but when I used the 
hide-body command everything disappears except the first line,
i.e \chapter.  Hide-leaves does the same thing, anyone out there
try using outline mode on LaTeX files ?

Thanks in advance
--
Anthony Lee (Michaelangelo teenage mutant ninja turtle) (Time Lord Doctor) 
email: anthony@cs.uq.oz.au			    TEL:+(61)-7-365-2697 (w)
SNAIL: Dept Comp. Science, University of Qld, St Lucia, Qld 4072, Australia

krab@iesd.auc.dk (Kresten Krab Thorup) (06/27/91)

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  <abraham@hugin.dk>, 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