arabluatex.el 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. ;;; arabluatex.el --- AUCTeX style for `arabluatex.sty'
  2. ;; This file is part of the `arabluatex' package
  3. ;; ArabLuaTeX -- Processing ArabTeX notation under LuaLaTeX
  4. ;; Copyright (C) 2016--2017 Robert Alessi
  5. ;; Please send error reports and suggestions for improvements to Robert
  6. ;; Alessi <alessi@robertalessi.net>
  7. ;; This program is free software: you can redistribute it and/or modify
  8. ;; it under the terms of the GNU General Public License as published by
  9. ;; the Free Software Foundation, either version 3 of the License, or
  10. ;; (at your option) any later version.
  11. ;; This program is distributed in the hope that it will be useful, but
  12. ;; WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. ;; General Public License for more details.
  15. ;; You should have received a copy of the GNU General Public License
  16. ;; along with this program. If not, see
  17. ;; <http://www.gnu.org/licenses/>.
  18. (defvar LaTeX-arabluatex-package-options
  19. '("voc" "fullvoc" "novoc" "trans")
  20. "Package options for the arabluatex package.")
  21. (defvar LaTeX-arabluatex-mode-options
  22. '(;;
  23. ("voc")
  24. ("fullvoc")
  25. ("novoc")
  26. ("trans")
  27. )
  28. "Global or local options.")
  29. (defvar LaTeX-arabluatex-key-val-options
  30. '(;;
  31. ("mode" ("voc" "fullvoc" "novoc" "trans"))
  32. ("width")
  33. ("gutter")
  34. ("metre")
  35. ("delim" ("true" "false"))
  36. ("utf" ("true" "false")))
  37. "Key=value options for arabverse environment.")
  38. (TeX-add-style-hook
  39. "arabluatex"
  40. (lambda ()
  41. ;; This package relies on lualatex, so check for it:
  42. (TeX-check-engine-add-engines 'luatex)
  43. (TeX-add-symbols
  44. "aemph"
  45. "SetInputScheme"
  46. '("SetArbEasy" 0)
  47. '("SetArbDflt" 0)
  48. '("SetArbEasy*" 0)
  49. '("SetArbDflt*" 0)
  50. "SetTranslitFont"
  51. "SetTranslitStyle"
  52. "SetTranslitConvention"
  53. "arbup"
  54. '("ArbUpDflt" 0)
  55. '("NoArbUp" 0)
  56. "SetArbUp"
  57. "cap"
  58. "txarb"
  59. '("arb" [ (TeX-arg-eval completing-read "Mode: "
  60. LaTeX-arabluatex-mode-options) ]
  61. t)
  62. "SetHemistichDelim"
  63. '("bayt" 2)
  64. "abjad"
  65. "arbnull"
  66. "abraces"
  67. "LR"
  68. "RL"
  69. "LRmarginpar"
  70. "LRfootnote"
  71. "RLfootnote"
  72. "FixArbFtnmk"
  73. '("setRL" 0)
  74. '("setLR" 0))
  75. (LaTeX-add-environments
  76. '("arab" LaTeX-env-args
  77. [ (TeX-arg-eval completing-read "Mode: "
  78. LaTeX-arabluatex-mode-options) ]
  79. 0)
  80. "txarab"
  81. '("arabverse" LaTeX-env-args
  82. [ TeX-arg-key-val LaTeX-arabluatex-key-val-options ] 0))
  83. )
  84. LaTeX-dialect)
  85. ;;; arabluatex.el ends here