>From f220519485c62a0db4db337b6ff09f327f0e3ce0 Mon Sep 17 00:00:00 2001 From: Arash Esbati Date: Sun, 15 Mar 2015 16:22:54 +0100 Subject: [PATCH 2/3] New style ltablex.el. * Makefile.in (STYLESRC): Add new style. * style/ltablex.el: New file. --- ChangeLog | 6 ++++++ Makefile.in | 2 +- style/ltablex.el | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 style/ltablex.el diff --git a/ChangeLog b/ChangeLog index 7e88388..1b8e6d5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2015-03-15 Arash Esbati + * Makefile.in (STYLESRC): Add new style. + + * style/ltablex.el: New file. + +2015-03-15 Arash Esbati + * style/enumitem.el (LaTeX-enumitem-SetEnumitemKey-regexp): Delete match for the second argument. (LaTeX-enumitem-SetEnumitemValue-regexp): Delete match for the diff --git a/Makefile.in b/Makefile.in index b9f5c08..160f970 100644 --- a/Makefile.in +++ b/Makefile.in @@ -146,7 +146,7 @@ STYLESRC = style/prosper.el \ style/wrapfig.el style/relsize.el style/currvita.el \ style/tcolorbox.el style/color.el style/expl3.el \ style/bidibeamer.el style/enumitem.el style/caption.el \ - style/geometry.el + style/geometry.el style/ltablex.el STYLEELC = $(STYLESRC:.el=.elc) diff --git a/style/ltablex.el b/style/ltablex.el new file mode 100644 index 0000000..5e0fad5 --- /dev/null +++ b/style/ltablex.el @@ -0,0 +1,49 @@ +;;; ltablex.el --- AUCTeX style for `ltablex.sty' (v1.1) + +;; Copyright (C) 2015 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: address@hidden +;; Created: 2015-03-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 `ltablex.sty' (v1.1) from 2014/08/13. +;; `ltablex.sty' is part of TeXLive. `ltablex.sty' modifies the +;; tabularx environment to combine the features of the tabularx +;; package with those of the longtable package. All we need is to +;; call those styles and add two macros. + +;;; Code: + +(TeX-add-style-hook + "ltablex" + (lambda () + (TeX-run-style-hooks "tabularx" "longtable") + (TeX-add-symbols + '("keepXColumns" 0) + '("convertXColumns" 0))) + LaTeX-dialect) + +(defvar LaTeX-ltablex-package-options nil + "Package options for the ltablex package.") + +;;; ltablex.el ends here -- 2.3.2