zk-phi / magic-latex-buffer

Magical syntax highlighting for LaTeX-mode buffers
152 stars 13 forks source link

superscript of textsuperscript #30

Open DrWaleedAYousef opened 7 years ago

DrWaleedAYousef commented 7 years ago

Based on one of your previous advises, I tried: (push '("\\\\textsuperscript\\>" . "⁺") ml/symbols) It works great. However, now I need to treat the whole \textsuperscript{ANY THING} as the mathematical superscript and raise it up. I looked at the superscript function of your code but my little knowledge of elisp was a challenge. Any help?