emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/auctex 38b413e 05/57: Adjust macros acc. to change in `


From: Tassilo Horn
Subject: [elpa] externals/auctex 38b413e 05/57: Adjust macros acc. to change in `LaTeX-paragraph-commands-regexp-make'
Date: Tue, 25 Jul 2017 14:02:27 -0400 (EDT)

branch: externals/auctex
commit 38b413e9d44bb8429097e08c3923a39ab08de4af
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>

    Adjust macros acc. to change in `LaTeX-paragraph-commands-regexp-make'
    
    * style/bicaption.el ("bicaption"): Add \bicaption, \bicaptionbox,
    \bisubcaption and \bisubcaptionbox to paragraph commands.
    
    * style/caption.el ("caption"): Add \captionbox and \captionof to
    paragraph commands.
    
    * style/subcaption.el ("subcaption"): Add \subcaption and
    \subcaptionbox to paragraph commands.
---
 style/bicaption.el  | 7 ++++---
 style/caption.el    | 5 ++++-
 style/subcaption.el | 6 +++---
 3 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/style/bicaption.el b/style/bicaption.el
index 5e40270..47b139b 100644
--- a/style/bicaption.el
+++ b/style/bicaption.el
@@ -1,6 +1,6 @@
 ;;; bicaption.el --- AUCTeX style for `bicaption.sty' (v1.1-158)
 
-;; Copyright (C) 2016 Free Software Foundation, Inc.
+;; Copyright (C) 2016, 2017 Free Software Foundation, Inc.
 
 ;; Author: Arash Esbati <address@hidden>
 ;; Maintainer: address@hidden
@@ -151,8 +151,9 @@ square brackets."
     '("bisubcaptionbox"  (LaTeX-arg-bicaption-bicaption "sub-" nil  t   t) t)
     '("bisubcaptionbox*" (LaTeX-arg-bicaption-bicaption "sub-"  t   t   t) t))
 
-   ;; Everything starting with \bi(sub)?caption should get its own line
-   (LaTeX-paragraph-commands-add-locally '("bicaption" "bisubcaption"))
+   ;; \bi(sub)?caption(box)? macros should get their own lines
+   (LaTeX-paragraph-commands-add-locally '("bicaption"    "bicaptionbox"
+                                          "bisubcaption" "bisubcaptionbox"))
 
    ;; Fontification
    (when (and (featurep 'font-latex)
diff --git a/style/caption.el b/style/caption.el
index 84809b9..1a0eb7e 100644
--- a/style/caption.el
+++ b/style/caption.el
@@ -1,6 +1,6 @@
 ;;; caption.el --- AUCTeX style for `caption.sty' (v3.3-111)
 
-;; Copyright (C) 2015, 2016 Free Software Foundation, Inc.
+;; Copyright (C) 2015--2017 Free Software Foundation, Inc.
 
 ;; Author: Arash Esbati <address@hidden>
 ;; Maintainer: address@hidden
@@ -427,6 +427,9 @@ STAR is non-nil, do not query for a short-caption and a 
label."
 
     '("bothIfSecond" 2))
 
+   ;; \caption(box|of) macros should get their own lines
+   (LaTeX-paragraph-commands-add-locally '("captionbox" "captionof"))
+
    ;; Fontification
    (when (and (featurep 'font-latex)
              (eq TeX-install-font-lock 'font-latex-setup))
diff --git a/style/subcaption.el b/style/subcaption.el
index 6c4405a..f158f44 100644
--- a/style/subcaption.el
+++ b/style/subcaption.el
@@ -1,6 +1,6 @@
 ;;; subcaption.el --- AUCTeX style for `subcaption.sty' (v1.1-100)
 
-;; Copyright (C) 2015 Free Software Foundation, Inc.
+;; Copyright (C) 2015--2017 Free Software Foundation, Inc.
 
 ;; Author: Arash Esbati <address@hidden>
 ;; Maintainer: address@hidden
@@ -143,8 +143,8 @@ caption, insert only a caption."
                    (TeX-argument-prompt nil nil "Type")
                    '("figure" "table"))))
 
-   ;; Everything starting with \subcaption should get its own line
-   (LaTeX-paragraph-commands-add-locally "subcaption")
+   ;; \subcaption(box)? macros should get their own lines
+   (LaTeX-paragraph-commands-add-locally '("subcaption" "subcaptionbox"))
 
    ;; The subfigure & subtable environments
    (LaTeX-add-environments



reply via email to

[Prev in Thread] Current Thread [Next in Thread]