# HG changeset patch # User Uwe Brauer # Date 1662224349 -7200 # Sat Sep 03 18:59:09 2022 +0200 # Node ID a44a02700e8e45e5892a0313c2cea0e2b314f36e # Parent 6d3b87b3ebe7e99ce0fd3401e5038326b5784b9a Add support for title and its fontitification in amsart * 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.