Hi all,
after the discussion in this thread[1] reg. completion for math symbols,
I was thinking if we should expand AUCTeX's math minor mode for other
packages than AMSMATH. I played with it briefly and I think for
wasysym, the following change does the trick.
--8<---------------cut here---------------start------------->8---
diff --git a/latex.el b/latex.el
index c3b4f8b8..e173d669 100644
--- a/latex.el
+++ b/latex.el
@@ -5703,7 +5703,7 @@ use \\[customize]."
'("Math"
("Greek Uppercase") ("Greek Lowercase") ("Binary Op") ("Relational")
("Arrows") ("Punctuation") ("Misc Symbol") ("Var Symbol") ("Log-like")
- ("Delimiters") ("Constructs") ("Accents") ("AMS"))
+ ("Delimiters") ("Constructs") ("Accents") ("AMS") ("Wasysym"))
"Menu containing LaTeX math commands.
The menu entries will be generated dynamically, but you can specify
the sequence by initializing this variable.")
@@ -6230,7 +6230,26 @@ the sequence by initializing this variable.")
(nil "intertext" ("AMS" "Special"))
(nil "substack" ("AMS" "Special"))
(nil "subarray" ("AMS" "Special"))
- (nil "sideset" ("AMS" "Special")))
+ (nil "sideset" ("AMS" "Special"))
+ ;; Wasysym symbols:
+ (nil "ocircle" ("Wasysym" "Binary Op") 9675) ;; #X25CB
+ (nil "lhd" ("Wasysym" "Binary Op") 8882) ;; #X22B2
+ (nil "LHD" ("Wasysym" "Binary Op") 9664) ;; #X25C0
+ (nil "rhd" ("Wasysym" "Binary Op") 8883) ;; #X22B3
+ (nil "RHD" ("Wasysym" "Binary Op") 9654) ;; #X25B6
+ (nil "unlhd" ("Wasysym" "Binary Op") 8884) ;; #X22B4
+ (nil "unrhd" ("Wasysym" "Binary Op") 8885) ;; #X22B5
+ (nil "apprle" ("Wasysym" "Relational") 8818) ;; #X2272
+ (nil "apprge" ("Wasysym" "Relational") 8819) ;; #X2273
+ (nil "invneg" ("Wasysym" "Relational") 8976) ;; #X2310
+ (nil "Join" ("Wasysym" "Relational") 10781) ;; #X2A1D
+ (nil "leadsto" ("Wasysym" "Relational") 10547) ;; #X2933
+ (nil "sqsubset" ("Wasysym" "Relational") 8847) ;; #X228f
+ (nil "sqsupset" ("Wasysym" "Relational") 8848) ;; #X2290
+ (nil "wasypropto" ("Wasysym" "Relational") 8733) ;; #X221D
+ (nil "Box" ("Wasysym" "Misc Symbol") 9633) ;; #X25A1
+ (nil "Diamond" ("Wasysym" "Misc Symbol") 9671) ;; #X25C7
+ (nil "logof" ("Wasysym" "Misc Symbol")))
"Alist of LaTeX math symbols.
Each entry should be a list with upto four elements, KEY, VALUE,
--8<---------------cut here---------------end--------------->8---
What do others think? Should we add support for other packages to
`LaTeX-math-menu' and `LaTeX-math-default'? We can put the other text
symbols inside an AUCTeX style file for these packages.
Best, Arash
Footnotes:
[1] https://lists.gnu.org/archive/html/auctex/2023-05/msg00009.html