# HG changeset patch # User Uwe Brauer # Date 1662484040 -7200 # Tue Sep 06 19:07:20 2022 +0200 # Node ID 3613899bac7bc9933a37931ed69422f05e1d662f # Parent 936c892632e144dd9d6689413dbbe2e234b4e207 Summary: Enhance, gradually, the support for the amsart class * style/amsart.el (LaTeX-amsart-class-options): add options for the amsart class. * style/amsart.el ("amsart"): add some commands and their corresponding fontification diff --git a/style/amsart.el b/style/amsart.el --- a/style/amsart.el +++ b/style/amsart.el @@ -5,12 +5,42 @@ (require 'tex) (require 'latex) +(defvar LaTeX-amsart-class-options + '("a4paper" "letterpaper" "twoside" "oneside" "draft" "final" "10pt" "11pt" "12pt" + "leqno" "reqno" "centertags" "tbtags" "fleqn") + "Class options for the exam class.") + (TeX-add-style-hook "amsart" - (function - (lambda () - (TeX-run-style-hooks "amsmath" "amsthm") - (LaTeX-add-environments "abstract"))) + (lambda () + (TeX-add-symbols + '("address" 1) + '("author" ["Short author(s)"] (LaTeX-arg-author "Long author(s)")) + '("curraddr" 1) + '("dedicatory" 1) + '("email" 1) + '("keywords" 1) + '("subjclass" ["Year"] "List of subjects") + '("title" ["Short Title"] "Title") + '("urladdr" 1)) + (add-to-list 'LaTeX-verbatim-macros-with-braces-local "email") + (add-to-list 'LaTeX-verbatim-macros-with-braces-local "urladdr") + + + (TeX-run-style-hooks "amsmath" "amsthm") + (LaTeX-add-environments "abstract") + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("author" "[{") + ("contrib" "[{") + ("curraddr" "{") + ("email" "{") + ("dedicatory" "{") + ("keywords" "{") + ("subjclass" "[{") + ("title" "[{") + ("urladdr" "{")) + 'function))) TeX-dialect) ;;; amsart.el ends here.