summaryrefslogtreecommitdiff
path: root/elpa/auctex-13.1.3/style/amstex.el
diff options
context:
space:
mode:
Diffstat (limited to 'elpa/auctex-13.1.3/style/amstex.el')
-rw-r--r--elpa/auctex-13.1.3/style/amstex.el63
1 files changed, 63 insertions, 0 deletions
diff --git a/elpa/auctex-13.1.3/style/amstex.el b/elpa/auctex-13.1.3/style/amstex.el
new file mode 100644
index 0000000..7588935
--- /dev/null
+++ b/elpa/auctex-13.1.3/style/amstex.el
@@ -0,0 +1,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.