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

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

[elpa] externals/auctex 0e3f3ac 03/28: New styles newpxtext.el and newpx


From: Tassilo Horn
Subject: [elpa] externals/auctex 0e3f3ac 03/28: New styles newpxtext.el and newpxmath.el.
Date: Fri, 07 Aug 2015 15:59:16 +0000

branch: externals/auctex
commit 0e3f3ac8d24e92741228ddb6cfe67207ca2c2a1e
Author: Arash Esbati <address@hidden>
Commit: Tassilo Horn <address@hidden>

    New styles newpxtext.el and newpxmath.el.
    
    * Makefile.in (STYLESRC): Add new styles.
    
    * style/newpxmath.el: New file.
    
    * style/newpxtext.el: New file.
---
 ChangeLog          |    6 ++++
 Makefile.in        |    3 +-
 style/newpxmath.el |   74 +++++++++++++++++++++++++++++++++++++++++++++++
 style/newpxtext.el |   81 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 163 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 76ad4df..10bcfdf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2015-05-16  Arash Esbati  <address@hidden>
 
+       * Makefile.in (STYLESRC): Add new styles.
+
+       * style/newpxmath.el: New file.
+
+       * style/newpxtext.el: New file.
+
        * font-latex.el (font-latex-set-syntactic-keywords): Allow for
        multiple mandatory argument for a verbatim environment.
 
diff --git a/Makefile.in b/Makefile.in
index 76cef3c..750036e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -147,7 +147,8 @@ STYLESRC = style/prosper.el \
           style/tcolorbox.el style/color.el     style/expl3.el \
           style/bidibeamer.el style/enumitem.el style/caption.el \
           style/geometry.el  style/ltablex.el   style/ltxtable.el \
-          style/mn2e.el      style/colortbl.el  style/attachfile.el
+          style/mn2e.el      style/colortbl.el  style/attachfile.el \
+          style/newpxtext.el style/newpxmath.el
 
 STYLEELC = $(STYLESRC:.el=.elc)
 
diff --git a/style/newpxmath.el b/style/newpxmath.el
new file mode 100644
index 0000000..c9496db
--- /dev/null
+++ b/style/newpxmath.el
@@ -0,0 +1,74 @@
+;;; newpxmath.el --- AUCTeX style for `newpxmath.sty' (v1.232)
+
+;; Copyright (C) 2015 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <esbati'at'gmx.de>
+;; Maintainer: address@hidden
+;; Created: 2015-05-02
+;; 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 `newpxmath.sty' (v1.232) from 2015/04/07.
+;; `newpxmath.sty' is part of TeXLive.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "newpxmath"
+ (lambda ()
+
+   ;; Run style hook for amsmath
+   (TeX-run-style-hooks "amsmath")
+
+   ;; New symbols
+   (TeX-add-symbols
+    '("overgroup"      t)
+    '("undergroup"     t)
+    '("overgroupra"    t)
+    '("overgroupla"    t)
+    '("undergroupra"   t)
+    '("undergroupla"   t)
+    '("widering"       t)
+    '("widearc"        t)
+    '("wideOarc"       t)
+    '("uppartial"      0)
+    '("upvarkappa"     0)
+    '("varmathbb"      "Character")
+    '("vmathbb"        "Character")
+    '("vvmathbb"       "Character")))
+ LaTeX-dialect)
+
+(defvar LaTeX-newpxmath-package-options
+  '("varg"
+    "cmintegrals"
+    "uprightGreek"
+    "slantedGreek"
+    "cmbraces"
+    "bigdelims"
+    "varbb"
+    "vvarbb"
+    "nosymbolsc"
+    "amssymbols"
+    "noamssymbols"
+    "frenchmath")
+  "Package options for the newpxmath package.")
+
+;;; newpxmath.el ends here
diff --git a/style/newpxtext.el b/style/newpxtext.el
new file mode 100644
index 0000000..3bb9ab8
--- /dev/null
+++ b/style/newpxtext.el
@@ -0,0 +1,81 @@
+;;; newpxtext.el --- AUCTeX style for `newpxtext.sty' (v1.232)
+
+;; Copyright (C) 2015 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <esbati'at'gmx.de>
+;; Maintainer: address@hidden
+;; Created: 2015-05-02
+;; 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 `newpxtext.sty' (v1.232) from 2015/04/15.
+;; `newpxtext.sty' is part of TeXLive.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "newpxtext"
+ (lambda ()
+
+   ;; Run style hook for various packages loaded by newpxtext
+   (TeX-run-style-hooks "textcomp" "fontaxes")
+
+   ;; New symbols
+   (TeX-add-symbols
+    '("useosf"          0)  ; Only preamble command
+    '("useproportional" 0)  ; Only preamble command
+    '("lfstyle"        -1)  ; lf declaration
+    '("tlfstyle"       -1)  ; tlf declaration
+    '("osfstyle"       -1)  ; osf declaration
+    '("tosfstyle"      -1)  ; tosf declaration
+    '("sustyle"        -1)  ; sup style declaration
+    '("textlf"          t)  ; lf command
+    '("texttlf"         t)  ; tlf command
+    '("textosf"         t)  ; osf command
+    '("texttosf"        t)  ; tosf command
+    '("textsu"          t)) ; sup style command
+
+   ;; Fontification
+   (when (and (featurep 'font-latex)
+              (eq TeX-install-font-lock 'font-latex-setup))
+     (font-latex-add-keywords '(("textlf"    "{")
+                                ("texttlf"   "{")
+                                ("textosf"   "{")
+                                ("texttosf"  "{")
+                               ("textsu"    "{"))
+                              'type-command)
+     (font-latex-add-keywords '(("lfstyle"   "")
+                                ("tlfstyle"  "")
+                                ("osfstyle"  "")
+                               ("tosfstyle" "")
+                               ("sustyle"   ""))
+                              'type-declaration)))
+ LaTeX-dialect)
+
+(defvar LaTeX-newpxtext-package-options
+  '("defaultsups" "scosf" "largesc"
+    "scaled" "helvratio"
+    "tighter" "looser" "spacing" "stretch" "shrink"
+    "lining" "lf" "oldstyle" "osf" "tabular"
+    "p" "proportional" "theoremfont")
+  "Package options for the newpxtext package.")
+
+;;; newpxtext.el ends here



reply via email to

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