# HG changeset patch # User Uwe Brauer # Date 1662191090 -7200 # Sat Sep 03 09:44:50 2022 +0200 # Node ID 3ea50df7bb42daf0beae75bed4ac4cce88442bcd # Parent 4a5c01f4143c9f0f462dee638db6432d6b62ddf6 Add support for commands concerning the title etc * 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,30 @@ (TeX-add-style-hook "amsart" - (function - (lambda () - (TeX-run-style-hooks "amsmath" "amsthm") - (LaTeX-add-environments "abstract"))) + (lambda () + (TeX-add-symbols + '("title" ["Short Title"] "Title") + '("subjclass" ["Year"] "List of subjects") + '("address" 1) + '("curraddr" 1) + '("dedicatory" 1) + '("email" 1) + '("keywords" 1) + '("thanks" 1) + '("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 '(("curraddr" "\\{") + ("contrib" "\\{") + ("email" "\\{") + ("dedicatory" "\\{") + ("keywords" "\\{") + ("subjclass" "[{") + ("thanks" "\\{") + ("urladdr" "[{")) + 'function))) TeX-dialect) ;;; amsart.el ends here.