














| author | Arash Esbati <arash@gnu.org> | 2026-09-19 15:37:54 +0200 |
|---|---|---|
| committer | Arash Esbati <arash@gnu.org> | 2026-09-19 15:37:54 +0200 |
| commit | b3a7b226b3b9107319326e1a9792fdefdc8d20fa (patch) | |
| tree | ae865fcdd1796974ea114548d8fdcdc858ef75ca | |
| parent | cc5a4776967eeaac3bba75b3be4365695d7dc97d (diff) | |
* style/keytheorems.el (LaTeX-keytheorems-package-options-list): Update options. ("keytheorems"): Adjust options for \keytheoremset macro.
| -rw-r--r-- | style/keytheorems.el | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/style/keytheorems.el b/style/keytheorems.el
index 1027169e890..9e597f59eea 100644
--- a/style/keytheorems.el
+++ b/style/keytheorems.el
@@ -1,6 +1,6 @@
-;;; keytheorems.el --- AUCTeX style for `keytheorems.sty' (v0.3.0) -*- lexical-binding: t; -*-
+;;; keytheorems.el --- AUCTeX style for `keytheorems.sty' (v0.4.0) -*- lexical-binding: t; -*-
-;; Copyright (C) 2025 Free Software Foundation, Inc.
+;; Copyright (C) 2025--2026 Free Software Foundation, Inc.
;; Author: Arash Esbati <arash@gnu.org>
;; Maintainer: auctex-devel@gnu.org
@@ -24,8 +24,8 @@
;;; Commentary:
-;; This file adds support for `keytheorems.sty' (v0.3.0) from
-;; 2025-06-20. `keytheorems.sty' is part of TeXLive.
+;; This file adds support for `keytheorems.sty' (v0.4.0) from
+;; 2026-09-17. `keytheorems.sty' is part of TeXLive.
;;; Code:
@@ -41,6 +41,8 @@
("auto-translate" ("true" "false"))
("predefined")
("qed-symbol")
+ ("auto-qed")
+ ("thmmarks")
("restate-counters")
("store-all")
("store-sets-label"))
@@ -261,14 +263,21 @@ Select the content of the optional argument with a key:
;; Add keytheorems to the parser.
(TeX-auto-add-regexp LaTeX-keytheorems-newkeytheorem-regexp)
+ ;; Options management
(TeX-run-style-hooks "amsthm")
+ (when (or (LaTeX-provided-package-options-member "keytheorems" "auto-qed")
+ (LaTeX-provided-package-options-member "keytheorems" "thmmarks"))
+ (TeX-run-style-hooks "amsmath"))
(TeX-add-symbols
;; 2 Global options
'("keytheoremset"
- (TeX-arg-key-val (lambda ()
- (append '(("continues-code"))
- LaTeX-keytheorems-package-options-list))))
+ (TeX-arg-key-val
+ (lambda ()
+ (append '(("continues-code"))
+ (let ((opts (copy-sequence LaTeX-keytheorems-package-options-list)))
+ (dolist (elt '(("auto-qed") ("thmmarks")) opts)
+ (setq opts (delete elt opts))))))))
;; 3 Defining theorems
'("newkeytheorem"
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。