option to type numbers without underscore in chemical environment #23

Open
opened 2021-10-11 08:47:47 +00:00 by fab6 · 2 comments
fab6 commented 2021-10-11 08:47:47 +00:00 (Migrated from github.com)

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!

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: <img width="673" alt="image" src="https://user-images.githubusercontent.com/3047695/136760650-32eaa3f3-c162-44fa-b3bc-4d679814b833.png"> Or maybe it is possible to deactivate it completely? Thank you in advance!
ymarco commented 2021-10-11 11:01:52 +00:00 (Migrated from github.com)

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)

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)
fab6 commented 2021-10-22 11:08:39 +00:00 (Migrated from github.com)

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

Ok, thank you very much... I think putting the numbers to nil helps already...sorry for the late reply
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tec/LaTeX-auto-activating-snippets#23
No description provided.