[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex edabf207b4 65/77: Insert a space between \captio
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex edabf207b4 65/77: Insert a space between \caption and \\ in tables |
Date: |
Fri, 26 Aug 2022 16:06:38 -0400 (EDT) |
branch: externals/auctex
commit edabf207b4d66005d3828cb1b5135b7c07e38095
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Insert a space between \caption and \\ in tables
* style/longtable.el (LaTeX-env-longtable):
* style/xltabular.el (LaTeX-env-xltabular): Insert a space between
the end of \caption macro and \\.
---
style/longtable.el | 11 ++++++-----
style/xltabular.el | 11 ++++++-----
2 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/style/longtable.el b/style/longtable.el
index 8db4083c66..55384bca4c 100644
--- a/style/longtable.el
+++ b/style/longtable.el
@@ -88,11 +88,12 @@ insert line break macro."
(insert TeX-grop caption)
;; ask for a label and insert it
(LaTeX-label environment 'environment)
- ;; the longtable `\caption' is equivalent to a
- ;; `\multicolumn', so it needs a `\\' at the
- ;; end of the line. Prior to that, add } to
- ;; close `\caption{'
- (insert TeX-grcl "\\\\")
+ ;; the longtable `\caption' is equivalent to a `\multicolumn',
+ ;; so it needs a `\\' at the end of the line. Prior to that,
+ ;; add } to close `\caption{' and a space:
+ (insert TeX-grcl)
+ (just-one-space)
+ (insert "\\\\")
;; fill the caption
(when auto-fill-function (LaTeX-fill-paragraph))
;; Insert a new line and indent
diff --git a/style/xltabular.el b/style/xltabular.el
index 3fb3e0d220..bcd190b7ce 100644
--- a/style/xltabular.el
+++ b/style/xltabular.el
@@ -87,11 +87,12 @@ nested curly brace pair nor escaped \"}\".")
(insert TeX-grop caption)
;; ask for a label and insert it
(LaTeX-label environment 'environment)
- ;; the longtable `\caption' is equivalent to a
- ;; `\multicolumn', so it needs a `\\' at the
- ;; end of the line. Prior to that, add } to
- ;; close `\caption{'
- (insert TeX-grcl "\\\\")
+ ;; the longtable `\caption' is equivalent to a `\multicolumn',
+ ;; so it needs a `\\' at the end of the line. Prior to that,
+ ;; add } to close `\caption{' and a space:
+ (insert TeX-grcl)
+ (just-one-space)
+ (insert "\\\\")
;; fill the caption
(when auto-fill-function (LaTeX-fill-paragraph))
;; Insert a new line and indent
- [elpa] externals/auctex 34fd998400 21/77: ; * bib-cite.el (): Silence byte compiler, (continued)
- [elpa] externals/auctex 34fd998400 21/77: ; * bib-cite.el (): Silence byte compiler, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 3a1a820bdf 18/77: ; Rearrange code after last commit., Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 794ecb01ab 35/77: Fontify \maketitle macro, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex ead30464d8 64/77: * style/listings.el (TeX-add-style-hook): Update fontification., Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 0029ca410f 77/77: Release GNU AUCTeX 13.1.4, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex ec3877ea7f 74/77: Pacify Emacs 29 compiler warnings, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 4a3d7a2dc2 60/77: Suppress indentation of verbatim env's in docTeX-mode, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex d44f83de8b 37/77: Add three new styles, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 0f59225c0f 70/77: ; * doc/todo.texi (Mid-term Goals): Fix typo., Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 2d28bd1630 67/77: Avoid `makeinfo` warnings, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex edabf207b4 65/77: Insert a space between \caption and \\ in tables,
Tassilo Horn <=
- [elpa] externals/auctex edb15b8f26 43/77: Follow up the previous commit, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 728db25bf7 69/77: Update documentation, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 33a01b6928 59/77: Extend test for filling, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 5c5aa78de0 71/77: Fix doc string, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex cb0a1e6be1 72/77: Improve function calls to retrieve key=vals in style hooks, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 010a1e24be 01/77: Follow up the previous commit, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex c39fe6d1d6 13/77: Delete compatibility code, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex ecf8b28cda 14/77: Add new style/multibib.el, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 37e5a450a3 20/77: Complete LaTeX lengths and counters, Tassilo Horn, 2022/08/26
- [elpa] externals/auctex 9ca155cdb0 25/77: Improve fontification of kernel macros, Tassilo Horn, 2022/08/26