3

I think CDLaTeX might be causing problems with this. If I disable electric-pair-mode and use AUCteX’s built-in completion, auto-completion of pairs such as \[\] works as expected unless I have CDLaTeX mode enabled. It seems having CDLaTeX mode enabled just gives me completions of ([{, but not \[, \left(, etc. Is this expected behaviour?

1 Answer 1

1

You can set cdlatex-takeover-parenthesis to nil in order to not have cdlatex use it's own parenthesis completion.

This leaves cdlatex's autoexpansion of lr( to \left( \right) intact but also automatically adds the \right) if you type \left(.

1
  • Your suggestion worked for me.Thank you walterh.
    – prash
    Dec 28, 2022 at 3:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.