# HG changeset patch # User Uwe Brauer # Date 1662221685 -7200 # Sat Sep 03 18:14:45 2022 +0200 # Node ID 3f87ed461d1cd551172b48e7061184adda0be3d8 # Parent 6d3b87b3ebe7e99ce0fd3401e5038326b5784b9a Add support for title, etc and ist corresponding fontification * style/amsart.el ("amsart"): TeX-add-symbols: add commands for title and its corresponding fontification. diff --git a/style/amsart.el b/style/amsart.el --- a/style/amsart.el +++ b/style/amsart.el @@ -7,10 +7,33 @@ (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 Form"] "Author(s)") + '("curraddr" 1) + '("dedicatory" 1) + '("email" 1) + '("keywords" 1) + '("subjclass" ["Year"] "List of subjects") + '("thanks" 1) + '("title" ["Short Title"] "Title") + '("urladdr" 1)) + (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" "[{") + ("thanks" "{") + ("urladdr" "{")) + 'function))) TeX-dialect) ;;; amsart.el ends here.