TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
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
up vote 5 down vote accepted

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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