Hi,

I attached a new style for the tabulary package. It's virtually
identical to tabularx in some sense. I've neglected font-locking
commands as tabularx.el doesn't do that, either.

Hasn't there been enough changes to consider releasing a new version of
AUCTeX soon? Mose added tons of things. It's about 8 months since the
last release.

ChangeLog entry:

2013-07-14  Mads Jensen  <[email protected]>

        * style/tabulary.el: New style.

        * Makefile.in (STYLESRC): Activate new style tabulary.
-- 
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
diff --git a/Makefile.in b/Makefile.in
index e2d7e32..6733118 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -131,7 +131,8 @@ STYLESRC = style/prosper.el \
 	   style/memoir.el    style/placeins.el  style/nameref.el \
 	   style/fancynum.el  style/fancyhdr.el	 style/filecontents.el \
 	   style/array.el     style/kpfonts.el   style/acro.el \
-	   style/acronym.el   style/xparse.el    style/fancyvrb.el
+	   style/acronym.el   style/xparse.el    style/fancyvrb.el \
+	   style/tabulary.el
 STYLEELC = $(STYLESRC:.el=.elc)
 
 CLEANFILES = $(AUCELC) $(STYLEELC) $(MULEELC)
;;; tabularx.el --- AUCTeX style for the tabulary package.

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

;; Author: Mads Jensen <[email protected]>
;; Maintainer: [email protected]
;; Created: 2013-07-14
;; 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 the tabularx package.

;;; Code:

(defvar LaTeX-tabulary-package-options
  '("debugshow")
  "Package options for the tabulary package.")

(TeX-add-style-hook
 "tabularx"
 (lambda ()
   ;; Make tabulary the default tabular environment
   (setq LaTeX-default-tabular-environment "tabulary")
   ;; New symbols
   (TeX-add-symbols
    "tymax" "tymin" "tyformat")
   ;; New environments
   (LaTeX-add-environments
    ;; tabulary defines some new column types, but there is no completion so far
    ;; in `LaTeX-env-tabular*'
    '("tabulary" LaTeX-env-tabular*))

   ;; `tabulary' requires the array package
   (TeX-run-style-hooks "array")))

;;; tabularx.el ends here

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