[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 27c91a033604578567f4c
From: |
Arash Esbati |
Subject: |
[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 27c91a033604578567f4cc817e85a5fc3f373d17 |
Date: |
Fri, 11 Feb 2022 15:03:33 -0500 (EST) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".
The branch, master has been updated
via 27c91a033604578567f4cc817e85a5fc3f373d17 (commit)
from 51cd5ea0bbf17a5ade02c1baa7a897375b1a34d7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 27c91a033604578567f4cc817e85a5fc3f373d17
Author: Arash Esbati <arash@gnu.org>
Date: Fri Feb 11 21:02:13 2022 +0100
Consider environments defined with newfloat package
* style/subcaption.el ("subcaption"): Offer environments defined
with newfloat package when declaring the sub-caption feature.
diff --git a/style/subcaption.el b/style/subcaption.el
index e40dc80d..cd3312d3 100644
--- a/style/subcaption.el
+++ b/style/subcaption.el
@@ -1,6 +1,6 @@
;;; subcaption.el --- AUCTeX style for `subcaption.sty' (v1.3) -*-
lexical-binding: t; -*-
-;; Copyright (C) 2015--2021 Free Software Foundation, Inc.
+;; Copyright (C) 2015--2022 Free Software Foundation, Inc.
;; Author: Arash Esbati <arash@gnu.org>
;; Maintainer: auctex-devel@gnu.org
@@ -141,16 +141,26 @@ caption, insert only a caption."
completing-read (TeX-argument-prompt t nil "Numbering scheme")
'("arabic" "roman" "Roman" "alph" "Alph" "fnsymbol")]
(TeX-arg-eval
- completing-read (TeX-argument-prompt nil nil "Type")
- '("figure" "table")))
+ completing-read
+ (TeX-argument-prompt nil nil "Type")
+ (append
+ (when (and (fboundp 'LaTeX-newfloat-DeclareFloatingEnvironment-list)
+ (LaTeX-newfloat-DeclareFloatingEnvironment-list))
+ (mapcar #'car (LaTeX-newfloat-DeclareFloatingEnvironment-list)))
+ '("figure" "table"))))
'("DeclareCaptionSubType*"
[TeX-arg-eval completing-read
(TeX-argument-prompt t nil "Numbering scheme")
'("arabic" "roman" "Roman" "alph" "Alph" "fnsymbol")]
- (TeX-arg-eval completing-read
- (TeX-argument-prompt nil nil "Type")
- '("figure" "table"))))
+ (TeX-arg-eval
+ completing-read
+ (TeX-argument-prompt nil nil "Type")
+ (append
+ (when (and (fboundp 'LaTeX-newfloat-DeclareFloatingEnvironment-list)
+ (LaTeX-newfloat-DeclareFloatingEnvironment-list))
+ (mapcar #'car (LaTeX-newfloat-DeclareFloatingEnvironment-list)))
+ '("figure" "table")))))
;; \subcaption(box)? and \subfloat macros should get their own lines
(LaTeX-paragraph-commands-add-locally
-----------------------------------------------------------------------
Summary of changes:
style/subcaption.el | 22 ++++++++++++++++------
1 file changed, 16 insertions(+), 6 deletions(-)
hooks/post-receive
--
GNU AUCTeX
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 27c91a033604578567f4cc817e85a5fc3f373d17,
Arash Esbati <=