Initial Commit
[packages] / xemacs-packages / auctex / style / tabularx.el
1 ;;; tabularx.el --- AUCTeX style for the tabularx package.
2
3 ;; Copyright (C) 2009, 2013 Free Software Foundation, Inc.
4
5 ;; Author: Ralf Angeli <angeli@caeruleus.net>
6 ;; Maintainer: auctex-devel@gnu.org
7 ;; Created: 2009-02-22
8 ;; Keywords: tex
9
10 ;; This file is part of AUCTeX.
11
12 ;; AUCTeX is free software; you can redistribute it and/or modify it
13 ;; under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation; either version 3, or (at your option)
15 ;; any later version.
16
17 ;; AUCTeX is distributed in the hope that it will be useful, but
18 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20 ;; General Public License for more details.
21
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with AUCTeX; see the file COPYING.  If not, write to the Free
24 ;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
25 ;; 02110-1301, USA.
26
27 ;;; Commentary:
28
29 ;; This file adds support for the tabularx package.
30
31 ;;; Code:
32
33 (defvar LaTeX-tabularx-package-options
34   '("infoshow" "debugshow")
35   "Package options for the tabularx package.")
36
37 (TeX-add-style-hook
38  "tabularx"
39  (lambda ()
40    ;; Make tabularx the default tabular environment
41    (setq LaTeX-default-tabular-environment "tabularx")
42    ;; Use the enhanced tabular indentation
43    (add-to-list 'LaTeX-indent-environment-list
44                 '("tabularx" LaTeX-indent-tabular))
45    ;; New symbols
46    (TeX-add-symbols
47     "tracingtabularx"
48     '("tabularxcolumn" 0))
49    ;; New environments
50    (LaTeX-add-environments
51     ;; XXX: The tabularx environment takes the same arguments as the
52     ;; tabular* environment.  However, the supported tokens in the
53     ;; format can differ, so at some point in time we might want to
54     ;; separate tabular* and tabularx.
55     '("tabularx" LaTeX-env-tabular*))
56    
57    ;; `tabularx' requires array to define the column types
58    (TeX-run-style-hooks "array"))
59  LaTeX-dialect)
60
61 ;;; tabularx.el ends here