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

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

[elpa] externals/auctex bb195ae 15/28: Add new style file for mnras clas


From: Tassilo Horn
Subject: [elpa] externals/auctex bb195ae 15/28: Add new style file for mnras class.
Date: Fri, 07 Aug 2015 15:59:22 +0000

branch: externals/auctex
commit bb195aee193724df8b23c4d16808984e325d4594
Author: Mosè Giordano <address@hidden>
Commit: Mosè Giordano <address@hidden>

    Add new style file for mnras class.
    
    * style/mnras.el: New style file.
    
    * Makefile.in (STYLESRC): Activate it.
---
 ChangeLog      |    8 ++-
 Makefile.in    |    3 +-
 style/mnras.el |  176 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 185 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index c64649b..77d25cd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-06-21  Mos� Giordano  <address@hidden>
+
+       * style/mnras.el: New style file.
+
+       * Makefile.in (STYLESRC): Activate it.
+
 2015-06-14  Arash Esbati  <address@hidden>
 
        * style/pdfpages.el ("pdfpages"): Restrict suggested files to
@@ -8,7 +14,7 @@
 
        * tex-buf.el (TeX-LaTeX-sentinel-has-warnings, TeX-parse-error):
        Cater for packages with digits in their names (e.g., fixltx2e,
-       wich emits a warning from TeX Live 2015).
+       which emits a warning from TeX Live 2015).
 
 2015-06-09  Tassilo Horn  <address@hidden>
 
diff --git a/Makefile.in b/Makefile.in
index 069a847..f365af7 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -148,7 +148,8 @@ STYLESRC = style/prosper.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/newpxtext.el style/newpxmath.el style/pdfpages.el
+          style/newpxtext.el style/newpxmath.el style/pdfpages.el \
+          style/mnras.el
 
 STYLEELC = $(STYLESRC:.el=.elc)
 
diff --git a/style/mnras.el b/style/mnras.el
new file mode 100644
index 0000000..9f2ab33
--- /dev/null
+++ b/style/mnras.el
@@ -0,0 +1,176 @@
+;;; mnras.el --- AUCTeX style for `mnras.cls' version 3.0.
+
+;; Copyright (C) 2015 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 `mnras.cls' version 3.0.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "mnras"
+ (lambda ()
+   (if (LaTeX-provided-class-options-member "mnras" "usegraphicx")
+       (TeX-run-style-hooks "graphicx"))
+   (if (LaTeX-provided-class-options-member "mnras" "usenatbib")
+       (TeX-run-style-hooks "natbib"))
+   (if (LaTeX-provided-class-options-member "mnras" "usedcolumn")
+       (TeX-run-style-hooks "dcolumn"))
+   (TeX-run-style-hooks
+    "geometry"
+    "fixltx2e"
+    "hyperref")
+   (TeX-add-symbols
+    ;; 5  Title page
+    '("title" ["Short title"] "Long title")
+    '("author" ["Short author(s)"] (LaTeX-arg-author "Long author(s)"))
+    "newauthor"
+    ;; 7.2  Special symbols
+    '("bmath" 1)
+    '("mathbfit" 1)
+    '("mathbfss" 1)
+    ;; 7.2  Special symbols -- Table 1
+    "sun"
+    "earth"
+    "degr"
+    "diameter"
+    "sq"
+    "fd"
+    "fh"
+    "fm"
+    "fs"
+    "fdg"
+    "farcm"
+    "farcs"
+    "fp"
+    "arcmin"
+    "arcsec"
+    "micron"
+    ;; 7.2  Special symbols -- Table 2
+    "upi"
+    "umu"
+    "upartial"
+    "leqslant"
+    "geqslant"
+    "la"
+    "ga"
+    "getsto"
+    "cor"
+    "lid"
+    "gid"
+    "sol"
+    "sog"
+    "lse"
+    "gse"
+    "grole"
+    "leogr"
+    "loa"
+    "goa"
+    ;; 7.3  Ions
+    '("ion" 2)
+    ;; A  Journal abbreviations -- Table A1 
+    "aap"
+    "astap"
+    "aapr"
+    "aaps"
+    "actaa"
+    "afz"
+    "aj"
+    "ao"
+    "applopt"
+    "aplett"
+    "apj"
+    "apjl"
+    "apjlett"
+    "apjs"
+    "apjsupp"
+    "apss"
+    "araa"
+    "arep"
+    "aspc"
+    "azh"
+    "baas"
+    "bac"
+    "bain"
+    "caa"
+    "cjaa"
+    "fcp"
+    "gca"
+    "grl"
+    "iaucirc"
+    "icarus"
+    "japa"
+    "jcap"
+    "jcp"
+    "jgr"
+    "jqsrt"
+    "jrasc"
+    "memras"
+    "memsai"
+    "mnassa"
+    "na"
+    "nar"
+    "nat"
+    "nphysa"
+    "pra"
+    "prb"
+    "prc"
+    "prd"
+    "pre"
+    "prl"
+    "pasa"
+    "pasp"
+    "pasj"
+    "physrep"
+    "physscr"
+    "planss"
+    "procspie"
+    "rmxaa"
+    "qjras"
+    "sci"
+    "skytel"
+    "solphys"
+    "sovast"
+    "ssr"
+    "zap")
+   
+   (LaTeX-add-environments
+    "keywords"
+    "proof")
+
+   ;; Fontification
+   (when (and (featurep 'font-latex)
+             (eq TeX-install-font-lock 'font-latex-setup))
+     (font-latex-add-keywords '(("author" "[{")
+                               ("title" "[{")
+                               ("newauthor"))
+                             'function))))
+
+(defvar LaTeX-mnras-class-options
+  '("letters"  "onecolumn" "doublespacing" "referee" "galley" "landscape"
+    "usenatbib" "usegraphicx" "useAMS" "usedcolumn")
+  "Package options for the mnras package.")
+
+;; mnras.el ends here



reply via email to

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