KeitaNakamura / tex-conceal.vim

MIT License
128 stars 45 forks source link

g:tex_subscripts will not affect when X_{n} #17

Closed ChasingZenith closed 4 years ago

ChasingZenith commented 4 years ago

Since I don't know if there is a font that can support subscript "hklmnpst", I want to not conceal this character.

So I do what :h tex-conceal give and

let g:tex_subscripts= "[0-9aeijoruvx,+-/().]"

but this doesn't work. I hope this plugin can also be configured using this variable.

Currently, my workaround is to run

...
syn match texMathSymbol '_\%(n\|{\s*n\s*}\)' contained conceal cchar=n
... etc ...

after I open a tex file.

KeitaNakamura commented 4 years ago

Thanks for reporting. Yes, the feature you suggested should be implemented in this plugin. Could you make PR?

DejaVu font supports the character n (see U+2099 in Unicode characters supported by the DejaVu )

ChasingZenith commented 4 years ago

I hope that I can help. But I am not very familiar with vim script and I don't know where is this tex.vim plugin locate in the vim filesystem.

xingbo92 commented 4 years ago

After the recent update, the option to not conceal super/subscript doesn't seem to work anymore. Regardless of the tex-conceal setting, the super/subscripts are concealed