[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 04/299: * style/bm.el: New style by Mosè Giordano <address@hidd
From: |
Stefan Monnier |
Subject: |
[elpa] 04/299: * style/bm.el: New style by Mosè Giordano <address@hidden>. * style/siunitx.el: Ditto. |
Date: |
Sun, 02 Nov 2014 03:09:48 +0000 |
monnier pushed a commit to branch externals/auctex
in repository elpa.
commit 5e858fc31f4c54ee9337b7e65451a6dcdb8f5f37
Author: Tassilo Horn <address@hidden>
Date: Fri Dec 21 16:14:52 2012 +0000
* style/bm.el: New style by Mosè Giordano <address@hidden>.
* style/siunitx.el: Ditto.
---
ChangeLog | 6 +
style/bm.el | 54 +++++++++
style/siunitx.el | 352 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 412 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 54166b5..a3a9188 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-12-21 Tassilo Horn <address@hidden>
+
+ * style/bm.el: New style by Mos� Giordano <address@hidden>.
+
+ * style/siunitx.el: Ditto.
+
2012-12-20 Tassilo Horn <address@hidden>
* tex-bar.el (TeX-bar-LaTeX-buttons, TeX-bar-LaTeX-button-alist):
diff --git a/style/bm.el b/style/bm.el
new file mode 100644
index 0000000..565095c
--- /dev/null
+++ b/style/bm.el
@@ -0,0 +1,54 @@
+;;; bm.el --- AUCTeX style for `bm.sty'.
+
+;; Copyright (C) 2012 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 `bm.sty'.
+
+;;; Code:
+
+(TeX-add-style-hook "bm"
+ (lambda ()
+ (TeX-add-symbols
+ '("bm" 1)
+ '("hm" 1)
+ '("DeclareBoldMathCommand" [ "Math version" ] TeX-arg-define-macro "Math
expression")
+ '("bmdefine" TeX-arg-define-macro "Math expression")
+ '("hmdefine" TeX-arg-define-macro "Math expression"))
+ ;; Fontification
+ (when (and (featurep 'font-latex)
+ (eq TeX-install-font-lock 'font-latex-setup))
+ (font-latex-add-keywords '(("bm" "{")
+ ("hm" "{"))
+ 'bold-command)
+ (font-latex-add-keywords '(("DeclareBoldMathCommand" "[|{\\{")
+ ("bmdefine" "|{\\{")
+ ("hmdefine" "|{\\{"))
+ 'function))))
+
+(defvar LaTeX-bm-package-options nil
+ "Package options for the bm package.")
+
+;; bm.el ends here
diff --git a/style/siunitx.el b/style/siunitx.el
new file mode 100644
index 0000000..8ba6dce
--- /dev/null
+++ b/style/siunitx.el
@@ -0,0 +1,352 @@
+;;; siunitx.el --- AUCTeX style for `siunitx.sty' version 2.5m.
+
+;; Copyright (C) 2012 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 `siunitx.sty' version 2.5m.
+
+;;; Code:
+
+(TeX-add-style-hook "siunitx"
+ (lambda ()
+ (TeX-add-symbols
+ ;; Numbers
+ '("ang" [ "Options" ] "Angle")
+ '("num" [ "Options" ] "Number")
+ '("numlist" [ "Options" ] "Numbers")
+ '("numrange" [ "Options" ] "Number 1" "Number 2")
+ ;; Units
+ '("si" [ "Options" ] "Unit")
+ '("SI" [ "Options" ] "Value" [ "Pre-unit"] "Unit")
+ '("SIlist" [ "Options" ] "Values" "Unit")
+ '("SIrange" [ "Options" ] "Value 1" "Value 2" "Unit")
+ ;; Settings
+ '("sisetup" "Options")
+ ;; Tabular material
+ '("tablenum" [ "Options" ] "Number")
+ ;; Creating new macros (`DeclareSIUnitWithOptions' macro is deprecated)
+ '("DeclareSIUnit" [ "Options" ] (TeX-arg-define-macro "Unit: \\") "Symbol")
+ '("DeclareSIPrefix" (TeX-arg-define-macro "Prefix: \\") "Symbol" "Powers
of 10")
+ '("DeclareBinaryPrefix" (TeX-arg-define-macro "Prefix: \\") "Symbol"
"Powers of 2")
+ '("DeclareSIPostPower" (TeX-arg-define-macro "Name: \\") "Power")
+ '("DeclareSIPrePower" (TeX-arg-define-macro "Name: \\") "Power")
+ '("DeclareSIQualifier" (TeX-arg-define-macro "Qualifier: \\") "Symbol")
+ ;;; The unit macros
+ ;; SI base units
+ '("ampere" 0)
+ '("candela" 0)
+ '("kelvin" 0)
+ '("kilogram" 0)
+ '("meter" 0)
+ '("metre" 0)
+ '("second" 0)
+ ;; Coherent derived units in the SI with special names and symbols
+ '("becquerel" 0)
+ '("celsius" 0)
+ '("degreeCelsius" 0)
+ '("coulomb" 0)
+ '("farad" 0)
+ '("gray" 0)
+ '("hertz" 0)
+ '("henry" 0)
+ '("joule" 0)
+ '("katal" 0)
+ '("lumen" 0)
+ '("lux" 0)
+ '("newton" 0)
+ '("ohm" 0)
+ '("pascal" 0)
+ '("radians" 0)
+ '("siemens" 0)
+ '("sievert" 0)
+ '("steradian" 0)
+ '("tesla" 0)
+ '("volt" 0)
+ '("watt" 0)
+ '("weber" 0)
+ ;; Non-SI units accepted for use with the International System of Units
+ '("day" 0)
+ '("degree" 0)
+ '("hectare" 0)
+ '("hour" 0)
+ '("liter" 0)
+ '("litre" 0)
+ '("arcminute" 0)
+ '("minute" 0)
+ '("arcsecond" 0)
+ '("tonne" 0)
+ ;; Non-SI units whose values in SI units must be obtained experimentally
+ '("astronomicalunit" 0)
+ '("atomicmassunit" 0)
+ '("bohr" 0)
+ '("clight" 0)
+ '("dalton" 0)
+ '("electronmass" 0)
+ '("electronvolt" 0)
+ '("elementarycharge" 0)
+ '("hartree" 0)
+ '("planckbar" 0)
+ ;; Other non-SI units.
+ '("angstrom" 0)
+ '("bar" 0)
+ '("barn" 0)
+ '("bel" 0)
+ '("decibel" 0)
+ '("knot" 0)
+ '("mmHg" 0)
+ '("nauticalmile" 0)
+ '("neper" 0)
+ '("percent" 0)
+ ;; SI prefixes
+ '("yocto" 0)
+ '("zepto" 0)
+ '("atto" 0)
+ '("femto" 0)
+ '("pico" 0)
+ '("nano" 0)
+ '("micro" 0)
+ '("milli" 0)
+ '("centi" 0)
+ '("deci" 0)
+ '("deca" 0)
+ '("deka" 0)
+ '("hecto" 0)
+ '("kilo" 0)
+ '("mega" 0)
+ '("giga" 0)
+ '("tera" 0)
+ '("peta" 0)
+ '("exa" 0)
+ '("zetta" 0)
+ '("yotta" 0)
+ ;; Powers
+ '("square" 0)
+ '("squared" 0)
+ '("cubic" 0)
+ '("cubed" 0)
+ '("tothe" 0)
+ '("raiseto" 0)
+ '("per" 0)
+ '("of" 0)
+ ;; Highlighting
+ '("highlight" "Color")
+ ;; Abbreviated units (available unless `abbreviations' option is set to
`false')
+ '("fg" 0)
+ '("pg" 0)
+ '("ng" 0)
+ '("ug" 0)
+ '("mg" 0)
+ '("g" 0)
+ '("kg" 0)
+ '("amu" 0)
+ '("pm" 0)
+ '("nm" 0)
+ '("um" 0)
+ '("mm" 0)
+ '("cm" 0)
+ '("dm" 0)
+ '("m" 0)
+ '("km" 0)
+ '("as" 0)
+ '("fs" 0)
+ '("ps" 0)
+ '("ns" 0)
+ '("us" 0)
+ '("ms" 0)
+ '("s" 0)
+ '("fmol" 0)
+ '("pmol" 0)
+ '("nmol" 0)
+ '("umol" 0)
+ '("mmol" 0)
+ '("mol" 0)
+ '("kmol" 0)
+ '("pA" 0)
+ '("nA" 0)
+ '("uA" 0)
+ '("mA" 0)
+ '("A" 0)
+ '("kA" 0)
+ '("ul" 0)
+ '("ml" 0)
+ '("l" 0)
+ '("hl" 0)
+ '("uL" 0)
+ '("mL" 0)
+ '("L" 0)
+ '("hL" 0)
+ '("mHz" 0)
+ '("Hz" 0)
+ '("kHz" 0)
+ '("MHz" 0)
+ '("GHz" 0)
+ '("THz" 0)
+ '("N" 0)
+ '("mN" 0)
+ '("kN" 0)
+ '("MN" 0)
+ '("Pa" 0)
+ '("kPa" 0)
+ '("MPa" 0)
+ '("GPa" 0)
+ '("mohm" 0)
+ '("kohm" 0)
+ '("Mohm" 0)
+ '("pV" 0)
+ '("nV" 0)
+ '("uV" 0)
+ '("mV" 0)
+ '("V" 0)
+ '("kV" 0)
+ '("uW" 0)
+ '("mW" 0)
+ '("W" 0)
+ '("kW" 0)
+ '("MW" 0)
+ '("GW" 0)
+ '("J" 0)
+ '("kJ" 0)
+ '("meV" 0)
+ '("keV" 0)
+ '("MeV" 0)
+ '("GeV" 0)
+ '("TeV" 0)
+ '("kWh" 0)
+ '("F" 0)
+ '("fF" 0)
+ '("pF" 0)
+ '("K" 0)
+ '("dB" 0)
+ ;; Binary prefixes and units available when `binary-units' option is used
+ '("kibi" 0)
+ '("mebi" 0)
+ '("gibi" 0)
+ '("tebi" 0)
+ '("pebi" 0)
+ '("exbi" 0)
+ '("zebi" 0)
+ '("yobi" 0)
+ '("bit" 0)
+ '("byte" 0)
+ ;; Symbols
+ '("SIUnitSymbolAngstrom" 0)
+ '("SIUnitSymbolArcminute" 0)
+ '("SIUnitSymbolArcsecond" 0)
+ '("SIUnitSymbolCelsius" 0)
+ '("SIUnitSymbolDegree" 0)
+ '("SIUnitSymbolMicro" 0)
+ '("SIUnitSymbolOhm" 0)
+ ;; Macros available when `version-1-compatibility' option is used
+ '("Square" 0)
+ '("ssquare" 0)
+ '("BAR" 0)
+ '("bbar" 0)
+ '("Day" 0)
+ '("dday" 0)
+ '("Gray" 0)
+ '("ggray" 0)
+ '("atomicmass" 0)
+ '("arcmin" 0)
+ '("arcsec" 0)
+ '("are" 0)
+ '("curie" 0)
+ '("gal" 0)
+ '("millibar" 0)
+ '("rad" 0)
+ '("rem" 0)
+ '("roentgen" 0)
+ '("micA" 0)
+ '("micmol" 0)
+ '("micl" 0)
+ '("micL" 0)
+ '("nanog" 0)
+ '("micg" 0)
+ '("picm" 0)
+ '("micm" 0)
+ '("Sec" 0)
+ '("mics" 0)
+ '("cmc" 0)
+ '("dmc" 0)
+ '("cms" 0)
+ '("centimetrecubed" 0)
+ '("centimetresquared" 0)
+ '("cubiccentimetre" 0)
+ '("cubicdecimetre" 0)
+ '("squarecentimetre" 0)
+ '("squaremetre" 0)
+ '("squarekilometre" 0)
+ '("parsec" 0)
+ '("lightyear" 0)
+ '("gmol" 0)
+ '("kgmol" 0)
+ '("lbmol" 0)
+ '("molar" 0)
+ '("Molar" 0)
+ '("torr" 0)
+ '("gon" 0)
+ '("micron" 0)
+ '("mrad" 0)
+ '("gauss" 0)
+ '("eVperc" 0)
+ '("nanobarn" 0)
+ '("picobarn" 0)
+ '("femtobarn" 0)
+ '("attobarn" 0)
+ '("zeptobarn" 0)
+ '("yoctobarn" 0)
+ '("nb" 0)
+ '("pb" 0)
+ '("fb" 0)
+ '("ab" 0)
+ '("zb" 0)
+ '("yb" 0))
+ (TeX-run-style-hooks "l3keys2e"
+ "array"
+ "amstext"
+ "xparse"
+ "expl3")
+ ;; Fontification
+ (when (and (featurep 'font-latex)
+ (eq TeX-install-font-lock 'font-latex-setup))
+ (font-latex-add-keywords '(("ang" "[{")
+ ("num" "[{")
+ ("si" "[{")
+ ("SI" "[{[{")
+ ("numlist" "[{")
+ ("numrange" "[{{")
+ ("SIlist" "[{{")
+ ("SIrange" "[{{{")
+ ("sisetup" "{")
+ ("tablenum" "[{")
+ ("DeclareSIUnit" "[|{\\{")
+ ("DeclareSIPrefix" "|{\\{{")
+ ("DeclareBinaryPrefix" "|{\\{{")
+ ("DeclareSIPostPower" "|{\\{")
+ ("DeclareSIPrePower" "|{\\{")
+ ("DeclareSIQualifier" "|{\\{")
+ ("highlight" "{"))
+ 'function))))
+
+;; siunitx.el ends here
- [elpa] 18/299: * style/afterpage.el: New style by Mads Jensen <address@hidden>., (continued)
- [elpa] 18/299: * style/afterpage.el: New style by Mads Jensen <address@hidden>., Stefan Monnier, 2014/11/01
- [elpa] 10/299: * amsmath.el ("amsmath"): Add support for the alignedat and subarray environments. Also, add support for the shoveright and shoveleft macros. * font-latex.el (font-latex-math-environments): Add "xxalignat" and "flalign"., Stefan Monnier, 2014/11/01
- [elpa] 08/299: * style/ragged2e.el: New style by Mads Jensen <address@hidden>. * style/mathtools.el: Ditto. * style/everysel.el: Ditto. * style/bigstrut.el: Ditto. * style/bigdelim.el: Ditto., Stefan Monnier, 2014/11/01
- [elpa] 19/299: * ChangeLog: Move name of style file contributors to head of ChangLog entries., Stefan Monnier, 2014/11/01
- [elpa] 21/299: * style/footmisc.el ("footmisc"): Remove fontification settings for length macros., Stefan Monnier, 2014/11/01
- [elpa] 06/299: * latex.el (LaTeX-math-default): Added unicode character position to some entries and "mathring" entry. (LaTeX-common-initialization): Added support for accent macros \hat, \dot etc and \textasteriskcentered., Stefan Monnier, 2014/11/01
- [elpa] 16/299: * latex.el (LaTeX-pagestyle-list): New variable. (TeX-arg-pagestyle): Use it. * style/imakeidx.el: New style by Mosè Giordano <address@hidden>., Stefan Monnier, 2014/11/01
- [elpa] 22/299: * style/epigraph.el ("epigraph"): Do not quote list entries for `font-latex-add-keywords'., Stefan Monnier, 2014/11/01
- [elpa] 20/299: * style/mathtools.el ("mathtools"): Append amsmath options to mathtools option after the amsmath style file has been loaded. Remove `function' wrapper., Stefan Monnier, 2014/11/01
- [elpa] 12/299: * style/siunitx.el (LaTeX-siunitx-package-options): New variable. ("siunitx"): Use it. * style/hyperref.el (LaTeX-hyperref-href-options): New variable. (LaTeX-hyperref-package-options, "hyperref"): Use it., Stefan Monnier, 2014/11/01
- [elpa] 04/299: * style/bm.el: New style by Mosè Giordano <address@hidden>. * style/siunitx.el: Ditto.,
Stefan Monnier <=
- [elpa] 03/299: * tex-bar.el (TeX-bar-LaTeX-buttons, TeX-bar-LaTeX-button-alist): Also add spell button., Stefan Monnier, 2014/11/01
- [elpa] 27/299: * latex.el (TeX-arg-environment): Fix typo., Stefan Monnier, 2014/11/01
- [elpa] 25/299: * tex.el (TeX-command-list): Add command to run ChkTeX., Stefan Monnier, 2014/11/01
- [elpa] 23/299: * latex.el (LaTeX-env-document): Only insert \documentclass in case the document does not already contain one., Stefan Monnier, 2014/11/01
- [elpa] 26/299: * latex.el: Update copyright range. (LaTeX-auto-pagestyle-regexp-list): New variable. (LaTeX-auto-regexp-list): Use `LaTeX-auto-pagestyle-regexp-list'. ("pagestyle"): New type for the parser. (LaTeX-pagestyle-list): Remove. (TeX-arg-pagestyle): Use `LaTeX-pagestyle-list' function for completing. (LaTeX-common-initialization): Initialize pagestyles. * style/imakeidx.el: Use `LaTeX-pagestyle-list' function to set `firstpagestyle' option values., Stefan Monnier, 2014/11/01
- [elpa] 24/299: * Makefile.in (STYLESRC): Add new style files kantlipsum.el, lipsum.el, and longtable.el. * style/kantlipsum.el: New style. * style/lipsum.el: Ditto. * style/longtable.el: Ditto, Stefan Monnier, 2014/11/01
- [elpa] 29/299: * style/pstricks.el (LaTeX-pstricks-package-options): New variable., Stefan Monnier, 2014/11/01
- [elpa] 28/299: * Makefile.in (STYLESRC): Enable memoir.el style. * style/memoir.el: New style., Stefan Monnier, 2014/11/01
- [elpa] 32/299: * style/ulem.el (LaTeX-arg-fontdecl, LaTeX-arg-fontcmd): Fix declarations., Stefan Monnier, 2014/11/01
- [elpa] 34/299: Fix previous change to auctex.texi., Stefan Monnier, 2014/11/01