1 ;;; sourcecodepro.el --- AUCTeX style for `sourcecodepro.sty' (v2.6)
3 ;; Copyright (C) 2017 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 `sourcecodepro.sty' (v2.6) from 2016/04/18.
30 ;; `sourcecodepro.sty' is part of TeXLive.
38 ;; Load "fontspec" with package options "opentype" or "otf":
39 (when (or (LaTeX-provided-package-options-member "sourcecodepro" "opentype")
40 (LaTeX-provided-package-options-member "sourcecodepro" "opentype=true")
41 (LaTeX-provided-package-options-member "sourcecodepro" "otf")
42 (LaTeX-provided-package-options-member "sourcecodepro" "otf=true"))
43 (TeX-run-style-hooks "fontspec"))
45 ;; The next set of macros is only available when package "fontspec"
46 ;; is loaded, by this style or by user. We just check against
47 ;; "fontspec" and do not go through a check of `TeX-engine':
48 (when (member "fontspec" (TeX-style-list))
51 '("sourcecodepromedium" -1)
52 '("sourcecodeprolight" -1)
53 '("sourcecodeproextreme" -1)
54 '("sourcecodeprolf" -1)))
57 (when (and (featurep 'font-latex)
58 (eq TeX-install-font-lock 'font-latex-setup)
59 (member "fontspec" (TeX-style-list)))
60 (font-latex-add-keywords '(("sourcecodepro" "")
61 ("sourcecodepromedium" "")
62 ("sourcecodeprolight" "")
63 ("sourcecodeproextreme" "")
64 ("sourcecodeprolf" ""))
68 (defvar LaTeX-sourcecodepro-package-options
71 "black" "semibold" "bold"
75 "default" "ttdefault" "nottdefault"
78 "Prompt for package options for the sourcecodepro package.")
80 ;;; sourcecodepro.el ends here