From 251d753e51b64bdfda0bae01ef205758843506dc Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Tue, 28 Aug 2018 12:43:19 +0200 Subject: more refined AUCTeX style file --- arabluatex.el | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'arabluatex.el') diff --git a/arabluatex.el b/arabluatex.el index 1acf59b..d8e8dff 100644 --- a/arabluatex.el +++ b/arabluatex.el @@ -21,10 +21,20 @@ ;; along with this program. If not, see ;; . -(defvar LaTeX-arabluatex-package-options - '("voc" "fullvoc" "novoc" "trans" "export") +(defvar LaTeX-arabluatex-preamble-options + '(;; + ("voc") + ("fullvoc") + ("novoc") + ("trans") + ("export" ("true" "false"))) "Package options for the arabluatex package.") +(defun LaTeX-arabluatex-package-options () + "Prompt for package options for arabluatex package." + (TeX-read-key-val t + (append LaTeX-arabluatex-preamble-options))) + (defvar LaTeX-arabluatex-mode-options '(;; ("voc") @@ -43,7 +53,7 @@ ("color") ("delim" ("true" "false")) ("utf" ("true" "false")) - ("export")) + ("export" ("true" "false"))) "Key=value options for arabverse environment.") (defvar LaTeX-arabluatex-color-options @@ -51,13 +61,13 @@ (defvar LaTeX-arabluatex-outfile-options '(;; - (newline)) + ("newline")) "Option for outfile command.") (defvar LaTeX-arabluatex-arbmark-options '(;; - (rl) - (lr)) + ("rl") + ("lr")) "Option for arbmark command.") (TeX-add-style-hook -- cgit v1.2.3