LaTeX-auto-activating-snippets icon indicating copy to clipboard operation
LaTeX-auto-activating-snippets copied to clipboard

option to type numbers without underscore in chemical environment

Open fab6 opened this issue 3 years ago • 2 comments

Would it be possible to have turn off the underscoring when typing numbers in a chemformula environment. E.g. one could have something like this:

image

Or maybe it is possible to deactivate it completely? Thank you in advance!

fab6 avatar Oct 11 '21 08:10 fab6

I don't think we have an efficient method to detect when point is in a \ch{} macro. Maybe we could just check the few preceding lines? Or up to the math start reported by texmathp? PRs welcome.

To disable them all:

(aas-set-snippets 'laas-mode "0" nil "1" nil "2" nil "3" nil "4" nil "5" nil "6" nil "7" nil "8" nil "9" nil)

ymarco avatar Oct 11 '21 11:10 ymarco

Ok, thank you very much... I think putting the numbers to nil helps already...sorry for the late reply

fab6 avatar Oct 22 '21 11:10 fab6