[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
- [elpa] externals/auctex updated (8c89edf -> 6620d8c), Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 4b2587d 01/35: Add new style currvita.el., Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 061d8cd 02/35: New tcolorbox style,
Tassilo Horn <=
- [elpa] externals/auctex 5276f35 03/35: Add PDF Tools support, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex cc9c060 05/35: Fix compatibility with Emacs < 24., Tassilo Horn, 2015/03/22
- [elpa] externals/auctex cef38f9 04/35: Handle TeX-region in backward search with both PDF Tools and Evince, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 51e3aa8 06/35: Adapt to PDF Tool changes, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 1bc721b 07/35: Fix error introduced in previous commit, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex adf90e9 09/35: Simplify TeX-pdf-tools-sync-view, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex b858aae 10/35: Make TeX-pdf-tools-sync-view work with region files, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex b2957c8 11/35: Fix bug in pdf-tools support, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 86f4a1e 12/35: Add a hook that's run after an environment is modified, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 566426b 08/35: New style for color.sty, Tassilo Horn, 2015/03/22