auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. e45c6d98f00b59db728bb


From: Arash Esbati
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. e45c6d98f00b59db728bbbb6b3116f5fc441de8c
Date: Wed, 10 Aug 2016 10:18:54 +0000 (UTC)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  e45c6d98f00b59db728bbbb6b3116f5fc441de8c (commit)
      from  fad36001b4ff5496965402363bbb4ddd4aaed3aa (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e45c6d98f00b59db728bbbb6b3116f5fc441de8c
Author: Arash Esbati <address@hidden>
Date:   Wed Aug 10 12:18:12 2016 +0200

    Add new style/commath.el
    
    * Makefile.in (STYLESRC): Add new style.
    
    * style/commath.el: New file.

diff --git a/Makefile.in b/Makefile.in
index ed19fa7..28be5c2 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -155,7 +155,7 @@ 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/pdflscape.el style/commath.el
 
 STYLEELC = $(STYLESRC:.el=.elc)
 
diff --git a/style/commath.el b/style/commath.el
new file mode 100644
index 0000000..fd42550
--- /dev/null
+++ b/style/commath.el
@@ -0,0 +1,102 @@
+;;; commath.el --- AUCTeX style for `commath.sty' (v0.3)
+
+;; Copyright (C) 2016 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <arash.esbati'at'gmail.com>
+;; Maintainer: address@hidden
+;; Created: 2016-07-31
+;; 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 `commath.sty' (v0.3) from 2006/07/18.
+;; `commath.sty' is part of TeXLive.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "commath"
+ (lambda ()
+
+   ;; Only load amsmath.el, ifthen.el is not necessary
+   (TeX-run-style-hooks "amsmath")
+
+   (TeX-add-symbols
+    '("dif" 0)
+    '("Dif" 0)
+    '("od" [ "Order of differentiation" ] "Function" "Variable")
+    '("tod" [ "Order of differentiation" ] "Function" "Variable")
+    '("dod" [ "Order of differentiation" ] "Function" "Variable")
+    '("pd" [ "Order of differentiation" ] "Function" "Variable")
+    '("tpd" [ "Order of differentiation" ] "Function" "Variable")
+    '("dpd" [ "Order of differentiation" ] "Function" "Variable")
+    '("md" 6)
+    '("tmd" 6)
+    '("dmd" 6)
+    '("del" [ "Size argument (0..4)" ] "Argument")
+    '("cbr" [ "Size argument (0..4)" ] "Argument")
+    '("set" [ "Size argument (0..4)" ] "Argument")
+    '("sbr" [ "Size argument (0..4)" ] "Argument")
+    '("intoo" [ "Size argument (0..4)" ] "Argument")
+    '("intcc" [ "Size argument (0..4)" ] "Argument")
+    '("intoc" [ "Size argument (0..4)" ] "Argument")
+    '("intco" [ "Size argument (0..4)" ] "Argument")
+    '("eval" [ "Size argument (0..4)" ] t)
+    '("sVert" [ "Size argument (0..4)" ])
+    '("envert" [ "Size argument (0..4)" ] "Argument")
+    '("abs" [ "Size argument (0..4)" ] "Argument")
+    '("enVert" [ "Size argument (0..4)" ] "Argument")
+    '("norm" [ "Size argument (0..4)" ] "Argument")
+    '("fullfunction" 5)
+
+    ;; Referencing macros
+    '("thmref" TeX-arg-ref)
+    '("exref" TeX-arg-ref)
+    '("defnref" TeX-arg-ref)
+    '("secref" TeX-arg-ref)
+    '("lemref" TeX-arg-ref)
+    '("propref" TeX-arg-ref)
+    '("remref" TeX-arg-ref)
+    '("figref" TeX-arg-ref)
+    '("colref" TeX-arg-ref)
+    '("appref" TeX-arg-ref)
+    '("assref" TeX-arg-ref))
+
+   ;; Fontification
+   (when (and (featurep 'font-latex)
+             (eq TeX-install-font-lock 'font-latex-setup))
+     (font-latex-add-keywords '(("thmref"  "{")
+                               ("exref"   "{")
+                               ("defnref" "{")
+                               ("secref"  "{")
+                               ("lemref"  "{")
+                               ("propref" "{")
+                               ("remref"  "{")
+                               ("figref"  "{")
+                               ("colref"  "{")
+                               ("appref"  "{")
+                               ("assref"  "{"))
+                             'reference)))
+ LaTeX-dialect)
+
+(defvar LaTeX-commath-package-options nil
+  "Package options for the commath package.")
+
+;;; commath.el ends here

-----------------------------------------------------------------------

Summary of changes:
 Makefile.in      |    2 +-
 style/commath.el |  102 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 103 insertions(+), 1 deletion(-)
 create mode 100644 style/commath.el


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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