1 ;;; units.el --- AUCTeX style for the LaTeX package `units.sty' (v0.9b)
3 ;; Copyright (C) 2004, 2005 Free Software Foundation, Inc.
5 ;; Author: Christian Schlauer <cschl@arcor.de>
6 ;; Maintainer: auctex-devel@gnu.org
9 ;; This file is part of AUCTeX.
11 ;; AUCTeX is free software; you can redistribute it and/or modify it
12 ;; under the terms of the GNU General Public License as published by
13 ;; the Free Software Foundation; either version 3, or (at your option)
16 ;; AUCTeX is distributed in the hope that it will be useful, but
17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 ;; General Public License for more details.
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with AUCTeX; see the file COPYING. If not, write to the Free
23 ;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
28 ;; This file adds support for `units.sty'.
36 '("unit" [ "Value" ] "Unit")
37 '("unitfrac" [ "Value" ] "Unit in numerator" "Unit in denominator"))
38 ;; units.sty requires the package nicefrac.sty, thus we enable the
39 ;; macros of nicefrac.sty, too
40 (TeX-run-style-hooks "nicefrac")
42 (when (and (featurep 'font-latex)
43 (eq TeX-install-font-lock 'font-latex-setup))
44 (font-latex-add-keywords '(("unit" "[{") ("unitfrac" "[{{")) 'textual))))
46 (defvar LaTeX-units-package-options '("tight" "loose")
47 "Package options for the units package.")
49 ;;; units.el ends here