arabluatex.el 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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--2018 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. "uc"
  58. "prname"
  59. "txarb"
  60. '("arb" [ (TeX-arg-eval completing-read "Mode: "
  61. LaTeX-arabluatex-mode-options) ]
  62. t)
  63. "SetHemistichDelim"
  64. '("bayt" 2)
  65. "abjad"
  66. "arbnull"
  67. "abraces"
  68. "LR"
  69. "RL"
  70. "LRmarginpar"
  71. "LRfootnote"
  72. "RLfootnote"
  73. "FixArbFtnmk"
  74. "MkArbBreak"
  75. '("setRL" 0)
  76. '("setLR" 0))
  77. (LaTeX-add-environments
  78. '("arab" LaTeX-env-args
  79. [ (TeX-arg-eval completing-read "Mode: "
  80. LaTeX-arabluatex-mode-options) ]
  81. 0)
  82. "txarab"
  83. '("arabverse" LaTeX-env-args
  84. [ TeX-arg-key-val LaTeX-arabluatex-key-val-options ] 0))
  85. )
  86. LaTeX-dialect)
  87. ;;; arabluatex.el ends here