Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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
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

1 Answer 1

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

 
discard

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.