Skip to main content
edited title
Link
Giuseppe
  • 455
  • 2
  • 14

AUCTeX: Disable newline when `LaTeX-electric-left-rightelectric-brace`pairing braces in math mode

Source Link
Giuseppe
  • 455
  • 2
  • 14

AUCTeX: Disable newline when `LaTeX-electric-left-right-brace` in math mode

I am using AUCTeX for editing in LaTeX, with LaTeX-electric-left-right-brace enabled, so that when I press for example C-c C-m \left in a math environment, the right brace is also automatically put in my expression.

My problem is that this automatically inserts a newline after the left brace and before the right brace, so that it looks like this for example:

\left( \right) 

with the point inserted in the middle. But I don't want that. I couldn't find anything about it in the Info documentation. Could anyone please tell me how to disable this behavior? (i.e. have the same but on one single line)