AUCTeX Sync -- New Style Files
[packages] / xemacs-packages / auctex / style / bidi.el
1 ;;; bidi.el --- AUCTeX style for the (XeLaTeX) bidi package
2
3 ;; Copyright (C) 2016 Free Software Foundation, Inc.
4
5 ;; Author: Uwe Brauer <oub@mat.ucm.es>
6 ;; Created: 2016-03-06
7 ;; Keywords: tex
8
9 ;; This file is part of AUCTeX.
10
11 ;; AUCTeX is free software; you can redistribute it and/or modify it
12 ;; under the terms of the GNU General Public License as published by
13 ;; the Free Software Foundation; either version 3, or (at your option)
14 ;; any later version.
15
16 ;; AUCTeX is distributed in the hope that it will be useful, but
17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19 ;; General Public License for more details.
20
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with AUCTeX; see the file COPYING.  If not, write to the Free
23 ;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
24 ;; 02110-1301, USA.
25
26 ;;; Commentary:
27
28 ;; This file adds support for the bidi package.
29
30 ;;; Code:
31
32 (defvar LaTeX-bidi-package-options '("RTLdocument" "rldocument")
33   "Package options for the bidi package.")
34
35 (TeX-add-style-hook
36  "bidi"
37  (lambda ()
38    (TeX-check-engine-add-engines 'xetex)
39    (LaTeX-add-environments
40     "LTR"
41     "RTL")
42    ;; Fontification
43    (TeX-add-symbols
44     '("setRL" 0)
45     '("unsetRL" 0)
46     '("setRTL" 0)
47     '("unsetRTL" 0)
48     '("setLR" 0)
49     '("unsetLR" 0)
50     '("setLTR" 0)
51     '("unsetLTR" 0)
52     '("LR" 1)
53     '("LRE" 1)
54     '("RLE" 1)
55     '("RL" 1)))
56  LaTeX-dialect)
57
58
59 ;;; bidi.el ends here