branch: elpa
commit 25bdcb2846c78f9f28510c7e6c1ae1a7d46df79b
Author: Arash Esbati <[email protected]>
Commit: Arash Esbati <[email protected]>
Add new style/framed.el
* Makefile.in (STYLESRC): Add new style.
* style/framed.el: New file.
---
Makefile.in | 3 ++-
style/framed.el | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 54 insertions(+), 1 deletion(-)
diff --git a/Makefile.in b/Makefile.in
index a745410..d79de6e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -155,7 +155,8 @@ STYLESRC = style/prosper.el \
style/newfloat.el style/subcaption.el style/AlegreyaSans.el \
style/hologo.el style/theorem.el style/ntheorem.el \
style/splitidx.el style/tikz.el style/xcolor.el \
- style/pdflscape.el style/commath.el style/empheq.el
+ style/pdflscape.el style/commath.el style/empheq.el \
+ style/framed.el
STYLEELC = $(STYLESRC:.el=.elc)
diff --git a/style/framed.el b/style/framed.el
new file mode 100644
index 0000000..44a69c5
--- /dev/null
+++ b/style/framed.el
@@ -0,0 +1,52 @@
+;;; framed.el --- AUCTeX style for `framed.sty' (v0.96)
+
+;; Copyright (C) 2016 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <arash.esbati'at'gmail.com>
+;; Maintainer: [email protected]
+;; Created: 2016-06-26
+;; 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 `framed.sty' (v0.96) from 2011/10/22.
+;; `framed.sty' is part of TeXLive.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "framed"
+ (lambda ()
+ ;; env's defined by framed.sty
+ (LaTeX-add-environments
+ '("framed")
+ '("oframed")
+ '("shaded")
+ '("shaded*")
+ '("snugshade")
+ '("snugshade*")
+ '("leftbar")
+ '("titled-frame" "Title")))
+ LaTeX-dialect)
+
+(defvar LaTeX-framed-package-options nil
+ "Package options for the framed package.")
+
+;;; framed.el ends here