branch: main
commit 2ae5cc8f881089d279ed7fdf5971e1c17fca57fc
Author: Arash Esbati <[email protected]>
Commit: Arash Esbati <[email protected]>
Streamline "slide-title" with other titling classes
* NEWS.org (Changed): Announce the change.
* font-latex.el (font-latex-built-in-keyword-classes): Respect the
value of `font-latex-fontify-sectioning' for "slide-title" keyword
class. (Bug#79537)
---
NEWS.org | 4 ++++
font-latex.el | 6 +++++-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/NEWS.org b/NEWS.org
index 3f468e94..3561ebac 100644
--- a/NEWS.org
+++ b/NEWS.org
@@ -22,6 +22,10 @@
- Change the format of the value stored in ~preview-dumped-alist~. Add
a new optional argument to the function ~preview-watch-preamble~.
+- Respect the value of ~font-latex-fontify-sectioning~ when fontifying
+ macros as =slide-title=. This affects macros provided by
+ =style/beamer.el= and =style/ltx-talk.el=.
+
* [14.1.0] - 2025-07-11
** Added
diff --git a/font-latex.el b/font-latex.el
index ffba35cf..826ea0c5 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -431,7 +431,11 @@ variable `font-latex-fontify-sectioning'." ',num)
'font-lock-type-face
'font-latex-sectioning-5-face)
2 command)
- ("slide-title" () font-latex-slide-title-face 2 command)
+ ("slide-title" ()
+ (if (eq font-latex-fontify-sectioning 'color)
+ 'font-lock-type-face
+ 'font-latex-slide-title-face)
+ 2 command)
("textual"
(("item" "[") ("bibitem" "[{") ("title" "{") ("author" "{") ("date" "{")
("thanks" "{") ("address" "{") ("caption" "[{")