From 6839ce46fb8f433e3d696b6d7608825a8b5c0327 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Sat, 11 Apr 2020 09:49:54 +0200 Subject: updated .el style file --- ekdosis.el | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 81 insertions(+), 2 deletions(-) diff --git a/ekdosis.el b/ekdosis.el index 84e8f82..8f11f37 100644 --- a/ekdosis.el +++ b/ekdosis.el @@ -34,6 +34,68 @@ (TeX-read-key-val t (append LaTeX-ekdosis-preamble-options))) +(defvar LaTeX-ekdosis-app-options + '(;; + ("type") + ) + "Local options.") + +(defvar LaTeX-ekdosis-lem-options + '(;; + ("wit") + ("alt") + ("pre") + ("post") + ("prewit") + ("postwit") + ("sep") + ("nolem" ("true" "false")) + ("nosep" ("true" "false")) + ) + "Local options.") + +(defvar LaTeX-ekdosis-rdg-options + '(;; + ("wit") + ("alt") + ("pre") + ("post") + ("prewit") + ("postwit") + ("nordg" ("true" "false")) + ) + "Local options.") + +(defvar LaTeX-ekdosis-note-options + '(;; + ("type") + ("lem") + ("labelb") + ("labele") + ("sep") + ("pre") + ("post") + ) + "Local options.") + +(defvar LaTeX-ekdosis-note-star-options + '(;; + ("pre") + ("post") + ) + "Local options.") + +(defvar LaTeX-ekdosis-alignment-key-val-options + '(;; + ("tcols") + ("lcols") + ("texts") + ("apparatus") + ("paired" ("true" "false")) + ("pagelineation" ("true" "false")) + ) + "Local options.") + (TeX-add-style-hook "ekdosis" (lambda () @@ -53,11 +115,28 @@ ;; This package relies on lualatex, so check for it: (TeX-check-engine-add-engines 'luatex) (TeX-add-symbols - "app" + '("app" [ (TeX-arg-key-val + LaTeX-ekdosis-app-options) ] + t) + '("lem" [ (TeX-arg-key-val + LaTeX-ekdosis-lem-options) ] + t) + '("rdg" [ (TeX-arg-key-val + LaTeX-ekdosis-rdg-options) ] + t) + '("note" [ (TeX-arg-key-val + LaTeX-ekdosis-note-options) ] + t) + '("note*" [ (TeX-arg-key-val + LaTeX-ekdosis-note-star-options) ] + t) + '("SetEkdosisAlignment" (TeX-arg-key-val + LaTeX-ekdosis-alignment-key-val-options)) ) (LaTeX-add-environments "ekdosis" - ) + '("alignment" LaTeX-env-args + [ TeX-arg-key-val LaTeX-ekdosis-alignment-key-val-options ] 0)) ) LaTeX-dialect) -- cgit v1.2.3