auctex-devel
[Top][All Lists]
Advanced

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

[AUCTeX-devel] Add various style files


From: Arash Esbati
Subject: [AUCTeX-devel] Add various style files
Date: Mon, 3 Nov 2014 19:14:42 +0100

* style/zlmtt.el: New file.

* style/XCharter.el: New file.

* style/textcomp.el: New file.

* style/MyriadPro.el: New file.

* style/mdsymbol.el: New file.

* style/fontaxes.el: New file.

* style/eso-pic.el: New file.

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

As requested by Tassilo.  Any comments welcome.  Best, Arash


 ChangeLog             |  18 +++++
 Makefile.in           |   5 +-
 style/AnonymousPro.el |  90 +++++++++++++++++++++++++
 style/MyriadPro.el    |  90 +++++++++++++++++++++++++
 style/XCharter.el     |  76 +++++++++++++++++++++
 style/eso-pic.el      |  91 ++++++++++++++++++++++++++
 style/fontaxes.el     | 114 ++++++++++++++++++++++++++++++++
 style/mdsymbol.el     |  99 ++++++++++++++++++++++++++++
 style/textcomp.el     | 178 ++++++++++++++++++++++++++++++++++++++++++++++++++
 style/zlmtt.el        |  58 ++++++++++++++++
 10 files changed, 818 insertions(+), 1 deletion(-)
 create mode 100644 style/AnonymousPro.el
 create mode 100644 style/MyriadPro.el
 create mode 100644 style/XCharter.el
 create mode 100644 style/eso-pic.el
 create mode 100644 style/fontaxes.el
 create mode 100644 style/mdsymbol.el
 create mode 100644 style/textcomp.el
 create mode 100644 style/zlmtt.el

diff --git a/ChangeLog b/ChangeLog
index 96a8165..9c12ab3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2014-11-03  Arash Esbati  <address@hidden>
+
+       * style/zlmtt.el: New file.
+
+       * style/XCharter.el: New file.
+
+       * style/textcomp.el: New file.
+
+       * style/MyriadPro.el: New file.
+
+       * style/mdsymbol.el: New file.
+
+       * style/fontaxes.el: New file.
+
+       * style/eso-pic.el: New file.
+
+       * style/AnonymousPro.el: New file.
+
 2014-11-02  Arash Esbati  <address@hidden>
 
        * style/MinionPro.el (TeX-add-symbols): Remove `figureversion',
diff --git a/Makefile.in b/Makefile.in
index 13a05ff..201caa8 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -135,7 +135,10 @@ STYLESRC = style/prosper.el \
           style/acronym.el   style/xparse.el    style/fancyvrb.el \
           style/tabulary.el  style/fontspec.el  style/unicode-math.el \
           style/luacode.el   style/metalogo.el  style/english.el \
-          style/exercise.el  style/plext.el     style/cleveref.el
+          style/exercise.el  style/plext.el     style/cleveref.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
 STYLEELC = $(STYLESRC:.el=.elc)
 
 CLEANFILES = $(AUCELC) $(STYLEELC) $(MULEELC)
diff --git a/style/AnonymousPro.el b/style/AnonymousPro.el
new file mode 100644
index 0000000..4605bbb
--- /dev/null
+++ b/style/AnonymousPro.el
@@ -0,0 +1,90 @@
+;;; AnonymousPro.el --- AUCTeX style for `AnonymousPro.sty' (v2.1)
+
+;; Copyright (C) 2014 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <esbati'at'gmx.de>
+;; Maintainer: address@hidden
+;; Created: 2014-10-30
+;; 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 `AnonymousPro.sty' (v2.1) from
+;; 2014/03/22.  `AnonymousPro.sty' is part of TeXLive.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "AnonymousPro"
+ (lambda ()
+
+   ;; Run style hook for textcomp
+   (TeX-run-style-hooks "textcomp")
+
+   ;; New symbols
+   (TeX-add-symbols
+    "ANPapplelogo"
+    "ANPappleopen"
+    "ANPapproxequal"
+    "ANPback"
+    "ANPblackdiamond"
+    "ANPcheckmark"
+    "ANPcopy"
+    "ANPellipsis"
+    "ANPendtab"
+    "ANPerasetotheright"
+    "ANPgreaterequal"
+    "ANPHbar"
+    "ANPhbar"
+    "ANPinfinity"
+    "ANPinsert"
+    "ANPintegral"
+    "ANPlessequal"
+    "ANPlozenge"
+    "ANPnotequal"
+    "ANPoptionkey"
+    "ANPpartialdiff"
+    "ANPPi"
+    "ANPpi"
+    "ANPproduct"
+    "ANPshift"
+    "ANPshiftlock"
+    "ANPSigma"
+    "ANPsigma"
+    "ANPsigmaone"
+    "ANPsummation"
+    "ANPtab"
+    "ANPReturnSign"
+    "ANPShoulderedOpenBox"
+    "ANPUpArrowHead"
+    "ANPInsertSign"
+    "ANPUpArrowHeadBars"
+    "ANPHelm"
+    "ANPOpenBox"
+    "ANPDelta"
+    "ANPverticaltab"
+    "ANPNumeroSign"))
+ LaTeX-dialect)
+
+(defvar LaTeX-AnonymousPro-package-options
+  '("ttdefault" "scale")
+  "Package options for the AnonymousPro package.")
+
+;;; AnonymousPro.el ends here
diff --git a/style/MyriadPro.el b/style/MyriadPro.el
new file mode 100644
index 0000000..898a1cc
--- /dev/null
+++ b/style/MyriadPro.el
@@ -0,0 +1,90 @@
+;;; MyriadPro.el --- AUCTeX style for `MyriadPro.sty' (v0.5)
+
+;; Copyright (C) 2014 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <esbati'at'gmx.de>
+;; Maintainer: address@hidden
+;; Created: 2014-10-21
+;; 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 `MyriadPro.sty' (v0.5) from 2013/04/20.
+;; The latest version of MyriadPro is available as part of FontPro
+;; bundle from <https://www.github.com/sebschub>.  `MyriadPro.sty' is
+;; not part of TeXLive.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "MyriadPro"
+ (lambda ()
+
+   ;; Run style hook for various packages loaded by MyriadPro
+   (TeX-run-style-hooks "textcomp" "amsmath" "fontaxes" "mdsymbol")
+
+   ;; New symbols
+   (TeX-add-symbols
+    '("smallfrac" "Numerator" "Denominator")
+    '("slantfrac" "Numerator" "Denominator")
+    '("boldsymbol" "Symbol"))
+
+   ;; `\mathversion' is available with sansmath option
+   (when (LaTeX-provided-package-options-member "MyriadPro" "sansmath")
+     (TeX-add-symbols
+      '("mathversion"
+        (TeX-arg-eval completing-read "Math version: "
+                      '(("sans")        ("sansbold")
+                        ("sanstabular") ("sansboldtabular"))))))
+
+   ;; Fontification
+   (when (and (featurep 'font-latex)
+              (eq TeX-install-font-lock 'font-latex-setup))
+     (font-latex-add-keywords '(("smallfrac"   "{{")
+                                ("slantfrac"   "{{"))
+                              'textual)
+     (font-latex-add-keywords '(("mathversion" "{"))
+                              'variable)))
+ LaTeX-dialect)
+
+(defvar LaTeX-MyriadPro-package-options
+  '(;; Font selection
+    "smallfamily" "medfamily" "onlytext" "onlymath" "math" "sansmath"
+
+    ;; Figure selection 
+    "textosf" "mathosf" "osf" "textlf" "mathlf" "lf" "mathtabular"
+
+    ;; Calligraphic fonts
+    "cmsy" "swash" "abx"
+
+    ;; Blackboard bold letters
+    "amsbb" "fourierbb" "lucidabb"
+
+    ;; Greek letters
+    "mixedgreek" "italicgreek" "frenchmath"
+
+    ;; Miscellaneous options
+    "scale" "loosequotes" "footnotefigures"
+
+    ;; Additional mathversions
+    "sansmath")
+  "Package options for the MyriadPro package.")
+
+;;; MyriadPro.el ends here
diff --git a/style/XCharter.el b/style/XCharter.el
new file mode 100644
index 0000000..f2af2e5
--- /dev/null
+++ b/style/XCharter.el
@@ -0,0 +1,76 @@
+;;; XCharter.el --- AUCTeX style for `XCharter.sty' (v1.05)
+
+;; Copyright (C) 2014 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <esbati'at'gmx.de>
+;; Maintainer: address@hidden
+;; Created: 2014-10-30
+;; 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 `XCharter.sty' (v1.05) from 2014/07/03.
+;; `XCharter.sty' is part of TeXLive.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "XCharter"
+ (lambda ()
+
+   ;; Run style hook for various packages loaded by XCharter
+   (TeX-run-style-hooks "textcomp" "fontaxes")
+
+   ;; New symbols
+   (TeX-add-symbols
+
+    ;; Only preamble commands
+    '("useosf"  0)
+    '("useosfI" 0)
+
+    ;; Text commands
+    '("textsu"     t)   ; superior figures
+    '("sustyle"   -1)   ; 
+    '("textlf"     t)   ; lining figures
+    '("lfstyle"   -1)   ; 
+    '("textosf"    t)   ; oldstyle figures
+    '("textosfI"   t)   ; oldstyle figures alternate
+    '("osfstyle"  -1))  ; whatever oldstyle option is in force
+  
+   ;; Fontification
+   (when (and (featurep 'font-latex)
+              (eq TeX-install-font-lock 'font-latex-setup))
+     (font-latex-add-keywords '(("textsu"    "{")
+                                ("textlf"    "{")
+                                ("textosf"   "{")
+                                ("textosfI"  "{"))
+                              'textual)
+     (font-latex-add-keywords '(("sustyle"   "")
+                                ("lfstyle"   "")
+                                ("osfstyle"  ""))
+                              'italic-declaration)))
+ LaTeX-dialect)
+
+(defvar LaTeX-XCharter-package-options
+  '("lining" "lf" "oldstyle" "osf" "oldstyleI" "osfI"
+    "scaled" "sups")
+  "Package options for the XCharter package.")
+
+;;; XCharter.el ends here
diff --git a/style/eso-pic.el b/style/eso-pic.el
new file mode 100644
index 0000000..68e5db7
--- /dev/null
+++ b/style/eso-pic.el
@@ -0,0 +1,91 @@
+;;; eso-pic.el --- AUCTeX style for `eso-pic.sty' (v2.0d)
+
+;; Copyright (C) 2014 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <esbati'at'gmx.de>
+;; Maintainer: address@hidden
+;; Created: 2014-10-29
+;; 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 `eso-pic.sty' (v2.0d) from 2013/10/06.
+;; `eso-pic.sty' is part of TeXLive.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "eso-pic"
+ (lambda ()
+
+   ;; Run style hook for eso-pic
+   (TeX-run-style-hooks "atbegshi")
+
+   ;; New symbols
+   (TeX-add-symbols
+
+    ;; Basic commands
+    '("AddToShipoutPictureBG"   t)
+    '("AddToShipoutPictureBG*"  t)
+    '("AddToShipoutPictureFG"   t)
+    '("AddToShipoutPictureFG*"  t)
+    '("ClearShipoutPictureBG"   0)
+    '("ClearShipoutPictureFG"   0)
+
+    ;; Helper macros
+    '("AtPageUpperLeft"         t)
+    '("AtPageLowerLeft"         t)
+    '("AtPageCenter"            t)
+    '("AtTextUpperLeft"         t)
+    '("AtTextLowerLeft"         t)
+    '("AtTextCenter"            t)
+    '("AtStockUpperLeft"        t)
+    '("AtStockLowerLeft"        t)
+    '("AtStockCenter"           t)
+
+    ;; Aux. commands
+    '("LenToUnit"               t) 
+    '("gridSetup" 
+      [ "Grid unit name" ]  "Grid unit"    "Label factor" 
+      "Grid delta"          "Grid Delta"   "Gap"))
+
+   ;; Declare expert macro
+   (TeX-declare-expert-macros
+    "eso-pic"
+    "gridSetup" "LenToUnit"))
+ LaTeX-dialect)
+
+(defvar LaTeX-eso-pic-package-options
+  '(;;
+    ("pscoord"      ("true" "false"))
+    ("texcoord"     ("true" "false"))
+    ("grid"         ("true" "false"))
+    ("gridunit"     ("mm" "in" "bp" "pt"))
+    ("gridcolor")
+    ("subgridcolor")
+    ("subgridstyle" ("solid" "dotted"))
+    ("dvips"        ("true" "false")))
+  "Package options for the eso-pic package.")
+
+(defun LaTeX-eso-pic-package-options nil
+  "Prompt for package options for the eso-pic package."
+  (TeX-read-key-val t LaTeX-eso-pic-package-options))
+
+;;; eso-pic.el ends here
diff --git a/style/fontaxes.el b/style/fontaxes.el
new file mode 100644
index 0000000..9e94f80
--- /dev/null
+++ b/style/fontaxes.el
@@ -0,0 +1,114 @@
+;;; fontaxes.el --- AUCTeX style for `fontaxes.sty' version v1.0d
+
+;; Copyright (C) 2014 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <esbati'at'gmx.de>
+;; Maintainer: address@hidden
+;; Created: 2014-10-12
+;; 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 `fontaxes.sty' version v1.0d from
+;; 2014/03/23.  `fontaxes.sty' is part of TeXLive.
+
+;; Thanks to Mosè Giordano for his perceptive comments on
+;; implementation of "figureversion".
+
+;;; Code:
+
+(TeX-add-style-hook
+ "fontaxes"
+ (lambda ()
+   (TeX-add-symbols
+    ;; Various font shapes
+    '("swshape"           -1)  ; swash shape
+    '("sscshape"          -1)  ; spaced small caps
+    '("fontprimaryshape"   t)
+    '("fontsecondaryshape" t)
+    '("swdefault"          t)
+    '("sscdefault"         t)
+    '("ulcdefault"         t)
+ 
+    ;; Figure versions
+    '("figureversion"
+      (TeX-arg-eval mapconcat 'identity 
+                    (TeX-completing-read-multiple
+                     "Style, alignment: "
+                     '(("text") ("osf")
+                       ("lining") ("lf")
+                       ("tabular") ("tab")
+                       ("proportional") ("prop"))) ","))
+    '("txfigures" -1)  ; style: text figures (osf)
+    '("lnfigures" -1)  ; style: lining figures
+    '("tbfigures" -1)  ; alignment: tabular figures
+    '("prfigures" -1)  ; alignment: proportional figures
+    '("fontfigurestyle"
+      (TeX-arg-eval completing-read "Style: "
+                    '(("text") ("lining"))))
+    '("fontfigurealignment"
+      (TeX-arg-eval completing-read "Alignment: "
+                    '(("tabular") ("proportional"))))
+    '("fontbasefamily" t)
+
+    ;; Math versions
+    '("boldmath"         -1)  ; math weight
+    '("unboldmath"       -1)  ; 
+    '("tabularmath"      -1)  ; math figure alignment
+    '("proportionalmath" -1)  ; 
+    '("mathweight"
+      (TeX-arg-eval completing-read "Math weight: "
+                    '(("bold") ("normal"))))
+    '("mathfigurealignment"
+      (TeX-arg-eval completing-read "Math figure alignment: "
+                    '(("tabular") ("proportional"))))
+
+    ;; Additional commands
+    '("textsw"              t)
+    '("textssc"             t)
+    '("textulc"             t)
+    '("textfigures"         t)
+    '("liningfigures"       t)
+    '("tabularfigures"      t)
+    '("proportionalfigures" t))
+
+   ;; Fontification
+   (when (and (featurep 'font-latex)
+              (eq TeX-install-font-lock 'font-latex-setup))
+     (font-latex-add-keywords '(("textfigures"         "{")
+                                ("liningfigures"       "{")
+                                ("tabularfigures"      "{")
+                                ("proportionalfigures" "{"))
+                              'textual)
+     (font-latex-add-keywords '(("textsw"              "{")
+                                ("textssc"             "{")
+                                ("textulc"             "{"))
+                              'bold-command)
+     (font-latex-add-keywords '(("swshape"             "")
+                                ("sscshape"            ""))
+                              'bold-declaration)
+     (font-latex-add-keywords '(("figureversion"       "{"))
+                              'variable)))
+ LaTeX-dialect)
+
+(defvar LaTeX-fontaxes-package-options nil
+  "Package options for the fontaxes package.")
+
+;;; fontaxes.el ends here
diff --git a/style/mdsymbol.el b/style/mdsymbol.el
new file mode 100644
index 0000000..c318a95
--- /dev/null
+++ b/style/mdsymbol.el
@@ -0,0 +1,99 @@
+;;; mdsymbol.el --- AUCTeX style for `mdsymbol.sty' (v0.5)
+
+;; Copyright (C) 2014 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <esbati'at'gmx.de>
+;; Maintainer: address@hidden
+;; Created: 2014-10-25
+;; 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 `mdsymbol.sty' (v0.5) from 2012/11/18.
+;; The latest version of is available from <https://www.github.com/sebschub>.
+;; `mdsymbol.sty' is part of TeXLive.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "mdsymbol"
+ (lambda ()
+
+   ;; Run style hook for various packages loaded by mdsymbol
+   (TeX-run-style-hooks "textcomp" "amsmath")
+
+   ;; New symbols
+   (TeX-add-symbols
+
+    ;; These macros take one argument; we follow latex.el and use the
+    ;; t specifier for the argument; over- and underbrace and sqrt are
+    ;; already available
+    '("overgroup"  t)
+    '("undergroup" t)
+    '("overlinesegment"  t)
+    '("overleftharpoon"  t)
+    '("overrightharpoon" t)
+    '("underlinesegment" t)
+    ;;
+    '("widehat"       t)
+    '("widetilde"     t)
+    '("wideparen"     t)
+    '("vec"           t)
+    '("middlebar"     t)
+    '("middleslash"   t)
+    '("strokethrough" t)
+    ;;
+    '("overlining"    t))
+
+   ;; The following macros are usually defined, since retainmissing
+   ;; defaults to false
+   (unless (or (LaTeX-provided-package-options-member "mdsymbol" 
"retainmissing=true")
+               (LaTeX-provided-package-options-member "mdsymbol" 
"retainmissing"))
+     (TeX-add-symbols
+      '("dagger")
+      '("ddagger")
+      '("mathparagraph")
+      '("mathsection")
+      '("mathdollar")
+      '("mathsterling")
+      '("yen")
+      '("hbar")
+      '("hslash")
+      '("circledR")
+      '("circledS")
+      '("lambdabar")
+      '("lambdaslash"))))
+ LaTeX-dialect)
+
+(defvar LaTeX-mdsymbol-package-options
+  '(;;
+    ("normalweight"  ("Light" "Regular" "autolight" "autoregular"))
+    ("boldweight"    ("Semibold" "Bold" "autosemibold"))
+    ("onlysansmath"  ("true" "false"))
+    ("retainmissing" ("true" "false"))
+    ("scale")
+    ("largedelims"   ("true" "false")))
+  "Package options for the mdsymbol package.")
+
+(defun LaTeX-mdsymbol-package-options nil
+  "Prompt for package options for the mdsymbol package."
+  (TeX-read-key-val t LaTeX-mdsymbol-package-options))
+
+;;; mdsymbol.el ends here
diff --git a/style/textcomp.el b/style/textcomp.el
new file mode 100644
index 0000000..4d0985c
--- /dev/null
+++ b/style/textcomp.el
@@ -0,0 +1,178 @@
+;;; textcomp.el --- AUCTeX style for `textcomp.sty' (v1.99g)
+
+;; Copyright (C) 2014 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <esbati'at'gmx.de>
+;; Maintainer: address@hidden
+;; Created: 2014-10-25
+;; 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 `textcomp.sty' (v1.99g) from 2005/09/27.
+;; `textcomp.sty' is a standard LaTeX package and part of TeXLive.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "textcomp"
+ (lambda ()
+   (TeX-add-symbols
+    '("capitalgrave"             0)     ; Type: Accent -- Slot: 0
+    '("capitalacute"             0)     ; Type: Accent -- Slot: 1
+    '("capitalcircumflex"        0)     ; Type: Accent -- Slot: 2
+    '("capitaltilde"             0)     ; Type: Accent -- Slot: 3
+    '("capitaldieresis"          0)     ; Type: Accent -- Slot: 4
+    '("capitalhungarumlaut"      0)     ; Type: Accent -- Slot: 5
+    '("capitalring"              0)     ; Type: Accent -- Slot: 6
+    '("capitalcaron"             0)     ; Type: Accent -- Slot: 7
+    '("capitalbreve"             0)     ; Type: Accent -- Slot: 8
+    '("capitalmacron"            0)     ; Type: Accent -- Slot: 9
+    '("capitaldotaccent"         0)     ; Type: Accent -- Slot: 10
+    '("t"                        0)     ; Type: Accent -- Slot: 26
+    '("capitaltie"               0)     ; Type: Accent -- Slot: 27
+    '("newtie"                   0)     ; Type: Accent -- Slot: 28
+    '("capitalnewtie"            0)     ; Type: Accent -- Slot: 29
+    '("textcapitalcompwordmark"  0)     ; Type: Symbol -- Slot: 23
+    '("textascendercompwordmark" 0)     ; Type: Symbol -- Slot: 31
+    '("textquotestraightbase"    0)     ; Type: Symbol -- Slot: 13
+    '("textquotestraightdblbase" 0)     ; Type: Symbol -- Slot: 18
+    '("texttwelveudash"          0)     ; Type: Symbol -- Slot: 21
+    '("textthreequartersemdash"  0)     ; Type: Symbol -- Slot: 22
+    '("textleftarrow"            0)     ; Type: Symbol -- Slot: 24
+    '("textrightarrow"           0)     ; Type: Symbol -- Slot: 25
+    '("textblank"                0)     ; Type: Symbol -- Slot: 32
+    '("textdollar"               0)     ; Type: Symbol -- Slot: 36
+    '("textquotesingle"          0)     ; Type: Symbol -- Slot: 39
+    '("textasteriskcentered"     0)     ; Type: Symbol -- Slot: 42
+    '("textdblhyphen"            0)     ; Type: Symbol -- Slot: 45
+    '("textfractionsolidus"      0)     ; Type: Symbol -- Slot: 47
+    '("textzerooldstyle"         0)     ; Type: Symbol -- Slot: 48
+    '("textoneoldstyle"          0)     ; Type: Symbol -- Slot: 49
+    '("texttwooldstyle"          0)     ; Type: Symbol -- Slot: 50
+    '("textthreeoldstyle"        0)     ; Type: Symbol -- Slot: 51
+    '("textfouroldstyle"         0)     ; Type: Symbol -- Slot: 52
+    '("textfiveoldstyle"         0)     ; Type: Symbol -- Slot: 53
+    '("textsixoldstyle"          0)     ; Type: Symbol -- Slot: 54
+    '("textsevenoldstyle"        0)     ; Type: Symbol -- Slot: 55
+    '("texteightoldstyle"        0)     ; Type: Symbol -- Slot: 56
+    '("textnineoldstyle"         0)     ; Type: Symbol -- Slot: 57
+    '("textlangle"               0)     ; Type: Symbol -- Slot: 60
+    '("textminus"                0)     ; Type: Symbol -- Slot: 61
+    '("textrangle"               0)     ; Type: Symbol -- Slot: 62
+    '("textmho"                  0)     ; Type: Symbol -- Slot: 77
+    '("textbigcircle"            0)     ; Type: Symbol -- Slot: 79
+    '("textohm"                  0)     ; Type: Symbol -- Slot: 87
+    '("textlbrackdbl"            0)     ; Type: Symbol -- Slot: 91
+    '("textrbrackdbl"            0)     ; Type: Symbol -- Slot: 93
+    '("textuparrow"              0)     ; Type: Symbol -- Slot: 94
+    '("textdownarrow"            0)     ; Type: Symbol -- Slot: 95
+    '("textasciigrave"           0)     ; Type: Symbol -- Slot: 96
+    '("textborn"                 0)     ; Type: Symbol -- Slot: 98
+    '("textdivorced"             0)     ; Type: Symbol -- Slot: 99
+    '("textdied"                 0)     ; Type: Symbol -- Slot: 100
+    '("textleaf"                 0)     ; Type: Symbol -- Slot: 108
+    '("textmarried"              0)     ; Type: Symbol -- Slot: 109
+    '("textmusicalnote"          0)     ; Type: Symbol -- Slot: 110
+    '("texttildelow"             0)     ; Type: Symbol -- Slot: 126
+    '("textdblhyphenchar"        0)     ; Type: Symbol -- Slot: 127
+    '("textasciibreve"           0)     ; Type: Symbol -- Slot: 128
+    '("textasciicaron"           0)     ; Type: Symbol -- Slot: 129
+    '("textacutedbl"             0)     ; Type: Symbol -- Slot: 130
+    '("textgravedbl"             0)     ; Type: Symbol -- Slot: 131
+    '("textdagger"               0)     ; Type: Symbol -- Slot: 132
+    '("textdaggerdbl"            0)     ; Type: Symbol -- Slot: 133
+    '("textbardbl"               0)     ; Type: Symbol -- Slot: 134
+    '("textperthousand"          0)     ; Type: Symbol -- Slot: 135
+    '("textbullet"               0)     ; Type: Symbol -- Slot: 136
+    '("textcelsius"              0)     ; Type: Symbol -- Slot: 137
+    '("textdollaroldstyle"       0)     ; Type: Symbol -- Slot: 138
+    '("textcentoldstyle"         0)     ; Type: Symbol -- Slot: 139
+    '("textflorin"               0)     ; Type: Symbol -- Slot: 140
+    '("textcolonmonetary"        0)     ; Type: Symbol -- Slot: 141
+    '("textwon"                  0)     ; Type: Symbol -- Slot: 142
+    '("textnaira"                0)     ; Type: Symbol -- Slot: 143
+    '("textguarani"              0)     ; Type: Symbol -- Slot: 144
+    '("textpeso"                 0)     ; Type: Symbol -- Slot: 145
+    '("textlira"                 0)     ; Type: Symbol -- Slot: 146
+    '("textrecipe"               0)     ; Type: Symbol -- Slot: 147
+    '("textinterrobang"          0)     ; Type: Symbol -- Slot: 148
+    '("textinterrobangdown"      0)     ; Type: Symbol -- Slot: 149
+    '("textdong"                 0)     ; Type: Symbol -- Slot: 150
+    '("texttrademark"            0)     ; Type: Symbol -- Slot: 151
+    '("textpertenthousand"       0)     ; Type: Symbol -- Slot: 152
+    '("textpilcrow"              0)     ; Type: Symbol -- Slot: 153
+    '("textbaht"                 0)     ; Type: Symbol -- Slot: 154
+    '("textnumero"               0)     ; Type: Symbol -- Slot: 155
+    '("textdiscount"             0)     ; Type: Symbol -- Slot: 156
+    '("textestimated"            0)     ; Type: Symbol -- Slot: 157
+    '("textopenbullet"           0)     ; Type: Symbol -- Slot: 158
+    '("textservicemark"          0)     ; Type: Symbol -- Slot: 159
+    '("textlquill"               0)     ; Type: Symbol -- Slot: 160
+    '("textrquill"               0)     ; Type: Symbol -- Slot: 161
+    '("textcent"                 0)     ; Type: Symbol -- Slot: 162
+    '("textsterling"             0)     ; Type: Symbol -- Slot: 163
+    '("textcurrency"             0)     ; Type: Symbol -- Slot: 164
+    '("textyen"                  0)     ; Type: Symbol -- Slot: 165
+    '("textbrokenbar"            0)     ; Type: Symbol -- Slot: 166
+    '("textsection"              0)     ; Type: Symbol -- Slot: 167
+    '("textasciidieresis"        0)     ; Type: Symbol -- Slot: 168
+    '("textcopyright"            0)     ; Type: Symbol -- Slot: 169
+    '("textordfeminine"          0)     ; Type: Symbol -- Slot: 170
+    '("textcopyleft"             0)     ; Type: Symbol -- Slot: 171
+    '("textlnot"                 0)     ; Type: Symbol -- Slot: 172
+    '("textcircledP"             0)     ; Type: Symbol -- Slot: 173
+    '("textregistered"           0)     ; Type: Symbol -- Slot: 174
+    '("textasciimacron"          0)     ; Type: Symbol -- Slot: 175
+    '("textdegree"               0)     ; Type: Symbol -- Slot: 176
+    '("textpm"                   0)     ; Type: Symbol -- Slot: 177
+    '("texttwosuperior"          0)     ; Type: Symbol -- Slot: 178
+    '("textthreesuperior"        0)     ; Type: Symbol -- Slot: 179
+    '("textasciiacute"           0)     ; Type: Symbol -- Slot: 180
+    '("textmu"                   0)     ; Type: Symbol -- Slot: 181
+    '("textparagraph"            0)     ; Type: Symbol -- Slot: 182
+    '("textperiodcentered"       0)     ; Type: Symbol -- Slot: 183
+    '("textreferencemark"        0)     ; Type: Symbol -- Slot: 184
+    '("textonesuperior"          0)     ; Type: Symbol -- Slot: 185
+    '("textordmasculine"         0)     ; Type: Symbol -- Slot: 186
+    '("textsurd"                 0)     ; Type: Symbol -- Slot: 187
+    '("textonequarter"           0)     ; Type: Symbol -- Slot: 188
+    '("textonehalf"              0)     ; Type: Symbol -- Slot: 189
+    '("textthreequarters"        0)     ; Type: Symbol -- Slot: 190
+    '("texteuro"                 0)     ; Type: Symbol -- Slot: 191
+    '("texttimes"                0)     ; Type: Symbol -- Slot: 214
+    '("textdiv"                  0)     ; Type: Symbol -- Slot: 246
+    '("textcircled"              1)     ; Type: Command -- Slot: N/A
+    '("capitalcedilla"           1)     ; Type: Command -- Slot: N/A
+    '("capitalogonek"            1)     ; Type: Command -- Slot: N/A
+    '("oldstylenums" "Numbers"    ))    ; Type: Command -- Slot: N/A
+
+   ;; Fontification
+   (when (and (featurep 'font-latex)
+              (eq TeX-install-font-lock 'font-latex-setup))
+     (font-latex-add-keywords '(("oldstylenums"  "{"))
+                              'italic-declaration)))
+ LaTeX-dialect)
+
+(defvar LaTeX-textcomp-package-options 
+  '("full" "almostfull" "euro" "safe" "force" "warn")
+  "Package options for the textcomp package.")
+
+;;; textcomp.el ends here
diff --git a/style/zlmtt.el b/style/zlmtt.el
new file mode 100644
index 0000000..903fba0
--- /dev/null
+++ b/style/zlmtt.el
@@ -0,0 +1,58 @@
+;;; zlmtt.el --- AUCTeX style for `zlmtt.sty' (v1.01)
+
+;; Copyright (C) 2014 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <esbati'at'gmx.de>
+;; Maintainer: address@hidden
+;; Created: 2014-10-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 `zlmtt.sty' (v1.01) from 2014/06/28.
+;; `zlmtt.sty' is part of TeXLive.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "zlmtt"
+ (lambda ()
+
+   ;; New symbols
+   (TeX-add-symbols
+    '("proptt" t)   ; proportional typewriter
+    '("monott" t)   ; monospace typewriter
+    '("lctt"   t))  ; light condensed typewriter
+
+   ;; Fontification
+   (when (and (featurep 'font-latex)
+              (eq TeX-install-font-lock 'font-latex-setup))
+     (font-latex-add-keywords '(("proptt"   "{")
+                                ("monott"   "{")
+                                ("lctt"     "{"))
+                              'textual)))
+ LaTeX-dialect)
+
+(defvar LaTeX-zlmtt-package-options
+  '("light" "l" "lightcondensed" "lc" "med" "m"
+    "proportional" "p" "scaled")
+  "Package options for the zlmtt package.")
+
+;;; zlmtt.el ends here
-- 
2.1.3




reply via email to

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