>From 4237df894106acd344e1d45ff6f063ef7bde5098 Mon Sep 17 00:00:00 2001 From: Arash Esbati Date: Sun, 15 Mar 2015 17:45:48 +0100 Subject: [PATCH 3/3] New style ltxtable.el. * Makefile.in (STYLESRC): Add new style. * style/ltxtable.el: New file. --- ChangeLog | 6 ++++++ Makefile.in | 2 +- style/ltxtable.el | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 style/ltxtable.el diff --git a/ChangeLog b/ChangeLog index 1b8e6d5..6765b01 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,12 @@ * Makefile.in (STYLESRC): Add new style. + * style/ltxtable.el: New file. + +2015-03-15 Arash Esbati + + * Makefile.in (STYLESRC): Add new style. + * style/ltablex.el: New file. 2015-03-15 Arash Esbati diff --git a/Makefile.in b/Makefile.in index 160f970..848781b 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/ltablex.el + style/geometry.el style/ltablex.el style/ltxtable.el STYLEELC = $(STYLESRC:.el=.elc) diff --git a/style/ltxtable.el b/style/ltxtable.el new file mode 100644 index 0000000..ddc7c89 --- /dev/null +++ b/style/ltxtable.el @@ -0,0 +1,51 @@ +;;; ltxtable.el --- AUCTeX style for `ltxtable.sty' (v0.2) + +;; 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 `ltxtable.sty' (v0.2) from 1995/12/11. +;; `ltxtable.sty' is part of TeXLive. + +;;; Code: + +(TeX-add-style-hook + "ltxtable" + (lambda () + (TeX-run-style-hooks "tabularx" "longtable") + (TeX-add-symbols + '("LTXtable" + (TeX-arg-length) + (TeX-arg-eval + (lambda () + (let ((longtable (file-relative-name + (read-file-name "File with longtable: ")))) + (format "%s" longtable))))))) + LaTeX-dialect) + +(defvar LaTeX-ltxtable-package-options nil + "Package options for the ltxtable package.") + +;;; ltxtable.el ends here -- 2.3.2