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

2014-12-08 Thread Mosè Giordano
Hi Arash,

2014-12-06 13:42 GMT+01:00 Arash Esbati :
> * 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.

thank you, patch installed.  A request for the next times: could you
please send the patch as an attachment?  Thanks ;-)

Bye,
Mosè

___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


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

2014-12-06 Thread Arash Esbati
* 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  
+
+   * 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  
 
* 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 000..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 
+;; Maintainer: auctex-devel@gnu.org
+;; 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"