# HG changeset patch
# User Uwe Brauer <o...@mat.ucm.es>
# Date 1572167053 -3600
#      Sun Oct 27 10:04:13 2019 +0100
# Branch algorithm
# Node ID 7bb3f704cc8f54f8facdaecec8a1cecaa0cdd242
# Parent  dc7dc33b8bf193753d446e3bced00e5c08a2a4c0
Add support for the algorithm package

* Makefile.in (STYLESRC): style/algorithm.el:  Add new style.

* style/algorithm.el:  New file.

diff -r dc7dc33b8bf1 -r 7bb3f704cc8f Makefile.in
--- a/Makefile.in	Sat Oct 26 12:49:06 2019 +0200
+++ b/Makefile.in	Sun Oct 27 10:04:13 2019 +0100
@@ -170,7 +170,7 @@
 	   style/ocg-p.el     style/ocgx.el      style/thm-restate.el \
 	   style/pythontex.el style/dashundergaps.el style/beamerarticle.el \
 	   style/changelog.el style/ltugboat.el  style/beamerswitch.el \
-	   style/multitoc.el  style/xkcdcolors.el
+	   style/multitoc.el  style/xkcdcolors.el style/algorithm.el \
 
 STYLEELC = $(STYLESRC:.el=.elc)
 
diff -r dc7dc33b8bf1 -r 7bb3f704cc8f style/algorithm.el
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/style/algorithm.el	Sun Oct 27 10:04:13 2019 +0100
@@ -0,0 +1,48 @@
+;;; algorithm.el --- AUCTeX style for the (LaTeX) algorithm package
+
+;; Copyright (C) 2016--2018 Free Software Foundation, Inc.
+
+;; Author: Uwe Brauer <o...@mat.ucm.es>
+;; Created: 2019-10-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 the algorithm package.
+
+;;; Code:
+
+(declare-function font-latex-add-keywords
+		  "font-latex"
+		  (keywords class))
+
+(defvar LaTeX-algorithm-package-options
+  '("section")
+  "Package options for the algorithm package.")
+
+(TeX-add-style-hook
+ "algorithm"
+ (lambda ()
+   (TeX-add-symbols
+    '("listofalgorithms" 0))
+   (LaTeX-add-environments
+    '("algorithm"))
+   LaTeX-dialect))
+
+;;; ALGO.EL ends here

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to