>From 2f11467cca8bc45667d9ae1e1d6ecc38d3863516 Mon Sep 17 00:00:00 2001 From: Arash Esbati Date: Sun, 30 Aug 2015 15:08:31 +0200 Subject: [PATCH 4/5] Add new style transparent.el. * Makefile.in (STYLESRC): Add new style. * style/transparent.el: New file. --- ChangeLog | 4 ++++ Makefile.in | 2 +- style/transparent.el | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 style/transparent.el diff --git a/ChangeLog b/ChangeLog index 4841e1f..6fcf165 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2015-08-30 Arash Esbati + * Makefile.in (STYLESRC): Add new style. + + * style/transparent.el: New file. + * style/filecontents.el ("filecontents"): Do not indent the content of `filecontents[*]' environment. diff --git a/Makefile.in b/Makefile.in index 853c2b3..9a3b859 100644 --- a/Makefile.in +++ b/Makefile.in @@ -150,7 +150,7 @@ STYLESRC = style/prosper.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/vwcol.el + style/vwcol.el style/transparent.el STYLEELC = $(STYLESRC:.el=.elc) diff --git a/style/transparent.el b/style/transparent.el new file mode 100644 index 0000000..3a7fad5 --- /dev/null +++ b/style/transparent.el @@ -0,0 +1,53 @@ +;;; transparent.el --- AUCTeX style for `transparent.sty' (v1.0) + +;; Copyright (C) 2015 Free Software Foundation, Inc. + +;; Author: Arash Esbati +;; Maintainer: address@hidden +;; Created: 2015-08-15 +;; 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 `transparent.sty' (v1.0) from 2007/01/08. +;; `transparent.sty' is part of TeXLive. + +;;; Code: + +(TeX-add-style-hook + "transparent" + (lambda () + (TeX-add-symbols + '("transparent" "Transparency value (between 0,1)") + '("texttransparent" "Transparency value (between 0,1)" t)) + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("transparent" "{")) + 'type-declaration) + (font-latex-add-keywords '(("texttransparent" "{{")) + 'type-command))) + LaTeX-dialect) + +(defvar LaTeX-transparent-package-options nil + "Package options for the transparent package.") + +;;; transparent.el ends here -- 2.5.0