1 ;;; Alegreya.el --- AUCTeX style for `Alegreya.sty' (v2015/10/22)
3 ;; Copyright (C) 2015 Free Software Foundation, Inc.
5 ;; Author: Arash Esbati <arash@gnu.org>
6 ;; Maintainer: auctex-devel@gnu.org
10 ;; This file is part of AUCTeX.
12 ;; AUCTeX is free software; you can redistribute it and/or modify it
13 ;; under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation; either version 3, or (at your option)
17 ;; AUCTeX is distributed in the hope that it will be useful, but
18 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 ;; General Public License for more details.
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with AUCTeX; see the file COPYING. If not, write to the Free
24 ;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
29 ;; This file adds support for `Alegreya.sty' (v2015/10/22).
30 ;; `Alegreya.sty' is part of TeXLive.
38 ;; Run style hook for packages loaded by Alegreya
39 (TeX-run-style-hooks "textcomp")
41 ;; Load `fontaxes' or `fontspec' dep. on `type1' option:
42 (if (or (LaTeX-provided-package-options-member "Alegreya" "type1")
43 (LaTeX-provided-package-options-member "Alegreya" "type1=true"))
44 (TeX-run-style-hooks "fontaxes")
45 (TeX-run-style-hooks "fontspec"))
48 ;; Should be used in preamble only
57 '("textsu" t) ; superior figures
59 '("textin" t) ; inferior figures
63 (when (and (featurep 'font-latex)
64 (eq TeX-install-font-lock 'font-latex-setup))
65 (font-latex-add-keywords '(("textsu" "{")
68 (font-latex-add-keywords '(("Alegreya" "")
79 (defvar LaTeX-Alegreya-package-options-list
80 '(("lining" ("true" "false"))
81 ("lf" ("true" "false"))
82 ("oldstyle" ("true" "false"))
83 ("osf" ("true" "false"))
84 ("tabular" ("true" "false"))
85 ("tf" ("true" "false"))
86 ("proportional" ("true" "false"))
87 ("pf" ("true" "false"))
88 ("black" ("true" "false"))
89 ("type1" ("true" "false"))
92 "Package options for the Alegreya package.")
94 (defun LaTeX-Alegreya-package-options ()
95 "Prompt for package options for the Alegreya package."
96 (TeX-read-key-val t LaTeX-Alegreya-package-options-list))
98 ;;; Alegreya.el ends here