Commits

Anonymous committed f89afa5

Updated Auctex to 9.9p.

Comments (0)

Files changed (9)

       (insert TeX-esc "date" TeX-grop
 	      (format "%d-%02d-%02d" year month day)
 	      TeX-grcl "\n")
-      (insert "" TeX-esc "\nMyLogo" TeX-grop TeX-grcl "\n")
+      (insert "" TeX-esc "MyLogo" TeX-grop TeX-grcl "\n")
       (insert "%" TeX-esc "Restriction" TeX-grop TeX-grcl "\n")
       (insert "%" TeX-esc "rightfooter" TeX-grop TeX-grcl "\n")
       (insert "%" TeX-esc "leftheader" TeX-grop TeX-grcl "\n")
 ;; it under the terms of the GNU General Public License as published by
 ;; the Free Software Foundation; either version 1, or (at your option)
 ;; any later version.
-
+;; 
 ;; This program is distributed in the hope that it will be useful,
 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 ;; GNU General Public License for more details.
-
+;; 
 ;; You should have received a copy of the GNU General Public License
 ;; along with this program; if not, write to the Free Software
 ;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-;;; Commentary:
-
-;; Harvard citation style is from Peter Williams available on the CTAN
-;; servers
-
 ;;; Code:
 
 (require 'latex)
-;; Support for the natbib package for AUC-TeX
-;;      The natbib package is from Patrick W. Daly
-;;      available on the CTAN servers
-
-;; Version: $Id$
-
-;; Copyright (C) 1997 Berwin Turlach <berwin.turlach@anu.edu.au>
-
-;; This program is free software; you can redistribute it and/or modify
-;; it under the terms of the GNU General Public License as published by
-;; the Free Software Foundation; either version 1, or (at your option)
-;; any later version.
-;; 
-;; This program is distributed in the hope that it will be useful,
-;; but WITHOUT ANY WARRANTY; without even the implied warranty of
-;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-;; GNU General Public License for more details.
-;; 
-;; You should have received a copy of the GNU General Public License
-;; along with this program; if not, write to the Free Software
-;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
-;; USA
-
+;;; natbib.el --- Style hook for the NatBib package
+;;;
+;;; AUTHOR: Carsten Dominik <dominik@strw.leidenuniv.nl>
+;;;         building on older code from Berwin Turlach
 
 ;;; Code:
 
 (TeX-add-style-hook "natbib"
  (function
   (lambda ()
+    ;; The number in the cdr of the following list indicates how many
+    ;; optional note arguments we consider useful.  Prompting for those
+    ;; arguments will still depend upon `TeX-arg-cite-note-p'.
+    (let  ((citecmds 
+	    '(("cite" . 0)
+	      ("citet" . 1) ("citet*" . 1) ("citealt" . 1) ("citealt*" . 1)
+	      ("citep" . 2) ("citep*" . 2) ("citealp" . 2) ("citealp*" . 2)
+	      ("citeauthor" . 0) ("citeauthor*" . 0) ("citefullauthor" . 0)
+	      ("citeyear" . 0) ("citeyearpar" . 0)
+	      ("shortcites" . 0))))
 
-    (TeX-add-symbols
-     '("citet"
-       (TeX-arg-conditional TeX-arg-cite-note-p ([ "Note" ]) nil)
-       TeX-arg-cite)
-     '("citet*"
-       (TeX-arg-conditional TeX-arg-cite-note-p ([ "Note" ]) nil)
-       TeX-arg-cite)
-     '("citealt"
-       (TeX-arg-conditional TeX-arg-cite-note-p ([ "Note" ]) nil)
-       TeX-arg-cite)
-     '("citealt*"
-       (TeX-arg-conditional TeX-arg-cite-note-p ([ "Note" ]) nil)
-       TeX-arg-cite)
-     '("citep"
-       natbib-arg-cite)
-     '("citep*"
-       natbib-arg-cite)
-     '("citeauthor"
-       TeX-arg-cite)
-     '("citeyear"
-       TeX-arg-cite)
-     '("citefullauthor"
-       TeX-arg-cite)
-     )
+      ;; Add these symbols
+      (apply 
+       'TeX-add-symbols
+       (mapcar
+	(lambda (cmd)
+	  (cond 
+	   ((= (cdr cmd) 0)
+	    ;; No optional arguments
+	    (list (car cmd) 'TeX-arg-cite))
+	   ((= (cdr cmd) 1)
+	    ;; Just one optional argument, the post note
+	    (list
+	     (car cmd)
+	     '(TeX-arg-conditional TeX-arg-cite-note-p (["Post-note"]) nil)
+	     'TeX-arg-cite))
+	   ((= (cdr cmd) 2)
+	    ;; Pre and post notes
+	    (list
+	     (car cmd)
+	     '(TeX-arg-conditional TeX-arg-cite-note-p (natbib-note-args) nil)
+	     'TeX-arg-cite))))
+      citecmds))
 
-    (setq TeX-complete-list
-	  (append '(("\\\\citet\\(\\[[^]\n\r\\%]*\\]\\)+{\\([^{}\n\r\\%,]*\\)"
-                     2 LaTeX-bibitem-list "}")
-                    ("\\\\citet{\\([^{}\n\r\\%,]*\\)" 1
-                     LaTeX-bibitem-list "}") 
-                    ("\\\\citet{\\([^{}\n\r\\%]*,\\)\\([^{}\n\r\\%,]*\\)"
-                     2 LaTeX-bibitem-list)
-                    ("\\\\citet\\*\\(\\[[^]\n\r\\%]*\\]\\)+{\\([^{}\n\r\\%,]*\\)"
-                     2 LaTeX-bibitem-list "}")
-                    ("\\\\citet\\*{\\([^{}\n\r\\%,]*\\)" 1
-                     LaTeX-bibitem-list "}") 
-                    ("\\\\citet\\*{\\([^{}\n\r\\%]*,\\)\\([^{}\n\r\\%,]*\\)"
-                     2 LaTeX-bibitem-list)
-                    ("\\\\citealt\\(\\[[^]\n\r\\%]*\\]\\)+{\\([^{}\n\r\\%,]*\\)"
-                     2 LaTeX-bibitem-list "}")
-                    ("\\\\citealt{\\([^{}\n\r\\%,]*\\)" 1
-                     LaTeX-bibitem-list "}") 
-                    ("\\\\citealt{\\([^{}\n\r\\%]*,\\)\\([^{}\n\r\\%,]*\\)"
-                     2 LaTeX-bibitem-list)
-                    ("\\\\citealt\\*\\(\\[[^]\n\r\\%]*\\]\\)+{\\([^{}\n\r\\%,]*\\)"
-                     2 LaTeX-bibitem-list "}")
-                    ("\\\\citealt\\*{\\([^{}\n\r\\%,]*\\)" 1
-                     LaTeX-bibitem-list "}") 
-                    ("\\\\citealt\\*{\\([^{}\n\r\\%]*,\\)\\([^{}\n\r\\%,]*\\)"
-                     2 LaTeX-bibitem-list)
-                    ("\\\\citep\\(\\[[^]\\%]*\\]\\)+{\\([^{}\n\r\\%,]*\\)"
-                     2 LaTeX-bibitem-list "}")
-                    ("\\\\citep\\(\\[[^]\\%]*\\]\\)+{\\([^{}\n\r\\%]*,\\)\\([^{}\n\r\\%,]*\\)"
-                     3 LaTeX-bibitem-list "}")
-                    ("\\\\citep{\\([^{}\n\r\\%,]*\\)" 1
-                     LaTeX-bibitem-list "}") 
-                    ("\\\\citep{\\([^{}\n\r\\%]*,\\)\\([^{}\n\r\\%,]*\\)"
-                     2 LaTeX-bibitem-list)
-                    ("\\\\citep\\*\\(\\[[^]\n\r\\%]*\\]\\)+{\\([^{}\n\r\\%,]*\\)"
-                     2 LaTeX-bibitem-list "}")
-                    ("\\\\citep\\*{\\([^{}\n\r\\%,]*\\)" 1
-                     LaTeX-bibitem-list "}") 
-                    ("\\\\citep\\*{\\([^{}\n\r\\%]*,\\)\\([^{}\n\r\\%,]*\\)"
-                     2 LaTeX-bibitem-list)
-                    ("\\\\citeyear{\\([^{}\n\r\\%,]*\\)" 1
-                     LaTeX-bibitem-list "}") 
-                    ("\\\\citeauthor{\\([^{}\n\r\\%,]*\\)" 1
-                     LaTeX-bibitem-list "}") 
-                    ("\\\\citefullauthor{\\([^{}\n\r\\%,]*\\)" 1
-                     LaTeX-bibitem-list "}"))
-		  TeX-complete-list))
-    )))
+      ;; Add the other symbols
+      (TeX-add-symbols
+       '("citetext" "Text")
+       '("bibpunct" ["Post note separator"] "Opening bracket" "Closing bracket"
+	 "style [n]umeric [s]uperscript [a]uthor-year"
+	 "Punctuation between author and year"
+	 "Punctuation between years for common authors")
+       '("citestyle" "Style")
+       '("citeindextrue")
+       '("citeindexfalse")
+       '("citeindextype"))
 
-(defun natbib-arg-cite (optional &optional prompt definition)
-  "Prompt for a BibTeX citation with completion for natbib style."
-  (let ((< "[")
-        (> "]"))
-    (if TeX-arg-cite-note-p
-        (progn
-          (let ((note (read-string
-                       (TeX-argument-prompt optional prompt "Pre-note"))))
-            (if (string-equal note "")
-                (natbib-argument-insert (read-string
-                                         (TeX-argument-prompt optional prompt "Post-note" )))
-              (natbib-argument-insert note)
-              (natbib-argument-insert (read-string
-                                       (TeX-argument-prompt optional prompt "Post-note" ))))))
-      nil))
-  (setq prompt (concat (if optional "(Optional) " "")
-                       (if prompt prompt "Add key")
-                       ": (default none) "))
-  (let ((items (multi-prompt "," t prompt (LaTeX-bibitem-list))))
-    (apply 'LaTeX-add-bibitems items)
-    (TeX-argument-insert (mapconcat 'identity items ",") optional optional))
-  )
+      ;; Make an entry in TeX-complete-list
+      (add-to-list
+       'TeX-complete-list
+       (list
+	(concat "\\\\\\(" 
+		(mapconcat (lambda (x) (regexp-quote (car x)))
+			   citecmds "\\|")
+		"\\)\\(\\[[^]\n\r\\%]*\\]\\)*{\\([^{}\n\r\\%,]*,\\)*\\([^{}\n\r\\%,]*\\)")
+	4 'LaTeX-bibitem-list "}")))
+    
+    ;; Tell RefTeX
+    (if (fboundp 'reftex-set-cite-format)
+	(reftex-set-cite-format 'natbib)))))
 
-(defun natbib-argument-insert (name)
-  "Insert NAME surrounded by square brackets."
-  (insert <)
-  (insert name)
-  (insert >))
+(defun natbib-note-args (optional &optional prompt definition)
+  "Prompt for two note arguments a natbib citation command."
+  (if TeX-arg-cite-note-p
+      (let* ((pre (read-string 
+		   (TeX-argument-prompt optional optional "Pre-note")))
+	     (post (read-string
+		    (TeX-argument-prompt optional optional "Post-note"))))
+	(if (not (string= pre "")) (insert "[" pre "]"))
+	(if (not (string= post ""))
+	    (insert "[" post "]")
+	  ;; Make sure that we have an empty post note if pre is not empty
+	  (if (string= pre "") (insert "[]"))))))
 
 ;; natbib.el ends here
 @titlepage
 @title AUC @TeX{}
 @subtitle A much enhanced La@TeX{} mode for GNU Emacs.
-@subtitle Version 9.8
+@subtitle Version 9.9
   
 @author by Kresten Krab Thorup
-@author updated for 6.1 to 9.8 by Per Abrahamsen
+@author updated for 6.1 to 9.9 by Per Abrahamsen
 @page
 @vskip 0pt plus 1filll
 Copyright @copyright{} 1992 Kresten Krab Thorup @*
 AUC @TeX{} is an integrated environment for editing La@TeX{} and
 @TeX{} files.@refill
 
-This file documents AUC @TeX{} version 9.8.
+This file documents AUC @TeX{} version 9.9.
 
 Although AUC @TeX{} contains a large number of features, there are no
 reasons to despair.  You can continue to write @TeX{} and La@TeX{}
 simply insert templates for often used @TeX{} and/or La@TeX{}
 constructs, like font changes, handling of environments, etc.
 These features are very simple, and easy to learn, and help you
-avoiding stupid mistakes like mismatched braces, or
+avoid stupid mistakes like mismatched braces, or
 @samp{\begin@{@}}-@samp{\end@{@}} pairs.@refill
 
 @menu
 @cindex Matching dollar signs
 @cindex Display math mode
 
-In @TeX{} literal double quotes @samp{"like this"} are seldom used,
+In @TeX{}, literal double quotes @samp{"like this"} are seldom used,
 instead two single quotes are used @samp{``like this''}.  To help you
 insert these efficiently, AUC @TeX{} allows you to continue to press
 @kbd{"} to insert two single quotes.  To get a literal double quote,
 @end defopt
 
 @defopt TeX-close-quote
-String inserted by typing @kbd{"} to open a quotation.
+String inserted by typing @kbd{"} to close a quotation.
 @end defopt
 
 If you include the style file @file{german} @code{TeX-open-quote} and
 @item C-c C-f C-r 
 @kindex C-c C-f C-r
 @cindex @code{\textrm}
-Insert roman @r{@{\textrm @point{}@}} text.
+Insert roman @r{\textrm@{@point{}@}} text.
 
 @item C-c C-f C-b
 @kindex C-c C-f C-b
 @cindex @code{\textbf}
-Insert @b{bold face} @samp{@{\textbf @point{}@}} text.
+Insert @b{bold face} @samp{\textbf@{@point{}@}} text.
 
 @item C-c C-f C-i
 @kindex C-c C-f C-i
 @cindex @code{\textit}
-Insert @i{italics} @samp{@{\textit @point{}\/@}} text.
+Insert @i{italics} @samp{\textit@{@point{}@}} text.
 
 @item C-c C-f C-e
 @kindex C-c C-f C-e
 @cindex @code{\emph}
-Insert @i{emphasized} @samp{@{\emph @point{}\/@}} text.
+Insert @i{emphasized} @samp{\emph@{@point{}@}} text.
 
 @item C-c C-f C-s
 @kindex C-c C-f C-s
 @cindex @code{\textsl}
-Insert @i{slanted} @samp{@{\textsl @point{}\/@}} text.
+Insert @i{slanted} @samp{\textsl@{@point{}@}} text.
 
 @item C-c C-f C-t
 @kindex C-c C-f C-t
 @cindex @code{\texttt}
-Insert @t{typewriter} @samp{@{\texttt @point{}@}} text.
+Insert @t{typewriter} @samp{\texttt@{@point{}@}} text.
 
 @item C-c C-f C-c
 @kindex C-c C-f C-c
 @cindex @code{\textsc}
-Insert @sc{small caps} @samp{@{\textsc @point{}@}} text.
+Insert @sc{small caps} @samp{\textsc@{@point{}@}} text.
 
 @item C-c C-f C-d
 @kindex C-c C-f C-c
 
 AUC @TeX{} is aware of most of the actual environments available in a
 specific document.  This is achieved by examining your
-@samp{\documentstyle} command, and consulting a precompiled list of
+@samp{\documentclass} command, and consulting a precompiled list of
 environments available in a large number of styles.
 
 You insert an environment with @kbd{C-c C-e}, and select an environment
 @TeX{} is written by a mathematician, and has always contained good
 support for formatting mathematical text.  AUC @TeX{} supports this
 tradition, by offering a special minor mode for entering text with many
-mathematic symbols.  You can enter this mode by typing @kbd{C-c
+mathematical symbols.  You can enter this mode by typing @kbd{C-c
 ~}.@refill
 
 @deffn Command LaTeX-math-mode
 @vindex LaTeX-item-indent
 
 The following is a short sample of an itemize environment indented by
-AUC @TeX{}.  If more environment are nested, they are indented
+AUC @TeX{}.  If more environments are nested, they are indented
 `accumulated' just like most programming languages usually are seen
 indented in nested constructs.
 
 @code{lacheck} from @file{<URL:ftp://sunsite.auc.dk/pub/text/lacheck/>}
 or alternatively @code{chktex} from
 @file{<URL:ftp://ftp.dante.de/pub/tex/support/chktex/>}.  Search for
-`chktex' in @file{tex.el} to see how to switch between them.@refill They
-are
+`chktex' in @file{tex.el} to see how to switch between them.@refill
 
 @node Control,  , Checking, Formatting
 @section Controlling the output
 @deffn Command TeX-kill-job
 @kindex C-c C-k
 (@kbd{C-c C-k})  Kill currently running external application.
-This may be either of @TeX{}, La@TeX{}, previewer Bib@TeX{} etc.
+This may be either of @TeX{}, La@TeX{}, previewer, Bib@TeX{}, etc.
 @end deffn
 
 @deffn Command TeX-recenter-output-buffer
 @cindex \input
 @cindex Master file
 
-You may wish spread a document over many files (as you are likely to do if
+You may wish to spread a document over many files (as you are likely to do if
 there are multiple authors, or if you have not yet discovered the power
 of the outline commands (@pxref{Outline})).  This can be done by having a
 ``master'' file in which you include the various files with the @TeX{}
 
 First you will need a way to write non-ASCII characters.  You can either
 use macros, or teach @TeX{} about the ISO character sets.  I prefer the
-later, it has the advantage that the usual the standard emacs word
+later, it has the advantage that the usual standard emacs word
 movement and case change commands will work.
 
 
 font and a version of GNU Emacs capable of displaying 8-bit characters.
 I believe all emacs versions except plain Emacs 18 are capable of this.
 For GNU Emacs 19, @pxref{European Display,,,emacs, The GNU Emacs
-Editor}.  Other relevant packages are:
-
-@table @file
-@item remap
-Supports lots of different 7-bit and 8-bit character sets for GNU Emacs
-19.  Mostly useful if you have seldomly used character sets, or need to
-use different character set for keyboard, buffer, and display.  An
-overkill if you just need ISO 8859 Latin 1.  Currently in alpha test,
-but available by ftp from the host @t{sunsite.auc.dk} in
-@file{/packages/auctex/}.
-
-To get dead keys for @TeX{}, install remap and insert the following in
-your @file{.emacs} or @file{site-start.el} file.
-
-@lisp
-(require 'remap)
-
-(defvar all-dead-keys "~'`^"
-  "Dead keys used by remap")
-
-(remap-define-map "Dead Key"
-  (apply 'append (mapcar 'remap-dead-map all-dead-keys)))
-
-(remap-define-map "TeX Dead Key"
-  (remap-map "Dead Key" (remap-add "Ascii" "~TeX")))
-
-(setq remap-setup-alist
-      '(("7-bit"  "Raw"          "L1" "US" "Ctrl" "~TeX")
-        ("8-bit"  "Raw"          "L1" "L1" "Ctrl" "Raw")
-        ("Dead/7" "Dead Key"     "L1" "US" "Ctrl" "~TeX")
-        ("Dead/8" "Dead Key"     "L1" "L1" "Ctrl" "Raw")
-        ("TeX"    "TeX Dead Key" "L1" "US" "Ctrl" "Raw")))
-@end lisp
-
-You can now enable TeX dead keys with 
-@example
-@kbd{M-x remap-setup-choose RET TeX RET}
-@end example
-@end table
+Editor}.  
 
 A compromise is to use use an European character set when editing the
 file, and convert to @TeX{} macros when reading and writing the files.
 
 @table @file
-@item iso-tex.el
-@cindex @file{iso-tex.el}
-This file automatically converts between ISO 8859 Latin 1 encoding and
-La@TeX{} encodings of West European characters.  It is available by ftp
-from @t{aida.intellektik.informatik.th-darmstadt.de} in the directory
-@file{/pub/gene/Emacs}.
 @item iso-cvt.el
 @cindex @file{iso-cvt.el}
 Much like @file{iso-tex.el} but is bundled with Emacs 19.23 and later.
 recursively search through subdirectories. 
 
 @defopt TeX-file-recurse
-If not nil, search @TeX{} directories recursively.
+Whether to search @TeX{} directories recursively: nil means do not
+recurse, a positive integer means go that far deep in the directory
+hierarchy, t means recurse indefinitely.
 @end defopt
 
 By default, AUC @TeX{} will ignore files name @file{.}, @file{..},
 
 @itemize @bullet
 @item
-
+Page count when compiling should (optionally) go to modeline of the
+window where the compilation command was invoked, instead of the output
+window.  Suggested by Karsten Tinnefeld
+<tinnefeld@@irb.informatik.uni-dortmund.de>.
+
+@item
+Command to insert a macrodefinition in the preamble, without moving
+point from the current location.  Suggested by 
+"Jeffrey C. Ely" <ely@@nwu.edu>.
+
+@item
 Filling messes up comments, but only at the end of the file.  Reported
-by uergen Reiss <psy3022@@rzbox.uni-wuerzburg.de>.
+by Juergen Reiss <psy3022@@rzbox.uni-wuerzburg.de>.
+
 @item
 @kbd{C-c C-q C-e} doesn't work properly on nested itemize environments.
 Reported by  "Robert B. Love"  <rlove@@raptor.rmNUG.ORG>.
-@section News in 9.8
+@section News in 9.9
 
 @itemize @bullet
-@item Added @code{natbib.el} to support natbib.sty by Patrick W. Daly.
-Submitted by Berwin A. Turlach @samp{<berwin.turlach@@anu.edu.au>}.
+@item Bug fix in JLATEX recognition.  Patch by
+Tsutomu OKUMURA <oku@@nml.t.u-tokyo.ac.jp>.
 
-@item
-More La@TeX{}2e support by Jan Vroonhof
-@samp{<vroonhof@@math.ethz.ch>}.@refill
+@item Bug fix in foils package sypport.
+Suggested by Bernt Guldbrandtsen <bernt@@jupiter.ansci.iastate.edu>.
 
-@item Make @code{TeX-master} a local variable in Bib@TeX{} mode and set
-it to true.  This seems to be necessary to enable auto-parsing of a .bib
-file.  Patch by Berwin A. Turlach @samp{<berwin.turlach@@anu.edu.au>}.
+@item Made @code{make install-contrib} compile the contributed lisp
+files. 
+Suggested by Nils Ackermann <Nils.Ackermann@@math.uni-giessen.de>. 
 
-@item Support for Harvard style updated by Berwin A. Turlach
-@samp{<berwin.turlach@@anu.edu.au>}.
+@item In @code{texinfo-mode}, @kbd{C-c C-f C-d} now deletes the current
+font, while @kbd{C-u C-c C-f @var{key}} changes it.  @samp{@@dfn} moved
+to @kbd{C-c C-f d}.  Suggested by Christoph Wedler
+<wedler@@fmi.uni-passau.de>.
 
-@item
-Support for `natbib' package.
-By Berwin Turlach @samp{<berwin.turlach@@anu.edu.au>}. 
+@item Fixed some custom types.  
+Patch by Markus Rost <markus.rost@@mathematik.uni-regensburg.de>.
 
-@item 
-Finer control of automatic parsing of @TeX{} files: new variables
-@code{TeX-auto-x-parse-length} and @code{TeX-auto-x-regexp-list}.
-By Christoph Wedler @samp{<wedler@@fmi.uni-passau.de>}.
+@item Support loading byte compiled files, even if
+@code{TeX-byte-compile} is nil.
+Patch by Christoph Wedler  <wedler@@fmi.uni-passau.de>.
 
-@item 
-Finer control of indentation: new variables @code{LaTeX-document-regexp},
-@code{LaTeX-verbatim-regexp}, @code{LaTeX-begin-regexp},
-@code{LaTeX-end-regexp} and @code{LaTeX-indent-comment-start-regexp}.
-By Christoph Wedler @samp{<wedler@@fmi.uni-passau.de>}.
+@item The command to replace a LaTeX2e font should work more reliably
+now.  Patch by Christoph Wedler  <wedler@@fmi.uni-passau.de>.
 
-@item 
-When running La@TeX{} on a region, do not complain about undefined
-citations.  See variable @code{TeX-region-extra}.
-By Christoph Wedler @samp{<wedler@@fmi.uni-passau.de>}.
+@item Minor XEmacs packaging changes.
+Patch by Christoph Wedler  <wedler@@fmi.uni-passau.de>.
 
-@item 
-Split menu for LaTeX environments into submenus if number of
-environments is larger than the value of the new variable
-@code{LaTeX-menu-max-items}.
-By Christoph Wedler @samp{<wedler@@fmi.uni-passau.de>}.
+@item @code{TeX-file-recurse} now accepts an integer value, max depth of
+recursion.  Patch by Alastair Burt  <burt@@dfki.bde>.
 
-@item
-More reftex support with new @code{TeX-arg-ref} function.
-By Soren Dayton @samp{<csdayton@@cs.uchicago.edu>}, with @file{amsmath}
-support by Carsten Dominik @samp{<dominik@@strw.LeidenUniv.nl>}.
+@item Simple imenu support for La@TeX{}.
 
-@item
-Minimal parser now recognize @code{usepackage}.
-By Carsten Dominik @samp{<dominik@@strw.LeidenUniv.nl>}.
+@item Workaround for 20.3 bugs. 
 
-@item
-More amstex styles recognized.
-By Carsten Dominik @samp{<dominik@@strw.LeidenUniv.nl>}.
+@item The `Spell' command now works on all open buffers in the
+document.  Patch by Jason Stewart <jasons@@cs.unm.edu>.
 
-@item
-Czech and Slovak support.
-By Milan Zamazal @samp{<pdm@@fi.muni.cz>}. 
+@item @kbd{C-c C-m} now puts content of region inside first empty brackets
+in the macro, if any.  Patch by Peter Thiemann <pjt@@cs.nott.ac.uk>.
 
+@item Update of @file{natbib.el} style file by Carsten Dominik
+<dominik@@strw.LeidenUniv.nl>.
+
+@item Much better detection of @TeX{} math mode.  Patch by Carsten Dominik
+<dominik@@strw.LeidenUniv.nl>.
+
+@item New @samp{%n} escape in @code{TeX-command-list} for entering the
+current line number.  Suggested by "Lee, Sang-Min"
+<smagus@@acorn.snu.ac.kr>. 
+
+@item Doc fixes in manual.  Patch by Gustavo Chaves
+<gustavo@@cpqd.com.br>.
+
+@item Better reftex support for sections.  Patch by Carsten Dominik
+<dominik@@strw.LeidenUniv.nl>. 
+
+@item Bug fixes in math card.  Reported by "Ron Smith"
+<rsmith@@eel.ufl.edu>. 
+
+@item Better multifile support.  Patch by Soren Dayton
+<csdayton@@cs.uchicago.edu>. 
+
+@item Don't expand abbreviations when @code{abbrev-mode} is nil.
+Suggested by Alastair Burt <alastair.burt@@dfki.de>.
+
+@item @samp{direntry} support in manual, by SL Baur
+<steve@@altair.xemacs.org>. 
 @end itemize
-
-
+@section News in 9.8
+
+@itemize @bullet
+@item Added @code{natbib.el} to support natbib.sty by Patrick W. Daly.
+Submitted by Berwin A. Turlach @samp{<berwin.turlach@@anu.edu.au>}.
+
+@item
+More La@TeX{}2e support by Jan Vroonhof
+@samp{<vroonhof@@math.ethz.ch>}.@refill
+
+@item Make @code{TeX-master} a local variable in Bib@TeX{} mode and set
+it to true.  This seems to be necessary to enable auto-parsing of a .bib
+file.  Patch by Berwin A. Turlach @samp{<berwin.turlach@@anu.edu.au>}.
+
+@item Support for Harvard style updated by Berwin A. Turlach
+@samp{<berwin.turlach@@anu.edu.au>}.
+
+@item
+Support for `natbib' package.
+By Berwin Turlach @samp{<berwin.turlach@@anu.edu.au>}. 
+
+@item 
+Finer control of automatic parsing of @TeX{} files: new variables
+@code{TeX-auto-x-parse-length} and @code{TeX-auto-x-regexp-list}.
+By Christoph Wedler @samp{<wedler@@fmi.uni-passau.de>}.
+
+@item 
+Finer control of indentation: new variables @code{LaTeX-document-regexp},
+@code{LaTeX-verbatim-regexp}, @code{LaTeX-begin-regexp},
+@code{LaTeX-end-regexp} and @code{LaTeX-indent-comment-start-regexp}.
+By Christoph Wedler @samp{<wedler@@fmi.uni-passau.de>}.
+
+@item 
+When running La@TeX{} on a region, do not complain about undefined
+citations.  See variable @code{TeX-region-extra}.
+By Christoph Wedler @samp{<wedler@@fmi.uni-passau.de>}.
+
+@item 
+Split menu for LaTeX environments into submenus if number of
+environments is larger than the value of the new variable
+@code{LaTeX-menu-max-items}.
+By Christoph Wedler @samp{<wedler@@fmi.uni-passau.de>}.
+
+@item
+More reftex support with new @code{TeX-arg-ref} function.
+By Soren Dayton @samp{<csdayton@@cs.uchicago.edu>}, with @file{amsmath}
+support by Carsten Dominik @samp{<dominik@@strw.LeidenUniv.nl>}.
+
+@item
+Minimal parser now recognize @code{usepackage}.
+By Carsten Dominik @samp{<dominik@@strw.LeidenUniv.nl>}.
+
+@item
+More amstex styles recognized.
+By Carsten Dominik @samp{<dominik@@strw.LeidenUniv.nl>}.
+
+@item
+Czech and Slovak support.
+By Milan Zamazal @samp{<pdm@@fi.muni.cz>}. 
+
+@end itemize
+
+
 @section News in 9.7
 
 @itemize @bullet
 @end defopt
 
 Normally, AUC @TeX{} will only allow you to complete a short list of
-build-in macros and environments and on the macros you define yourself.
+built-in macros and environments and on the macros you define yourself.
 If you issue the @kbd{M-x TeX-auto-generate-global} command after
 loading AUC @TeX{}, you will be able to complete on all macros available
 in the standard style files used by your document.  To do this, you must
 It has a special outline feature, which can greatly help you `getting an
 overview' of a document.
 
-Apart from these special features, AUC @TeX{} provides an large range of
+Apart from these special features, AUC @TeX{} provides a large range of
 handy Emacs macros, which in several different ways can help you write
-your La@TeX{} documents fast and painless.
+your La@TeX{} documents fast and painlessly.
 
 All features of AUC @TeX{} are documented using the GNU Emacs online
 documentation system.  That is, documentation for any command is just
 License' and may therefore almost freely be copied and redistributed.
 
 The next sections are a short introduction to some `actual' features.
-For further information, refer to the build-in online documentation of
+For further information, refer to the built-in online documentation of
 AUC @TeX{}.
 
 @section Indentation and formatting
 
 @section Completion
 
-By studying your @samp{\documentstyle} command (in the top of your
+By studying your @samp{\documentclass} command (in the top of your
 document), and consulting a precompiled list of (La)@TeX{} symbols from
 a large number of @TeX{} and La@TeX{} files, AUC @TeX{} is aware of the
-La@TeX{} commands you should able to use in this particular document.
+La@TeX{} commands you should be able to use in this particular document.
 This `knowledge' of AUC @TeX{} is used for two purposes.
 
 @enumerate
 @section Editing your document
 
 A number of more or less intelligent keyboard macros have been defined
-to aid you editing your document.  The most important are listed here
-below.
+to aid you editing your document.  The most important are listed below.
 
 @table @code
 @item LaTeX-environment
 (@kbd{C-c C-s}) Insert one of @samp{\chapter}, @samp{\section}, etc.
 @item TeX-font
 (@kbd{C-c C-f C-r}, @kbd{C-c C-f C-i}, @kbd{C-c C-f C-b}) Insert one of
-@samp{@{\textrm @}}), @samp{@{\textit \/@}} @samp{@{\textbf @}} etc.
+@samp{\textrm@{ @}}), @samp{\textit@{ \/@}} @samp{\textbf@{ @}} etc.
 @end table
 
 A number of additional functions are available.  But it would be far too
 
 @section Running La@TeX{}
 
-When invoking on of the commands @code{TeX-command-master} (@kbd{C-c
+When invoking one of the commands @code{TeX-command-master} (@kbd{C-c
 C-c}) or @code{TeX-command-region} (@kbd{C-c C-r}) La@TeX{} is run on
 either the entire current document or a given region of it.  The Emacs
 view is split in two, and the output of @TeX{} is printed in the second
 half of the screen, as you may simultaneously continue editing your
-document.  In case @TeX{} found any errors when processing your input
+document.  In case @TeX{} find any errors when processing your input
 you can call the function @code{TeX-next-error} (@kbd{C-c `}) which will
 move the cursor to the first given error, and display a short
 explanatory text along with the message @TeX{} gave.  This procedure may
 
 If you want to contact the AUC @TeX{} mailing list, send mail to
 @samp{<auc-tex-request@@iesd.auc.dk>} in order to join.  Articles should
-be send to @samp{<auc-tex@@iesd.auc.dk>}.
+be sent to @samp{<auc-tex@@iesd.auc.dk>}.
 
-To contact the current maintainers of auc-@TeX{} directly, email
+To contact the current maintainers of AUC @TeX{} directly, email
 @samp{<auc-tex_mgr@@iesd.auc.dk>}.
 
 @example
 \key{\disp{\infty} (infty)}{I}
 \key{\disp{\forall} (forall)}{A}
 \key{\disp{\exists} (exists)}{E}
-\key{\disp{\not } (not)}{!}
+\key{\disp{\not } (not)}{/}
 \key{\disp{\in} (in)}{i}
 \key{\disp{\times} (times)}{*}
 \key{\disp{\cdot} (cdot)}{.}
 \key{\disp{\supset} (supset)}{\}}
 \key{\disp{\subseteq} (subseteq)}{[}
 \key{\disp{\supseteq} (supseteq)}{]}
-\key{\disp{\backslash} (backslash)}{\\}
-\key{\disp{\setminus} (setminus)}{/}
+\key{\disp{\emptyset} (emptyset)}{0}
+\key{\disp{\setminus} (setminus)}{\\}
 \key{\disp{\cup} (cup)}{+}
 \key{\disp{\cap} (cap)}{-}
 \key{\disp{\langle} (langle)}{(}
 \key{\disp{\lim} (lim)}{C-l}
 \key{\disp{\tan} (tan)}{C-t}
 \key{\disp{\hat{ }} (hat)}{^}
-\key{\disp{\vee} (vee)}{v}
+\key{\disp{\vee} (vee)}{|}
+\key{\disp{\wedge} (wedge)}{\&}
 
 \section{Miscellaneous}