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. 80d2a087963676fd98683


From: Mosè Giordano
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 80d2a087963676fd98683ab04dfd685e5b91ff81
Date: Wed, 23 Nov 2016 14:49:47 +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  80d2a087963676fd98683ab04dfd685e5b91ff81 (commit)
       via  f04e5f70629a4e8b0f2068de59441d8b0dedd9a2 (commit)
      from  e3c60cfa033546bf8c11dd9956a68de65ff7b38e (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 80d2a087963676fd98683ab04dfd685e5b91ff81
Author: Mosè Giordano <address@hidden>
Date:   Wed Nov 23 15:48:11 2016 +0100

    Min fix to kpfonts package
    
    * style/kpfonts.el ("kpfonts"): Move setting of `TeX-font-list' inside
      the hook.

diff --git a/style/kpfonts.el b/style/kpfonts.el
index 026c81f..78bc9ab 100644
--- a/style/kpfonts.el
+++ b/style/kpfonts.el
@@ -515,19 +515,6 @@ following commands are defined:
     (LaTeX-kpfonts-mode))
 ;;; Kpfonts Minor Mode ends here
 
-;; New fonts by `kpfonts'.
-(setq TeX-font-list
-      (append
-       TeX-font-list
-       '(;; Math fonts
-        (?\C-h "" "" "\\mathup{"   "}")
-        (?\C-k "" "" "\\mathfrak{" "}")
-        (?\C-p "" "" "\\mathscr{"  "}")
-        ;; Text fonts
-        (?\C-l "\\textscsl{"      "}")
-        (?\C-o "\\textothersc{"   "}")
-        (?\C-q "\\textotherscsl{" "}"))))
-
 (TeX-add-style-hook
  "kpfonts"
  (lambda ()
@@ -554,6 +541,19 @@ following commands are defined:
     '("wideparen" 1)
     '("widering" 1))
 
+   ;; New fonts by `kpfonts'.
+   (setq TeX-font-list
+        (append
+         TeX-font-list
+         '(;; Math fonts
+           (?\C-h "" "" "\\mathup{"   "}")
+           (?\C-k "" "" "\\mathfrak{" "}")
+           (?\C-p "" "" "\\mathscr{"  "}")
+           ;; Text fonts
+           (?\C-l "\\textscsl{"      "}")
+           (?\C-o "\\textothersc{"   "}")
+           (?\C-q "\\textotherscsl{" "}"))))
+
    ;; Fontification
    (when (and (featurep 'font-latex)
              (eq TeX-install-font-lock 'font-latex-setup))

commit f04e5f70629a4e8b0f2068de59441d8b0dedd9a2
Author: Mosè Giordano <address@hidden>
Date:   Wed Nov 23 15:41:49 2016 +0100

    Add style file for amsfonts package
    
    * style/amsfonts.el: New file.
    * Makefile.in (STYLESRC): Install it.
    * style/amssymb.el ("amssymb"): Run `amsfonts' hook.

diff --git a/Makefile.in b/Makefile.in
index a291ed2..6bb7e35 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -158,7 +158,7 @@ STYLESRC = style/prosper.el \
           style/pdflscape.el style/commath.el   style/empheq.el \
           style/framed.el    style/paracol.el   style/menukeys.el \
           style/bidi.el      style/FiraMono.el  style/FiraSans.el \
-          style/bicaption.el
+          style/bicaption.el style/amsfonts.el
 
 STYLEELC = $(STYLESRC:.el=.elc)
 
diff --git a/style/amsfonts.el b/style/amsfonts.el
new file mode 100644
index 0000000..ba15ace
--- /dev/null
+++ b/style/amsfonts.el
@@ -0,0 +1,53 @@
+;;; amsfonts.el --- AUCTeX style for `amsfonts.sty' version 3.01
+
+;; Copyright (C) 2016 Free Software Foundation, Inc.
+
+;; Maintainer: address@hidden
+;; Author: Mosè Giordano <address@hidden>
+;; 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 `amsfonts.sty' version 3.01.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "amsfonts"
+ (lambda ()
+   (TeX-add-symbols
+    '("bold" 1))
+   ;; New math font by `amsfonts'.
+   (setq TeX-font-list
+        (append
+         TeX-font-list
+         '((?\C-k "" "" "\\mathfrak{" "}"))))
+   ;; Fontification
+   (when (and (featurep 'font-latex)
+             (eq TeX-install-font-lock 'font-latex-setup))
+     (font-latex-add-keywords '(("bold" "{"))
+                             'bold-command)))
+ LaTeX-dialect)
+
+;; The `psamsfonts' option is obsolete in AMSFonts v3
+(defvar LaTeX-amsfonts-package-options nil
+  "Package options for the amsfonts package.")
+
+;;; amsfonts.el ends here.
diff --git a/style/amssymb.el b/style/amssymb.el
index 2aec6b6..c53a52f 100644
--- a/style/amssymb.el
+++ b/style/amssymb.el
@@ -36,6 +36,7 @@
 (TeX-add-style-hook
  "amssymb"
  (lambda ()
+   (TeX-run-style-hooks "amsfonts")
    (TeX-add-symbols
     "boxdot"
     "boxplus"

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

Summary of changes:
 Makefile.in                      |    2 +-
 style/{xspace.el => amsfonts.el} |   36 ++++++++++++++++++------------------
 style/amssymb.el                 |    1 +
 style/kpfonts.el                 |   26 +++++++++++++-------------
 4 files changed, 33 insertions(+), 32 deletions(-)
 copy style/{xspace.el => amsfonts.el} (58%)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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