Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cdlatex throws "no such modifier ... outside math mode." in some specific environments #17

Closed
semihkacmaz opened this issue Jul 6, 2020 · 7 comments

Comments

@semihkacmaz
Copy link

Hello, for some reason, cdlatex stopped functioning properly today. When I try to insert a math modifier under align, align*, equation* or multline environments, cdlatex throws the "No such modifier /modifier-symbol/ outside math mode." error. Furthermore, when I try to insert a math symbol under these environments the symbol is generated between double dollar signs as if it is called in the text-mode.

However, it works flawlessly and as it used to with the "equation" environment.

I am using AucTeX in Emacs 26.3 which was downloaded from emacsformacosx.com and my OS is macOS Catalina 10.15.5.

@cdominik
Copy link
Owner

cdominik commented Jul 7, 2020 via email

@semihkacmaz
Copy link
Author

Hello again,

I have contacted the AUCTeX people and you were correct. They stated that:

"Support for highlighting and in-math state detection for
AMS-LaTeX specific environments, such as align, gather and multline, are
refactored and put into style file amsmath.el. So these support are
available only when TeX-parse-self option is enabled."

However, TeX-parse-self option was already enabled in my config file. After skimming "texmathp.el" for a while I figured that customizing the variable "texmathp-tex-commands" should solve the issue. I have added the following to my config file and everything was back to normal:

(custom-set-variables
'(texmathp-tex-commands
(quote
(("xxalignat" env-on)
("xalignat*" env-on)
("xalignat" env-on)
("alignat*" env-on)
("alignat" env-on)
("flalign*" env-on)
("flalign" env-on)
("gather*" env-on)
("gather" env-on)
("multline*" env-on)
("multline" env-on)
("equation*" env-on)
("align*" env-on)
("align" env-on)))))

Thank you again for your time and help!

@cdominik
Copy link
Owner

cdominik commented Jul 8, 2020 via email

@danielfleischer
Copy link

danielfleischer commented Aug 1, 2020

I discovered this bug where ^,_ didn't insert {} in AMS environments, because the AUCTex funciton texmathp didn't recognize them as being math environment.

This can be seen in the commit in AUCTex git.

I've approached the developer and they may reintroduced the AMS environments back.

One can also install AUCTex 12.2, i.e. before the minor updates of this year.

@cdominik
Copy link
Owner

cdominik commented Aug 1, 2020 via email

@maxc01
Copy link

maxc01 commented Aug 10, 2020

Seems this problem has been fixed in this commit.

@cdominik
Copy link
Owner

cdominik commented Aug 11, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants