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.

2
  • 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. Jan 16, 2013 at 20:26
  • Yes, I set the condition for shortintertext to be the same as for intertext in texmathp.el in the AUCTeX distribution. Jan 16, 2013 at 20:52

1 Answer 1

5

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .