Initial Commit
[packages] / xemacs-packages / auctex / style / amstex.el
1 ;;; amstex.el --- AMS-LaTeX support.
2
3 ;; Copyright (C) 2004, 2005 Free Software Foundation, Inc.
4
5 ;; Maintainer: auctex-devel@gnu.org
6 ;; Keywords: tex
7
8 ;; This file is part of AUCTeX.
9
10 ;; AUCTeX is free software; you can redistribute it and/or modify it
11 ;; under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation; either version 3, or (at your option)
13 ;; any later version.
14
15 ;; AUCTeX is distributed in the hope that it will be useful, but
16 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 ;; General Public License for more details.
19
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with AUCTeX; see the file COPYING.  If not, write to the Free
22 ;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
23 ;; 02110-1301, USA.
24
25 ;;; Commentary:
26
27 ;; This file is only needed when using AMS-LaTeX 1.1 and LaTeX 2.09.
28 ;; In later versions of LaTeX and AMS-LaTeX this file is never used,
29 ;; because there is no longer a class or package name amstex.
30 ;;
31 ;; As far as AUCTeX is concerned, the old amstex style is fairly
32 ;; similar to the new amsmath package. So we will just run that hook
33 ;; here.
34 ;;
35 ;; amsmath.el should not be loaded, if an AMS-TeX (in contrast to
36 ;; AMS-LaTeX) file is opened.  The commands defined in amsmath.el
37 ;; mostly have no meaning in this case and errors about unknown
38 ;; variables or functions may occur due to latex.el possibly not being
39 ;; loaded.
40
41 ;;; Code:
42
43 (TeX-add-style-hook
44  "amstex"
45  (function
46   (lambda ()
47     (unless (memq major-mode '(plain-tex-mode ams-tex-mode))
48       (TeX-run-style-hooks "amsmath"))))
49  LaTeX-dialect)
50
51 (defvar LaTeX-amstex-package-options '("noamsfonts" "psamsfonts" 
52                                        "intlimits" "nointlimits"
53                                        "sumlimits" "nosumlimits"
54                                        "namelimits" "nonamelimits"
55                                        "leqno" "reqno" "centertags"
56                                        "tbtags" "fleqn" "righttag"
57                                        "ctagsplt" "intlim" "nosumlim"
58                                        "nonamelm")
59     "Package options for the amstex package.")
60
61 ;;; amstex.el ends here.