>From 722bde77051fdb23ac9ebcebd75151c974a70902 Mon Sep 17 00:00:00 2001 From: Arash Esbati Date: Sun, 27 Sep 2015 10:13:53 +0200 Subject: [PATCH 1/2] Use LaTeX-add-lengths for LaTeX-lengths. * style/longtable.el ("longtable"): Make package lengths available through `LaTeX-add-lengths' and not `TeX-add-symbol'. --- ChangeLog | 5 +++++ style/longtable.el | 13 ++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index aaa44d9..91c6bc5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-09-27 Arash Esbati + + * style/longtable.el ("longtable"): Make package lengths available + through `LaTeX-add-lengths' and not `TeX-add-symbol'. + 2015-09-26 Mosè Giordano * tex.el (TeX-search-files-kpathsea): Remove duplicates diff --git a/style/longtable.el b/style/longtable.el index 353336d..3363119 100644 --- a/style/longtable.el +++ b/style/longtable.el @@ -1,6 +1,6 @@ ;;; longtable.el --- AUCTeX style for `longtable.sty'. -;; Copyright (C) 2013, 2014 Free Software Foundation, Inc. +;; Copyright (C) 2013--2015 Free Software Foundation, Inc. ;; Maintainer: address@hidden ;; Author: Mosè Giordano @@ -58,12 +58,7 @@ (LaTeX-newline) (indent-according-to-mode))))))) (TeX-add-symbols - ;; Parameters - '("LTleft" 0) - '("LTright" 0) - '("LTpre" 0) - '("LTpost" 0) - '("LTcapwidth" 0) + ;; Parameter '("LTchunksize" 0) ;; Commands to end table rows '("endhead" 0) @@ -73,6 +68,10 @@ ;; Caption commands '("caption*" 1)) + ;; These parameters are set with \setlength + (LaTeX-add-lengths + "LTleft" "LTright" "LTpre" "LTpost" "LTcapwidth") + ;; Use the enhanced table formatting (add-to-list 'LaTeX-indent-environment-list '("longtable" LaTeX-indent-tabular)) -- 2.5.2