4

I would like to have AUCTeX turn off math mode for the argument of the shortintertext command from the mathtools package. I customized the variable texmathp-tex-command to add the following line to my init.el file:

'(texmathp-tex-commands (quote (("shortintertext" arg-off))))

However when I enter a dollar in the argument of shortintertext I get the following message in the minibuffer:

Math mode started with `align` cannot be closed with dollar

which indicates that the argument is still in math mode.

I am using Emacs 24.3 with package install of auctex.

  • 1
    Welcome to TeX.sx! check to see if auctex has a definition for \intertext. if it does, then \shortintertext should be treated the same way. – barbara beeton Jan 16 '13 at 20:26
  • Yes, I set the condition for shortintertext to be the same as for intertext in texmathp.el in the AUCTeX distribution. – user1031565 Jan 16 '13 at 20:52
5

if auctex has a definition for \intertext, then \shortintertext should be treated the same way.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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