auctex-devel
[Top][All Lists]
Advanced

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

[AUCTeX-devel] [PATCH] Add new styles.


From: Arash Esbati
Subject: [AUCTeX-devel] [PATCH] Add new styles.
Date: Sat, 06 Dec 2014 13:42:30 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4

* Makefile.in (STYLESRC): Add new styles.

* style/newtxttt.el: New file.

* style/newtxtext.el: New file.

* style/newtxsf.el: New file.

* style/newtxmath.el: New file.

* style/fbb.el: New file.

* style/erewhon.el: New file.

* style/baskervaldx.el: New file.
---
Hi,

this patch adds styles for some font related packages.  Comments are
welcome.

Best, Arash


 ChangeLog            | 18 +++++++++++
 Makefile.in          |  4 ++-
 style/baskervaldx.el | 73 +++++++++++++++++++++++++++++++++++++++++++++
 style/erewhon.el     | 79 ++++++++++++++++++++++++++++++++++++++++++++++++
 style/fbb.el         | 71 ++++++++++++++++++++++++++++++++++++++++++++
 style/newtxmath.el   | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 style/newtxsf.el     | 57 +++++++++++++++++++++++++++++++++++
 style/newtxtext.el   | 50 +++++++++++++++++++++++++++++++
 style/newtxttt.el    | 62 ++++++++++++++++++++++++++++++++++++++
 9 files changed, 497 insertions(+), 1 deletion(-)
 create mode 100644 style/baskervaldx.el
 create mode 100644 style/erewhon.el
 create mode 100644 style/fbb.el
 create mode 100644 style/newtxmath.el
 create mode 100644 style/newtxsf.el
 create mode 100644 style/newtxtext.el
 create mode 100644 style/newtxttt.el

diff --git a/ChangeLog b/ChangeLog
index 5171a72..d3929f0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2014-12-06  Arash Esbati  <address@hidden>
+
+       * Makefile.in (STYLESRC): Add new styles.
+
+       * style/newtxttt.el: New file.
+
+       * style/newtxtext.el: New file.
+
+       * style/newtxsf.el: New file.
+
+       * style/newtxmath.el: New file.
+
+       * style/fbb.el: New file.
+
+       * style/erewhon.el: New file.
+
+       * style/baskervaldx.el: New file.
+
 2014-12-04  Mosè Giordano  <address@hidden>
 
        * tex.el (TeX-Omega-command): Add aleph and omega choices.
diff --git a/Makefile.in b/Makefile.in
index 60e21dc..a132c1c 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -140,7 +140,9 @@ STYLESRC = style/prosper.el \
           style/eso-pic.el   style/fontaxes.el  style/AnonymousPro.el \
           style/mdsymbol.el  style/MyriadPro.el style/textcomp.el \
           style/XCharter.el  style/zlmtt.el     style/ifluatex.el \
-          style/luatextra.el
+          style/luatextra.el style/erewhon.el   style/baskervaldx.el \
+          style/fbb.el       style/newtxmath.el style/newtxsf.el \
+          style/newtxtext.el style/newtxttt.el
 STYLEELC = $(STYLESRC:.el=.elc)
 
 ifeq (@preview_enabled@,yes)
diff --git a/style/baskervaldx.el b/style/baskervaldx.el
new file mode 100644
index 0000000..692e632
--- /dev/null
+++ b/style/baskervaldx.el
@@ -0,0 +1,73 @@
+;;; baskervaldx.el --- AUCTeX style for `baskervaldx.sty' (v1.04)
+
+;; Copyright (C) 2014 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <esbati'at'gmx.de>
+;; Maintainer: address@hidden
+;; Created: 2014-11-18
+;; 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 `baskervaldx.sty' (v1.04) from 2014/04/27.
+;; `baskervaldx.sty' is part of TeXLive.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "baskervaldx"
+ (lambda ()
+
+   ;; Run style hook for various packages loaded by baskervaldx
+   (TeX-run-style-hooks "textcomp" "fontaxes")
+
+   ;; New symbols
+   (TeX-add-symbols
+
+    ;; Only preamble commands
+    '("useosf"  0)
+
+    ;; Text commands
+    '("textlf"     t)   ; proportional lining figures
+    '("texttlf"    t)   ; tabular lining figures
+    '("textosf"    t)   ; proportional oldstyle figures
+    '("texttosf"   t)   ; tabular oldstyle figures
+    '("textsu"     t)   ; superior figures
+    '("swshape"   -1))  ; italic shape with ligatures activated
+
+   ;; 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 '(("swshape"   ""))
+                             'bold-declaration)))
+ LaTeX-dialect)
+
+(defvar LaTeX-baskervaldx-package-options
+  '("lining" "lf" "oldstyle" "osf" "tabular" "proportional"
+    "scale" "scaled" "sups" "swash")
+  "Package options for the baskervaldx package.")
+
+;;; baskervaldx.el ends here
diff --git a/style/erewhon.el b/style/erewhon.el
new file mode 100644
index 0000000..eaa8e67
--- /dev/null
+++ b/style/erewhon.el
@@ -0,0 +1,79 @@
+;;; erewhon.el --- AUCTeX style for `erewhon.sty' (v1.0)
+
+;; Copyright (C) 2014 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <esbati'at'gmx.de>
+;; Maintainer: address@hidden
+;; Created: 2014-11-18
+;; 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 `erewhon.sty' (v1.0) from 2014/09/08.
+;; `erewhon.sty' is part of TeXLive.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "erewhon"
+ (lambda ()
+
+   ;; Run style hook for various packages loaded by erewhon
+   (TeX-run-style-hooks "textcomp" "fontaxes")
+
+   ;; New symbols
+   (TeX-add-symbols
+
+    ;; Only preamble commands
+    '("useosf"  0)
+
+    ;; Text commands
+    '("textlf"     t)   ; proportional lining figures
+    '("texttlf"    t)   ; tabular lining figures
+    '("textosf"    t)   ; proportional oldstyle figures
+    '("texttosf"   t)   ; tabular oldstyle figures
+    '("textsu"     t)   ; superior figures
+    '("textin"     t)   ; inferior figures
+    '("textnu"     t)   ; numerator figures
+    '("textde"     t)   ; denominator figures
+    '("textfrac" "Numerator" "Denominator"))
+
+   ;; Fontification
+   (when (and (featurep 'font-latex)
+              (eq TeX-install-font-lock 'font-latex-setup))
+     (font-latex-add-keywords '(("textlf"    "{")
+                                ("texttlf"   "{")
+                                ("textosf"   "{")
+                                ("texttosf"  "{")
+                               ("textsu"    "{")
+                               ("textin"    "{")
+                               ("textnu"    "{")
+                               ("textde"    "{"))
+                              'type-command)
+     (font-latex-add-keywords '(("textfrac"  "{{"))
+                              'textual)))
+ LaTeX-dialect)
+
+(defvar LaTeX-erewhon-package-options
+  '("lining" "lf" "oldstyle" "osf" "tabular" "p" "proportional"
+    "scale" "scaled" "scosf" "space" "sups")
+  "Package options for the erewhon package.")
+
+;;; erewhon.el ends here
diff --git a/style/fbb.el b/style/fbb.el
new file mode 100644
index 0000000..220da8f
--- /dev/null
+++ b/style/fbb.el
@@ -0,0 +1,71 @@
+;;; fbb.el --- AUCTeX style for `fbb.sty' (v1.06)
+
+;; Copyright (C) 2014 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <esbati'at'gmx.de>
+;; Maintainer: address@hidden
+;; Created: 2014-11-19
+;; 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 `fbb.sty' (v1.06) from 2014/09/09.
+;; `fbb.sty' is part of TeXLive.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "fbb"
+ (lambda ()
+
+   ;; Run style hook for various packages loaded by fbb
+   (TeX-run-style-hooks "textcomp" "fontaxes")
+
+   ;; New symbols
+   (TeX-add-symbols
+
+    ;; Only preamble commands
+    '("useosf"  0)
+    '("usetosf" 0)
+
+    ;; Text commands
+    '("textlf"     t)   ; proportional lining figures
+    '("texttlf"    t)   ; tabular lining figures
+    '("textosf"    t)   ; proportional oldstyle figures
+    '("texttosf"   t)   ; tabular oldstyle figures
+    '("textsu"     t))  ; superior figures
+
+   ;; 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)))
+ LaTeX-dialect)
+
+(defvar LaTeX-fbb-package-options
+  '("lining" "osf" "oldstyle" "tabular" "p" "proportional"
+    "scale" "scaled" "scosf" "sups")
+  "Package options for the fbb package.")
+
+;;; fbb.el ends here
diff --git a/style/newtxmath.el b/style/newtxmath.el
new file mode 100644
index 0000000..b0145ca
--- /dev/null
+++ b/style/newtxmath.el
@@ -0,0 +1,84 @@
+;;; newtxmath.el --- AUCTeX style for `newtxmath.sty' (v1.321)
+
+;; Copyright (C) 2014 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <esbati'at'gmx.de>
+;; Maintainer: address@hidden
+;; Created: 2014-11-22
+;; 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 `newtxmath.sty' (v1.321) from 2014/11/16.
+;; `newtxmath.sty' is part of TeXLive.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "newtxmath"
+ (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)
+    '("varnothing"     0)
+    '("emtysetAlt"     0)
+    '("forallAlt"      0)
+    '("existsAlt"      0)
+    '("nexistsAlt"     0)
+    '("vvmathbb"       "Character")))
+ LaTeX-dialect)
+
+(defvar LaTeX-newtxmath-package-options
+  '("varg"
+    "cmintegrals"
+    "uprightGreek"
+    "slantedGreek"
+    "cmbraces"
+    "bigdelims"
+    "varbb"
+    "vvarbb"
+    "nosymbolsc"
+    "amssymbols"
+    "noamssymbols"
+    "libaltvw"
+    "liby"
+    "timesmathacc"
+    "libertine"
+    "minion"
+    "garamondx"
+    "baskervaldx"
+    "utopia" "heuristica"
+    "erewhon"
+    "xcharter")
+  "Package options for the newtxmath package.")
+
+;;; newtxmath.el ends here
diff --git a/style/newtxsf.el b/style/newtxsf.el
new file mode 100644
index 0000000..979a155
--- /dev/null
+++ b/style/newtxsf.el
@@ -0,0 +1,57 @@
+;;; newtxsf.el --- AUCTeX style for `newtxsf.sty' (v1.0)
+
+;; Copyright (C) 2014 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <esbati'at'gmx.de>
+;; Maintainer: address@hidden
+;; Created: 2014-11-22
+;; 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 `newtxsf.sty' (v1.0) from 2014/11/14.
+;; `newtxsf.sty' is part of TeXLive.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "newtxsf"
+ (lambda ()
+   ;; Run style hook for amsmath
+   (TeX-run-style-hooks "amsmath")
+
+   ;; New symbols
+   (TeX-add-symbols
+    '("upimath"  0)
+    '("upjmath"  0)))
+ LaTeX-dialect)
+
+(defvar LaTeX-newtxsf-package-options
+  '("scaled"
+    "nosymbolsc"
+    "cmintegrals"
+    "amssymbols"
+    "noamssymbols"
+    "uprightGreek"
+    "slantedGreek"
+    "frenchmath")
+  "Package options for the newtxsf package.")
+
+;;; newtxsf.el ends here
diff --git a/style/newtxtext.el b/style/newtxtext.el
new file mode 100644
index 0000000..801c3f0
--- /dev/null
+++ b/style/newtxtext.el
@@ -0,0 +1,50 @@
+;;; newtxtext.el --- AUCTeX style for `newtxtext.sty' (v1.321)
+
+;; Copyright (C) 2014 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <esbati'at'gmx.de>
+;; Maintainer: address@hidden
+;; Created: 2014-11-19
+;; 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 `newtxtext.sty' (v1.321) from 2014/11/16.
+;; `newtxtext.sty' is part of TeXLive.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "newtxtext"
+ (lambda ()
+
+   ;; Run style hook for various packages loaded by newtxtext
+   (TeX-run-style-hooks "textcomp" "fontaxes")
+
+   ;; New symbols
+   (TeX-add-symbols
+    '("useosf"  0)))  ; Only preamble command
+ LaTeX-dialect)
+
+(defvar LaTeX-newtxtext-package-options
+  '("defaultsups" "helvratio" "osf" "scaled" "scosf")
+  "Package options for the newtxtext package.")
+
+;;; newtxtext.el ends here
diff --git a/style/newtxttt.el b/style/newtxttt.el
new file mode 100644
index 0000000..74f852a
--- /dev/null
+++ b/style/newtxttt.el
@@ -0,0 +1,62 @@
+;;; newtxtt.el --- AUCTeX style for `newtxtt.sty' (v1.05)
+
+;; Copyright (C) 2014 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <esbati'at'gmx.de>
+;; Maintainer: address@hidden
+;; Created: 2014-11-22
+;; 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 `newtxtt.sty' (v1.05) from 2014/11/18.
+;; `newtxtt.sty' is part of TeXLive.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "newtxtt"
+ (lambda ()
+
+   ;; Run style hook for newtxtt
+   (TeX-run-style-hooks "textcomp")
+
+   ;; New symbols
+   (TeX-add-symbols
+    '("textttz"      t)
+    '("ttz"         -1)
+    '("ttzdefault"  -1))
+
+   ;; Fontification
+   (when (and (featurep 'font-latex)
+             (eq TeX-install-font-lock 'font-latex-setup))
+     (font-latex-add-keywords '(("textttz"    "{"))
+                             'type-command)
+     (font-latex-add-keywords '(("ttzfamily"  "")
+                               ("ttz"        ""))
+                             'type-declaration)))
+ LaTeX-dialect)
+
+(defvar LaTeX-newtxtt-package-options
+  '("scaled" "zerostyle" "nomono" "straightquotes"
+    "ttdefault" "ttzdefault")
+  "Package options for the newtxtt package.")
+
+;;; newtxtt.el ends here
-- 
2.2.0




-- 
Arash Esbati



reply via email to

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