;;; langscibook.el --- AUCTeX style for `langscibook.sty'   -*- lexical-binding: t; -*-

;;; Code:

(TeX-add-style-hook
 "langscibook"
 (lambda ()

   (TeX-check-engine-add-engines 'xetex)
   (TeX-run-style-hooks "scrbook")

   (TeX-add-symbols
    '("BackBody" t)
    '("BackTitle" t)
    '("BookDOI" "DOI"))

   ;; Fontification
   (when (and (featurep 'font-latex)
              (eq TeX-install-font-lock 'font-latex-setup))
     (font-latex-add-keywords '(("BackBody" "{")
                                ("BackTitle" "{")
                                ("BookDOI" "{"))
                              'function)))
 TeX-dialect)

(defun LaTeX-langscibook-class-options ()
  "Class options for the langscibook class."
  (TeX-load-style "babel")
  (TeX-read-key-val t `(("collection")
                        ("draftmode")
                        ("openreview")
                        ("minimal")
                        ("nobabel")
                        ("showindex")
                        ("chinesefont")
                        ("japanesefont")
                        ("hebrewfont")
                        ("arabicfont")
                        ("syriacfont")
                        ("output" ("book" "paper" "minimal" "guidelines"))
                        ("booklanguage" ,LaTeX-babel-language-list)
                        ("copyright" ("CC-BY")))))

;;; langscibook.el ends here
