tecosaur / LaTeX-auto-activating-snippets

Mirror of https://git.tecosaur.net/tec/LaTeX-auto-activating-snippets
GNU General Public License v3.0
102 stars 23 forks source link

After typing underscore or hat after greek letters, space should be removed. #17

Open K-gihu opened 3 years ago

K-gihu commented 3 years ago

Expected Behaviour

Type ;a_i to get \alpha_i, or type ;a^i to get \alpha^i

Actual Behaviour

Got \alpha _i and \alpha ^i

ymarco commented 3 years ago

I don't like the auto space, I disable it myself (by setting laas-enable-auto-space to nil).

Reformatting the space for all cases would mean at least making all of ^, _, , (comma), and ' snippets, which is a bit too much I think.

I'd by happy to hear @tecosaur's take on this.

tecosaur commented 3 years ago

Short version: I like auto space, but I think it would benefit from being a bit cleverer.

ymarco commented 3 years ago

(Accidentally closed)

ymarco commented 2 years ago

I'm thinking of adding an optional :class or :info key in aas to mark snippets, so we could mark greek letters as 'dont-want-space' or something. Would this be enough?

fab6 commented 2 years ago

Hi, I am new year in this issue... your last suggestion sounds for me great!