Hi,

A small patch for tabularx.el that includes a new style file.  Regarding
the comment about the tokens in tabularx, there's absolutely no
completion for the tokens, so how can they be seperated more?

I think Mose Giordano's recent patches about `TeX-auto-add-type' should
allow his acronym.el and my ifthen.el to be added?

And hopefully, this time the ChangeLog entry is correct.

2013-02-18  Mads Jensen  <[email protected]>

        * Makefile.in (STYLESRC): Activate new style array.el.

        * style/array.el: New style.

        * style/tabularx.el: Expand copyright range.
        ("tabularx"): The package relies on array, so
        run this style hook.
-- 
Med Venlig Hilsen / Kind Regards,
Mads Jensen
Rubinsteinsvej 31,st.th
DK-2450 Kbh. SV
Denmark
+45 6168 8518
My brain is my second favorite organ.
      -- Woody Allen
;;; array.el --- AUCTeX style for `array.sty'

;; Copyright (C) 2013 Free Software Foundation, Inc.

;; Author: Mads Jensen <[email protected]>
;; Maintainer: [email protected]
;; Keywords: tex

;; This file is part of AUCTeX.

;; AUCTeX is free software; you can redistribute it and/or modify it
;; under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.

;; AUCTeX is distributed in the hope that it will be useful, but
;; WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
;; General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with AUCTeX; see the file COPYING.  If not, write to the Free
;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
;; 02110-1301, USA.

;;; Commentary:

;; This file adds support for `array.sty'

;;; Code:

(TeX-add-style-hook
 "array"
 (lambda ()
   (TeX-add-symbols
    '("newcolumntype" "Column type" [ "Number of arguments" ] t)
    '("showcols" 0)
    '("firsthline" 0)
    '("lasthline" 0))

   ;; `array.sty' adds a couple of new lengths.  They're added here, rather than
   ;; in the `TeX-add-symbols' block.
   (LaTeX-add-lengths "extratabsurrund" "extrarowheight")))

(defvar LaTeX-array-package-options nil
  "Package options for array.")

;; array.el ends here
Index: tabularx.el
===================================================================
RCS file: /sources/auctex/auctex/style/tabularx.el,v
retrieving revision 1.1
diff -u -u -r1.1 tabularx.el
--- tabularx.el	22 Feb 2009 14:50:24 -0000	1.1
+++ tabularx.el	18 Feb 2013 11:08:00 -0000
@@ -1,6 +1,6 @@
 ;;; tabularx.el --- AUCTeX style for the tabularx package.
 
-;; Copyright (C) 2009 Free Software Foundation, Inc.
+;; Copyright (C) 2009, 2013 Free Software Foundation, Inc.
 
 ;; Author: Ralf Angeli <[email protected]>
 ;; Maintainer: [email protected]
@@ -47,6 +47,9 @@
     ;; tabular* environment.  However, the supported tokens in the
     ;; format can differ, so at some point in time we might want to
     ;; separate tabular* and tabularx.
-    '("tabularx" LaTeX-env-tabular*))))
+    '("tabularx" LaTeX-env-tabular*))
+   
+   ;; `tabularx' requires array to define the column types
+   (TeX-run-style-hooks "array")))
 
 ;;; tabularx.el ends here
Index: Makefile.in
===================================================================
RCS file: /sources/auctex/auctex/Makefile.in,v
retrieving revision 1.183
diff -u -u -r1.183 Makefile.in
--- Makefile.in	14 Feb 2013 07:14:51 -0000	1.183
+++ Makefile.in	18 Feb 2013 11:06:15 -0000
@@ -129,7 +129,8 @@
 	   style/multirow.el  style/imakeidx.el  style/afterpage.el \
 	   style/longtable.el style/lipsum.el    style/kantlipsum.el \
 	   style/memoir.el    style/placeins.el  style/nameref.el \
-	   style/fancynum.el  style/fancyhdr.el	 style/filecontents.el
+	   style/fancynum.el  style/fancyhdr.el	 style/filecontents.el \
+	   style/array.el
 STYLEELC = $(STYLESRC:.el=.elc)
 
 CLEANFILES = $(AUCELC) $(STYLEELC) $(MULEELC)

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
auctex-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to