>From 8edb40c8ce2f78e63b0a441230b22d9476fcd5a1 Mon Sep 17 00:00:00 2001 From: Arash Esbati Date: Sat, 18 Jul 2015 09:50:34 +0200 Subject: [PATCH 6/7] Add new style vwcol.el. --- ChangeLog | 4 ++++ Makefile.in | 3 ++- style/vwcol.el | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 style/vwcol.el diff --git a/ChangeLog b/ChangeLog index 9832d21..32bd62d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,10 @@ * Makefile.in (STYLESRC): Add new style. + * style/vwcol.el: New file. + + * Makefile.in (STYLESRC): Add new style. + * style/textpos.el: New file. * Makefile.in (STYLESRC): Add new style. diff --git a/Makefile.in b/Makefile.in index 03ff367..853c2b3 100644 --- a/Makefile.in +++ b/Makefile.in @@ -149,7 +149,8 @@ STYLESRC = style/prosper.el \ style/geometry.el style/ltablex.el style/ltxtable.el \ style/mn2e.el style/colortbl.el style/attachfile.el \ style/newpxtext.el style/newpxmath.el style/pdfpages.el \ - style/mnras.el style/environ.el style/textpos.el + style/mnras.el style/environ.el style/textpos.el \ + style/vwcol.el STYLEELC = $(STYLESRC:.el=.elc) diff --git a/style/vwcol.el b/style/vwcol.el new file mode 100644 index 0000000..0a74edf --- /dev/null +++ b/style/vwcol.el @@ -0,0 +1,71 @@ +;;; vwcol.el --- AUCTeX style for `vwcol.sty' (v0.2) + +;; Copyright (C) 2015 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: address@hidden +;; Created: 2015-07-04 +;; 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 `vwcol.sty' (v0.2) from 2015/02/10. +;; `vwcol.sty' is part of TeXLive. + +;;; Code: + +(defvar LaTeX-vwcol-key-val-options + '(("widths") + ("sep" ("fill")) + ("presep" ("true" "false")) + ("postsep" ("true" "false")) + ("sidesep" ("true" "false")) + ("rule" ("none" "0pt")) + ("prerule" ("true" "false")) + ("postrule" ("true" "false")) + ("siderule" ("true" "false")) + ("justify" ("ragged" "flush" "raggedleft" "center")) + ("rulecolor") + ("indent") + ("lines")) + "Key=value options for vwcol macros and environments.") + +(TeX-add-style-hook + "vwcol" + (lambda () + + (LaTeX-add-environments + '("vwcol" LaTeX-env-args + [ TeX-arg-key-val LaTeX-vwcol-key-val-options ])) + + (TeX-add-symbols + '("vwcolsetup" (TeX-arg-key-val LaTeX-vwcol-key-val-options))) + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("vwcolsetup" "{")) + 'function))) + LaTeX-dialect) + +(defvar LaTeX-vwcol-package-options '("quiet") + "Package options for the vwcol package.") + +;;; vwcol.el ends here -- 2.4.5