[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex f477383 54/80: Update style/thmtools.el to packa
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex f477383 54/80: Update style/thmtools.el to package version 67 |
Date: |
Wed, 16 Oct 2019 11:07:16 -0400 (EDT) |
branch: externals/auctex
commit f477383b7365ae25c04f9932185a49de4773f3a4
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>
Update style/thmtools.el to package version 67
* style/thmtools.el (LaTeX-thmtools-declaretheoremstyle-regexp)
(LaTeX-thmtools-declaretheorem-regexp): Use the function
`LaTeX-extract-key-value-label' to build the regexp.
(LaTeX-thmtools-listoftheorems-key-val): Add new key `title'.
(LaTeX-thmtools-package-options): Add new variable.
---
style/thmtools.el | 35 +++++++++++++++++------------------
1 file changed, 17 insertions(+), 18 deletions(-)
diff --git a/style/thmtools.el b/style/thmtools.el
index b344c62..20ddb69 100644
--- a/style/thmtools.el
+++ b/style/thmtools.el
@@ -1,6 +1,6 @@
-;;; thmtools.el --- AUCTeX style for `thmtools.sty' (v66)
+;;; thmtools.el --- AUCTeX style for `thmtools.sty' (v67)
-;; Copyright (C) 2018 Free Software Foundation, Inc.
+;; Copyright (C) 2018, 2019 Free Software Foundation, Inc.
;; Author: Arash Esbati <address@hidden>
;; Maintainer: address@hidden
@@ -26,7 +26,7 @@
;;; Commentary:
-;; This file adds support for `thmtools.sty' (v66) from 2014/04/21.
+;; This file adds support for `thmtools.sty' (v67) from 2019/07/31.
;; `thmtools.sty' is part of TeXLive.
;;; Code:
@@ -38,6 +38,7 @@
;; Needed for auto-parsing:
(require 'tex)
+(require 'latex)
;; Setup for \declaretheoremstyle:
(TeX-auto-add-type "thmtools-declaretheoremstyle" "LaTeX")
@@ -45,13 +46,9 @@
(defvar LaTeX-thmtools-declaretheoremstyle-regexp
`(,(concat "\\\\declaretheoremstyle"
"[ \t\n\r%]*"
- "\\(?:\\[[^][]*"
- "\\(?:{[^}{]*"
- "\\(?:{[^}{]*"
- "\\(?:{[^}{]*}[^}{]*\\)*"
- "}[^}{]*\\)*"
- "}[^][]*\\)*"
- "\\]\\)?"
+ "\\(?:"
+ (LaTeX-extract-key-value-label 'none)
+ "\\)?"
"[ \t\n\r%]*"
"{\\([^}]+\\)}")
1 LaTeX-auto-thmtools-declaretheoremstyle)
@@ -63,13 +60,9 @@
(defvar LaTeX-thmtools-declaretheorem-regexp
`(,(concat "\\\\declaretheorem"
"[ \t\n\r%]*"
- "\\(?:\\[[^][]*"
- "\\(?:{[^}{]*"
- "\\(?:{[^}{]*"
- "\\(?:{[^}{]*}[^}{]*\\)*"
- "}[^}{]*\\)*"
- "}[^][]*\\)*"
- "\\]\\)?"
+ "\\(?:"
+ (LaTeX-extract-key-value-label 'none)
+ "\\)?"
"[ \t\n\r%]*"
"{\\([^}]+\\)}")
1 LaTeX-auto-thmtools-declaretheorem)
@@ -210,7 +203,8 @@ minibuffer. PROMPT replaces the standard one."
("onlynamed" ,thms)
("show" ,thms)
("ignoreall" ("true" "false"))
- ("showall" ("true" "false"))))))
+ ("showall" ("true" "false"))
+ ("title")))))
(defun LaTeX-arg-thmtools-listoftheorems (optional &optional prompt)
"Insert the key=val to \\listoftheorems macro.
@@ -301,4 +295,9 @@ RefTeX users should customize or add ENVIRONMENT to
'function)))
LaTeX-dialect)
+;; The package has only one option `debug'. We ignore that in order
+;; to make loading faster:
+(defvar LaTeX-thmtools-package-options nil
+ "Package options for the thmtools package.")
+
;;; thmtools.el ends here
- [elpa] externals/auctex 400b002 28/80: Remove obsolete codes, (continued)
- [elpa] externals/auctex 400b002 28/80: Remove obsolete codes, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 0cc2578 39/80: ; Use the correct variable `LaTeX-fontspec-font-features', Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 945ffaf 40/80: Update style/babel.el to package version 3.31, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 36d06e2 44/80: ; * tests/latex/preview-latex-test.el: Fix typo., Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 686366e 48/80: ; Add Emacs 24 compatibility to the previous commit, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 0a9407c 47/80: Conform to `delete-selection-mode' (bug#36385), Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 8530cd0 45/80: Support cleveref labels, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 4a56103 56/80: Reduce unnecessary local variable safety inquiry, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex b7083ee 51/80: Change color adjustment method (bug#35571, bug#35696, bug#36039), Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 43e98f1 55/80: Update style/titlesec.el to package version 2.11, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex f477383 54/80: Update style/thmtools.el to package version 67,
Tassilo Horn <=
- [elpa] externals/auctex ccfd3d9 57/80: Restore syntax fontify in Texinfo mode, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex f127145 60/80: * context.el (ConTeXt-environment): Fix docstring., Tassilo Horn, 2019/10/16
- [elpa] externals/auctex d56a596 58/80: ; * tests/tex/path-expansion.el (): Fix typo., Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 8610189 52/80: Update style/paracol.el to package version 1.35, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex c64d8c1 61/80: * doc/changes.texi: Mention fontification improvement for biblatex., Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 2c23247 62/80: Support explicitly numbered group contructs, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex dac5503 64/80: Add new style/ltugboat.el, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 52e0dac 68/80: Improve detecting of rejected optional arguments, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 9127647 69/80: Update style/varioref.el to package version 1.6b, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex eafb114 75/80: Fix preview-latex for TeXLive 2019 update, Tassilo Horn, 2019/10/16