[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] [elpa] externals/auctex 27c91a0336 14/24: Consider enviro
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] [elpa] externals/auctex 27c91a0336 14/24: Consider environments defined with newfloat package |
Date: |
Mon, 21 Feb 2022 02:38:46 -0500 (EST) |
branch: externals/auctex
commit 27c91a033604578567f4cc817e85a5fc3f373d17
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Consider environments defined with newfloat package
* style/subcaption.el ("subcaption"): Offer environments defined
with newfloat package when declaring the sub-caption feature.
---
style/subcaption.el | 22 ++++++++++++++++------
1 file changed, 16 insertions(+), 6 deletions(-)
diff --git a/style/subcaption.el b/style/subcaption.el
index e40dc80dbf..cd3312d3eb 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
- [AUCTeX-diffs] [elpa] externals/auctex updated (a24ec9d7cb -> 484df614d8), Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex 0a2d9be447 01/24: ; Fix some documentations, Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex bf03300296 09/24: Add M-RET support for smallmatrix variants, Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex afd2691e56 19/24: Update style/ltxdoc.el to class version 2.1d, Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex 3cd7a352d3 07/24: Add support for indent for environments with alignment, Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex ddb0f08ff1 10/24: Add default entries to LaTeX-indent-environment-list (bug#28405), Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex 4ad82777c0 08/24: Add new test for indent, Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex 9073b5e117 03/24: * tex-ispell.el: Skip the arguments of stabular*? environments., Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex efb39c16c0 15/24: Add NEWS item, Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex 36a6d80e1b 11/24: Improve query for opt. arguments of \parbox and minipage, Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex 27c91a0336 14/24: Consider environments defined with newfloat package,
Tassilo Horn <=
- [AUCTeX-diffs] [elpa] externals/auctex 2b91d0cf05 17/24: ; * style/footmisc.el: Fix year in last commit., Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex 0744b687b3 02/24: Add macros to skip from caption package, Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex b89b8cdd44 18/24: Update footmisc package options to v6.0b, Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex c8a176ca7c 22/24: ; Release_13.1, Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex 497847f193 16/24: Update footmisc package options to v6.0a, Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex da5bb8e28d 05/24: Re-run LaTeX when .toc|lof|lot is missing, Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex b7c0380473 23/24: Merge commit 'c8a176ca' into externals/auctex, Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex 484df614d8 24/24: Release GNU AUCTeX 13.1.0, Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex f99edced63 06/24: ; * tex-ispell.el: Fix regexp., Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex a3282bbe06 12/24: Adjust entries for completion, Tassilo Horn, 2022/02/21