"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "style/amsmath.el" between
auctex-12.2.tar.gz and auctex-12.3.tar.gz

About: AUCTEX is an extensible package for writing and formatting TeX files in GNU Emacs and XEmacs.

amsmath.el  (auctex-12.2):amsmath.el  (auctex-12.3)
;;; amsmath.el --- Style hook for the AMS-LaTeX amsmath package. ;;; amsmath.el --- Style hook for the AMS-LaTeX amsmath package.
;; Copyright (C) 2002, 2005-2007, 2012-2014, 2017-2019 ;; Copyright (C) 2002, 2005-2007, 2012-2014, 2017-2020
;; Free Software Foundation, Inc. ;; Free Software Foundation, Inc.
;; FIXME: What about the copyright for <= 2001? ;; FIXME: What about the copyright for <= 2001?
;; Author: Carsten Dominik <dominik@strw.leidenuniv.nl> ;; Author: Carsten Dominik <dominik@strw.leidenuniv.nl>
;; Maintainer: auctex-devel@gnu.org ;; Maintainer: auctex-devel@gnu.org
;; This file is part of AUCTeX. ;; This file is part of AUCTeX.
;; AUCTeX is free software; you can redistribute it and/or modify it ;; AUCTeX is free software; you can redistribute it and/or modify it
;; under the terms of the GNU General Public License as published by ;; under the terms of the GNU General Public License as published by
skipping to change at line 33 skipping to change at line 33
;; along with AUCTeX; see the file COPYING. If not, write to the Free ;; along with AUCTeX; see the file COPYING. If not, write to the Free
;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA ;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
;; 02110-1301, USA. ;; 02110-1301, USA.
;;; Commentary: ;;; Commentary:
;; This will also load the amstext, amsbsy and amsopn style files. ;; This will also load the amstext, amsbsy and amsopn style files.
;;; Code: ;;; Code:
;; Fontification
(declare-function font-latex-add-keywords
"font-latex"
(keywords class))
(TeX-add-style-hook (TeX-add-style-hook
"amsmath" "amsmath"
(lambda () (lambda ()
(LaTeX-add-environments (LaTeX-add-environments
'("align" LaTeX-env-label) '("align" LaTeX-env-label)
'("gather" LaTeX-env-label) '("gather" LaTeX-env-label)
'("flalign" LaTeX-env-label) '("flalign" LaTeX-env-label)
'("multline" LaTeX-env-label) '("multline" LaTeX-env-label)
'("alignat" LaTeX-amsmath-env-alignat) '("alignat" LaTeX-amsmath-env-alignat)
'("alignat*" LaTeX-amsmath-env-alignat) '("alignat*" LaTeX-amsmath-env-alignat)
skipping to change at line 176 skipping to change at line 181
;; Append it to a local version in order to avoid a clash with ;; Append it to a local version in order to avoid a clash with
;; user settings ;; user settings
(add-to-list (make-local-variable 'reftex-ref-style-alist) (add-to-list (make-local-variable 'reftex-ref-style-alist)
'("AMSmath" "amsmath" (("\\eqref" ?e))) '("AMSmath" "amsmath" (("\\eqref" ?e)))
t)) t))
;; Activate `AMSmath' when `LaTeX-reftex-ref-style-auto-activate' ;; Activate `AMSmath' when `LaTeX-reftex-ref-style-auto-activate'
;; is non-nil ;; is non-nil
(and LaTeX-reftex-ref-style-auto-activate (and LaTeX-reftex-ref-style-auto-activate
(fboundp 'reftex-ref-style-activate) (fboundp 'reftex-ref-style-activate)
(reftex-ref-style-activate "AMSmath"))) (reftex-ref-style-activate "AMSmath"))
(when (and (featurep 'font-latex)
(eq TeX-install-font-lock 'font-latex-setup))
(font-latex-add-keywords '(("boxed" "{"))
'math-command)))
LaTeX-dialect) LaTeX-dialect)
(defun LaTeX-amsmath-env-alignat (env) (defun LaTeX-amsmath-env-alignat (env)
"Insert ENV with column number specifications. "Insert ENV with column number specifications.
Insert suitable number of ampersands also if possible." Insert suitable number of ampersands also if possible."
(let ((ncols (TeX-read-string "Number of columns: "))) (let ((ncols (TeX-read-string "Number of columns: ")))
(LaTeX-insert-environment env (concat TeX-grop ncols TeX-grcl)) (LaTeX-insert-environment env (concat TeX-grop ncols TeX-grcl))
(LaTeX-item-equation-alignat t))) (LaTeX-item-equation-alignat t)))
(defun LaTeX-amsmath-env-alignedat (env) (defun LaTeX-amsmath-env-alignedat (env)
 End of changes. 3 change blocks. 
2 lines changed or deleted 12 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)