Initial Commit
[packages] / xemacs-packages / auctex / style / amsopn.el
1 ;;; amsopn.el --- AUCTeX style for the `amsnopn.sty' AMS-LaTeX package
2
3 ;; Copyright (C) 1997, 2002, 2005, 2013 Free Software Foundation, Inc.
4
5 ;; Author: Carsten Dominik <dominik@strw.leidenuniv.nl>
6 ;;         Mads Jensen <mje@inducks.org>
7 ;; Maintainer: auctex-devel@gnu.org
8 ;; Keywords: tex
9
10 ;; This file is part of AUCTeX.
11
12 ;; AUCTeX is free software; you can redistribute it and/or modify it
13 ;; under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation; either version 3, or (at your option)
15 ;; any later version.
16
17 ;; AUCTeX is distributed in the hope that it will be useful, but
18 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20 ;; General Public License for more details.
21
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with AUCTeX; see the file COPYING.  If not, write to the Free
24 ;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
25 ;; 02110-1301, USA.
26
27 ;;; Commentary:
28
29 ;; This file adds support for `amsnopn.sty'
30
31 ;;; Code:
32
33 (TeX-add-style-hook "amsopn"
34  (function
35   (lambda ()
36     (TeX-add-symbols
37      '("DeclareMathOperator"  (TeX-arg-define-macro "Math Operator: \\")
38        "Expansion text for the math operator")
39      '("DeclareMathOperator*" (TeX-arg-define-macro "Math Operator: \\")
40        "Expansion text for the math operator")
41      '("operatorname" t)
42      '("operatorname*" t))
43
44     (add-to-list 'LaTeX-auto-regexp-list
45                  '("\\\\DeclareMathOperator\\*?{?\\\\\\([A-Za-z0-9]+\\)}?"
46                    1 TeX-auto-symbol))))
47  LaTeX-dialect
48  )
49
50 (defvar LaTeX-amsopn-package-options '("namelimits" "nonamelimits")
51   "Package options for the amsopn package.")
52
53 ;;; amsopn.el ends here.