branch: main
commit 3cd55ef1aa80246707d2fee36af2cbdd9f3af0ee
Author: Arash Esbati <[email protected]>
Commit: Arash Esbati <[email protected]>

    Update style/ltx-talk.el to class v0.3.8
    
    * style/ltx-talk.el ("ltx-talk"): Query for the mandatory title
    argument when inserting a "frame" environment if the class option
    "frame-title-arg" is set.
    (LaTeX-ltx-talk-class-options-list): Update options.
---
 style/ltx-talk.el | 27 ++++++++++++++++++++-------
 1 file changed, 20 insertions(+), 7 deletions(-)

diff --git a/style/ltx-talk.el b/style/ltx-talk.el
index 17b4412e..41babff2 100644
--- a/style/ltx-talk.el
+++ b/style/ltx-talk.el
@@ -1,6 +1,6 @@
-;;; ltx-talk.el --- AUCTeX style for `ltx-talk.cls' (v0.3.0)  -*- 
lexical-binding: t; -*-
+;;; ltx-talk.el --- AUCTeX style for `ltx-talk.cls' (v0.3.8)  -*- 
lexical-binding: t; -*-
 
-;; Copyright (C) 2025 Free Software Foundation, Inc.
+;; Copyright (C) 2025--2026 Free Software Foundation, Inc.
 
 ;; Author: Arash Esbati <[email protected]>
 ;; Maintainer: [email protected]
@@ -24,7 +24,7 @@
 
 ;;; Commentary:
 
-;; This file adds support for `ltx-talk.sty' (v0.3.0) from 2025-11-10.
+;; This file adds support for `ltx-talk.sty' (v0.3.8) from 2026-01-12.
 ;; `ltx-talk.sty' is part of TeXLive.
 
 ;;; Code:
@@ -169,9 +169,21 @@ Optional MACRO can be a string, for example, \"bibitem\"."
     ;; 6.1 The frame environment: The optional [<options>] arg seems to
     ;; be unused, to skip it for now:
     '("frame" LaTeX-env-args
-      [TeX-arg-ltx-talk-overlay-spec])
+      [TeX-arg-ltx-talk-overlay-spec]
+      (TeX-arg-conditional (or (LaTeX-provided-class-options-member
+                                "ltx-talk" "frame-title-arg")
+                               (LaTeX-provided-class-options-member
+                                "ltx-talk" "frame-title-arg=true"))
+          ("Title")
+        ()))
     '("frame*" LaTeX-env-args
-      [TeX-arg-ltx-talk-overlay-spec])
+      [TeX-arg-ltx-talk-overlay-spec]
+      (TeX-arg-conditional (or (LaTeX-provided-class-options-member
+                                "ltx-talk" "frame-title-arg")
+                               (LaTeX-provided-class-options-member
+                                "ltx-talk" "frame-title-arg=true"))
+          ("Title")
+        ()))
 
     ;; 7.5 Dynamically changing text or images
     '("overlayarea" LaTeX-env-args
@@ -290,8 +302,9 @@ Optional MACRO can be a string, for example, \"bibitem\"."
 
 (defvar LaTeX-ltx-talk-class-options-list
   '(("aspect-ratio")
-    ("mode" ("handout"))
-    ("handout"))
+    ("mode" ("handout" "projector"))
+    ("handout")
+    ("frame-title-arg" ("true" "false")))
   "Alist of class options for the ltx-talk class.")
 
 (defun LaTeX-ltx-talk-class-options ()

Reply via email to