diff options
author | Robert Alessi <alessi@robertalessi.net> | 2020-04-10 14:26:43 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2020-04-10 14:26:43 +0200 |
commit | 7c4512e5282f3476ad3a8569f61b351da9fd745b (patch) | |
tree | a702d4eb2d68ff93a929dd25c531a0083b5f5c49 /ekdosis.el | |
parent | 0dc074bf8f05cc19dac70475375f81f42571c49c (diff) | |
download | ekdosis-7c4512e5282f3476ad3a8569f61b351da9fd745b.tar.gz |
added .el style file for emacs (wip)
Diffstat (limited to 'ekdosis.el')
-rw-r--r-- | ekdosis.el | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/ekdosis.el b/ekdosis.el new file mode 100644 index 0000000..63230a0 --- /dev/null +++ b/ekdosis.el | |||
@@ -0,0 +1,56 @@ | |||
1 | ;;; ekdosis.el --- AUCTeX style for `ekdosis.sty' | ||
2 | ;; This file is part of the `ekdosis' package | ||
3 | |||
4 | ;; ekdosis -- TEI xml compliant critical editions | ||
5 | ;; Copyright (C) 2020 Robert Alessi | ||
6 | |||
7 | ;; Please send error reports and suggestions for improvements to Robert | ||
8 | ;; Alessi <alessi@robertalessi.net> | ||
9 | |||
10 | ;; This program is free software: you can redistribute it and/or modify | ||
11 | ;; it under the terms of the GNU General Public License as published by | ||
12 | ;; the Free Software Foundation, either version 3 of the License, or | ||
13 | ;; (at your option) any later version. | ||
14 | |||
15 | ;; This program is distributed in the hope that it will be useful, but | ||
16 | ;; WITHOUT ANY WARRANTY; without even the implied warranty of | ||
17 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
18 | ;; General Public License for more details. | ||
19 | |||
20 | ;; You should have received a copy of the GNU General Public License | ||
21 | ;; along with this program. If not, see | ||
22 | ;; <http://www.gnu.org/licenses/>. | ||
23 | |||
24 | (defvar LaTeX-ekdosis-preamble-options | ||
25 | '(;; | ||
26 | ("parnotes" ("true" "false" "roman")) | ||
27 | ("teiexport" ("true" "false" "tidy")) | ||
28 | ("layout" ("float" "footins")) | ||
29 | ) | ||
30 | "Package options for the ekdosis package.") | ||
31 | |||
32 | (defun LaTeX-ekdosis-package-options () | ||
33 | "Prompt for package options for ekdosis package." | ||
34 | (TeX-read-key-val t | ||
35 | (append LaTeX-ekdosis-preamble-options))) | ||
36 | |||
37 | (TeX-add-style-hook | ||
38 | "eksosis" | ||
39 | (lambda () | ||
40 | ;; Folding features: | ||
41 | (add-to-list (make-local-variable 'LaTeX-fold-macro-spec-list) | ||
42 | '("{1}" | ||
43 | ("app")) | ||
44 | '("{7}||{6}||{5}||{4}||{3}||{2}||{1}" | ||
45 | ("lem")) | ||
46 | '("[r]" | ||
47 | ("rdg")) | ||
48 | '("[n]" | ||
49 | ("note")) | ||
50 | t) | ||
51 | ;; This package relies on lualatex, so check for it: | ||
52 | (TeX-check-engine-add-engines 'luatex) | ||
53 | ) | ||
54 | LaTeX-dialect) | ||
55 | |||
56 | ;;; ekdosis.el ends here | ||