zk-phi / magic-latex-buffer

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

\mathscr #27

Open PythonNut opened 7 years ago

PythonNut commented 7 years ago

Would be pretty neat if \mathscr got similar treatment to \mathbb. So \mathscr would render as .

zk-phi commented 7 years ago

@PythonNut,

Thanks, seems not very important but cool feature.

\mathbb currently renders double-struck letters not by unicode characters but by compose-char function, which can make a new character by composing multiple existing characters. So it will not easily apply to \mathscr. We probably should consider to render such letter-like characters by unicode characters this case.

This looks like a good reference: https://en.wikipedia.org/wiki/Mathematical_Alphanumeric_Symbols#Tables

The feature may not be able soon, but I'll consider when I have some time off (contributions are welcome too!).