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

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

[elpa] 151/299: New style `tabulary'.


From: Stefan Monnier
Subject: [elpa] 151/299: New style `tabulary'.
Date: Sun, 02 Nov 2014 03:11:03 +0000

monnier pushed a commit to branch externals/auctex
in repository elpa.

commit 41b57ef1ebfa2f819c2acc496dda63ac36bd84f9
Author: Tassilo Horn <address@hidden>
Date:   Mon Jul 15 08:31:34 2013 +0200

    New style `tabulary'.
    
    * style/tabulary.el: New style.
    
    * Makefile.in (STYLESRC): Activate new style tabulary.
---
 ChangeLog         |    6 +++++
 Makefile.in       |    3 +-
 style/tabulary.el |   54 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 62 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index f4865b3..4c29cda 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-07-15  Mads Jensen  <address@hidden>
+
+       * style/tabulary.el: New style.
+
+       * Makefile.in (STYLESRC): Activate new style tabulary.
+
 2013-07-12  Mos� Giordano  <address@hidden>
 
        * doc/auctex.texi (Processor Options): Move
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)
diff --git a/style/tabulary.el b/style/tabulary.el
new file mode 100644
index 0000000..a951669
--- /dev/null
+++ b/style/tabulary.el
@@ -0,0 +1,54 @@
+;;; tabulary.el --- AUCTeX style for the tabulary package.
+
+;; Copyright (C) 2013 Free Software Foundation, Inc.
+
+;; Author: Mads Jensen <address@hidden>
+;; Maintainer: address@hidden
+;; 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 tabulary package.
+
+;;; Code:
+
+(defvar LaTeX-tabulary-package-options
+  '("debugshow")
+  "Package options for the tabulary package.")
+
+(TeX-add-style-hook
+ "tabulary"
+ (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
+    ;; TODO: 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")))
+
+;;; tabulary.el ends here



reply via email to

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