emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/auctex 061d8cd 02/35: New tcolorbox style


From: Tassilo Horn
Subject: [elpa] externals/auctex 061d8cd 02/35: New tcolorbox style
Date: Sun, 22 Mar 2015 09:26:54 +0000

branch: externals/auctex
commit 061d8cdb9ac0e154783ac722be5921ae2beb37f4
Author: Tassilo Horn <address@hidden>
Commit: Tassilo Horn <address@hidden>

    New tcolorbox style
    
    * Makefile.in (STYLESRC): Add new style.
    
    * style/tcolorbox.el: New style.
---
 ChangeLog          |    6 ++++
 Makefile.in        |    3 +-
 style/tcolorbox.el |   82 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 90 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 7c73af6..169f5d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-02-04  Tassilo Horn  <address@hidden>
+
+       * Makefile.in (STYLESRC): Add new style.
+
+       * style/tcolorbox.el: New style.
+
 2015-01-31  Arash Esbati  <address@hidden>
 
        * Makefile.in (STYLESRC): Add new style.
diff --git a/Makefile.in b/Makefile.in
index ceef32e..ed71dfa 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -143,7 +143,8 @@ STYLESRC = style/prosper.el \
           style/luatextra.el style/erewhon.el   style/baskervaldx.el \
           style/fbb.el       style/newtxmath.el style/newtxsf.el \
           style/newtxtext.el style/newtxttt.el  style/minted.el \
-          style/wrapfig.el   style/relsize.el   style/currvita.el
+          style/wrapfig.el   style/relsize.el   style/currvita.el \
+          style/tcolorbox.el
 STYLEELC = $(STYLESRC:.el=.elc)
 
 ifeq (@preview_enabled@,yes)
diff --git a/style/tcolorbox.el b/style/tcolorbox.el
new file mode 100644
index 0000000..73c8555
--- /dev/null
+++ b/style/tcolorbox.el
@@ -0,0 +1,82 @@
+;;; tcolorbox.el --- AUCTeX style for `tcolorbox.sty'
+
+;; Copyright (C) 2015 Free Software Foundation, Inc.
+
+;; Author: Tassilo Horn <address@hidden>
+;; Maintainer: address@hidden
+;; Created: 2015-01-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 `tcolorbox.sty'.
+
+;;; Code:
+
+;; TODO: There are tons of more options...
+(defvar LaTeX-tcolorbox-keyval-options
+  '(("title")
+    ("notitle")
+    ("adjusted title")
+    ("adjust text")
+    ("squeezed title")
+    ("squeezed title*")
+    ("detach title")
+    ("attach title")
+    ("attach title to upper")
+    ("upperbox" ("visible" "invisible"))
+    ("visible")
+    ("invisible")
+    ("lowerbox" ("visible" "invisible" "ignored"))
+    ("savelowerto")
+    ("lower separated" ("true" "false"))
+    ("savedelimiter")
+    ("colframe")
+    ("colback")
+    ("title filled" ("true" "false"))
+    ("colbacktitle")
+    ("colupper")
+    ("collower")
+    ("coltext")
+    ("coltitle")
+    ("fontupper")
+    ("fontlower")
+    ("fonttitle")
+    ("width")
+    ("height")
+    ("after")
+    ("before")))
+
+(TeX-add-style-hook
+ "tcolorbox"
+ (lambda ()
+   ;; TODO: There are many more macros
+   (TeX-add-symbols
+    "tcblower"
+    '("tcbset"
+      (TeX-arg-key-val LaTeX-tcolorbox-keyval-options))
+    '("tcbsetforeverylayer"
+      (TeX-arg-key-val LaTeX-tcolorbox-keyval-options)))
+   (LaTeX-add-environments
+    '("tcolorbox" LaTeX-env-args
+      [TeX-arg-key-val LaTeX-tcolorbox-keyval-options])))
+ LaTeX-dialect)
+
+;;; tcolorbox.el ends here



reply via email to

[Prev in Thread] Current Thread [Next in Thread]