summaryrefslogtreecommitdiff
path: root/elpa/auctex-13.1.3/style/amstex.el
blob: 75889353e49d734e4c28693c7c08b00d322f3557 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
;;; amstex.el --- AMS-LaTeX support.  -*- lexical-binding: t; -*-

;; Copyright (C) 2004, 2005, 2020 Free Software Foundation, Inc.

;; Maintainer: auctex-devel@gnu.org
;; Keywords: tex

;; This file is part of AUCTeX.

;; AUCTeX 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 3, or (at your option)
;; any later version.

;; AUCTeX 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 AUCTeX; see the file COPYING.  If not, write to the Free
;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
;; 02110-1301, USA.

;;; Commentary:

;; This file is only needed when using AMS-LaTeX 1.1 and LaTeX 2.09.
;; In later versions of LaTeX and AMS-LaTeX this file is never used,
;; because there is no longer a class or package name amstex.
;;
;; As far as AUCTeX is concerned, the old amstex style is fairly
;; similar to the new amsmath package. So we will just run that hook
;; here.
;;
;; amsmath.el should not be loaded, if an AMS-TeX (in contrast to
;; AMS-LaTeX) file is opened.  The commands defined in amsmath.el
;; mostly have no meaning in this case and errors about unknown
;; variables or functions may occur due to latex.el possibly not being
;; loaded.

;;; Code:

(require 'tex)
(require 'latex)

(TeX-add-style-hook
 "amstex"
 (lambda ()
   (unless (memq major-mode '(plain-tex-mode ams-tex-mode))
     (TeX-run-style-hooks "amsmath")))
 TeX-dialect)

(defvar LaTeX-amstex-package-options '("noamsfonts" "psamsfonts" 
                                       "intlimits" "nointlimits"
                                       "sumlimits" "nosumlimits"
                                       "namelimits" "nonamelimits"
                                       "leqno" "reqno" "centertags"
                                       "tbtags" "fleqn" "righttag"
                                       "ctagsplt" "intlim" "nosumlim"
                                       "nonamelm")
  "Package options for the amstex package.")

;;; amstex.el ends here.