[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] Changing caption insertion within longtable
From: |
Arash Esbati |
Subject: |
Re: [AUCTeX-devel] Changing caption insertion within longtable |
Date: |
Mon, 12 Dec 2016 17:13:33 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 |
Arash Esbati <address@hidden> writes:
> I also added a new variable `LaTeX-longtable-package-options' to
> suppress the query for package options.
Following up myself, I plan to append the following patch to
longtable.el:
--8<---------------cut here---------------start------------->8---
diff --git a/style/longtable.el b/style/longtable.el
index 76c397b..dd3953f 100644
--- a/style/longtable.el
+++ b/style/longtable.el
@@ -64,7 +64,9 @@
(LaTeX-fill-paragraph)
;; Insert a new line and indent
(LaTeX-newline)
- (indent-according-to-mode))))))
+ (indent-according-to-mode))
+ ;; Insert suitable number of &'s, suppress line break
+ (LaTeX-item-array t)))))
(TeX-add-symbols
;; Commands to end table rows
@@ -91,6 +93,9 @@
;; custome values.
(add-to-list 'LaTeX-label-alist '("longtable" . LaTeX-table-label) t)
+ ;; Append longtable to `LaTeX-item-list' with `LaTeX-item-array'
+ (add-to-list 'LaTeX-item-list '("longtable" . LaTeX-item-array) t)
+
;; Fontification
(when (and (featurep 'font-latex)
(eq TeX-install-font-lock 'font-latex-setup))
--8<---------------cut here---------------end--------------->8---
After that, suitable number of &'s are inserted when `C-c C-e longtable
RET' is invoked and `M-RET' also does the right thing.
Any comments welcome.
Best, Arash
- Re: [AUCTeX-devel] Changing caption insertion within longtable,
Arash Esbati <=