2022-11-08 03:31:08 +00:00
|
|
|
;;; ifluatex.el --- AUCTeX style for `ifluatex.sty' version 1.5. -*- lexical-binding: t; -*-
|
2022-08-25 17:42:37 +00:00
|
|
|
|
2022-11-08 03:31:08 +00:00
|
|
|
;; Copyright (C) 2014--2022 Free Software Foundation, Inc.
|
2022-08-25 17:42:37 +00:00
|
|
|
|
2022-11-08 03:31:08 +00:00
|
|
|
;; Author: Davide G. M. Salvetti <salve@debian.org>
|
2022-08-25 17:42:37 +00:00
|
|
|
;; Maintainer: auctex-devel@gnu.org
|
2022-11-08 03:31:08 +00:00
|
|
|
;; Created: 2014-11-15
|
2022-08-25 17:42:37 +00:00
|
|
|
;; 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:
|
|
|
|
|
2022-11-08 03:31:08 +00:00
|
|
|
;; This file adds support for `ifluatex.sty' 1.5. The package is now
|
|
|
|
;; part of 'iftex' bundle and therefore, the code is now in
|
|
|
|
;; 'iftex.el'.
|
2022-08-25 17:42:37 +00:00
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
|
|
|
|
(require 'tex)
|
|
|
|
|
|
|
|
;; Silence the compiler:
|
|
|
|
(declare-function font-latex-add-keywords
|
|
|
|
"font-latex"
|
|
|
|
(keywords class))
|
|
|
|
|
|
|
|
(TeX-add-style-hook
|
2022-11-08 03:31:08 +00:00
|
|
|
"ifluatex"
|
2022-08-25 17:42:37 +00:00
|
|
|
(lambda ()
|
2022-11-08 03:31:08 +00:00
|
|
|
|
|
|
|
;; Run the style hook for 'iftex' which does the work:
|
|
|
|
(TeX-run-style-hooks "iftex")
|
|
|
|
|
2022-08-25 17:42:37 +00:00
|
|
|
(TeX-add-symbols
|
2022-11-08 03:31:08 +00:00
|
|
|
'("luatexversion" 0)
|
|
|
|
'("luatexrevision" 0))
|
|
|
|
|
|
|
|
(TeX-declare-expert-macros
|
|
|
|
"ifluatex"
|
|
|
|
"luatexversion" "luatexrevision")
|
2022-08-25 17:42:37 +00:00
|
|
|
|
|
|
|
(when (and (featurep 'font-latex)
|
|
|
|
(eq TeX-install-font-lock 'font-latex-setup))
|
2022-11-08 03:31:08 +00:00
|
|
|
(font-latex-add-keywords '(("luatexversion")
|
|
|
|
("luatexrevision"))
|
2022-08-25 17:42:37 +00:00
|
|
|
'function)))
|
|
|
|
TeX-dialect)
|
|
|
|
|
2022-11-08 03:31:08 +00:00
|
|
|
(defvar LaTeX-ifluatex-package-options nil
|
|
|
|
"Package options for the ifluatex package.")
|
2022-08-25 17:42:37 +00:00
|
|
|
|
2022-11-08 03:31:08 +00:00
|
|
|
;;; ifluatex.el ends here
|