branch: externals/auctex
commit 3543e45b30558f112a14f148ba631138da13dcfe
Author: Tassilo Horn <t...@gnu.org>
Commit: Tassilo Horn <t...@gnu.org>

    New styles for beamerarticle & beamerswitch triggering beamer
    
    * style/beamerarticle.el: New style.
    * style/beamerswitch.el: New style.
    * Makefile.in (STYLESRC): Enable them.
---
 Makefile.in            |  3 ++-
 style/beamerarticle.el | 33 +++++++++++++++++++++++++++++++++
 style/beamerswitch.el  | 33 +++++++++++++++++++++++++++++++++
 3 files changed, 68 insertions(+), 1 deletion(-)

diff --git a/Makefile.in b/Makefile.in
index 3c07c16..822eea9 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -165,7 +165,8 @@ STYLESRC = style/prosper.el \
           style/arabxetex.el style/australian.el style/newzealand.el \
           style/xltabular.el style/marginnote.el style/thmtools.el \
           style/ocg-p.el     style/ocgx.el      style/thm-restate.el \
-          style/pythontex.el style/dashundergaps.el
+          style/pythontex.el style/dashundergaps.el style/beamerarticle.el \
+          style/beamerswitch.el
 
 STYLEELC = $(STYLESRC:.el=.elc)
 
diff --git a/style/beamerarticle.el b/style/beamerarticle.el
new file mode 100644
index 0000000..2c5cff0
--- /dev/null
+++ b/style/beamerarticle.el
@@ -0,0 +1,33 @@
+;;; beamerarticle.el --- AUCTeX style for the latex-beamerarticle class
+
+;; Copyright (C) 2019 Free Software Foundation
+
+;; 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:
+
+;; Triggers the beamer style when using the beamerarticle style.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "beamerarticle"
+ (lambda ()
+   (TeX-run-style-hooks "beamer")))
diff --git a/style/beamerswitch.el b/style/beamerswitch.el
new file mode 100644
index 0000000..716d16d
--- /dev/null
+++ b/style/beamerswitch.el
@@ -0,0 +1,33 @@
+;;; beamerswitch.el --- AUCTeX style for the latex-beamerswitch class
+
+;; Copyright (C) 2019 Free Software Foundation
+
+;; 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:
+
+;; Triggers the beamer style when using the beamerswitch style.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "beamerswitch"
+ (lambda ()
+   (TeX-run-style-hooks "beamer")))

_______________________________________________
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs

Reply via email to