GNU bug report logs -
#57626
13.1.4; cases* environment doesn't let me use $
Previous Next
Reported by: Wierdl Máté <wierdlmate <at> gmail.com>
Date: Tue, 6 Sep 2022 14:55:03 UTC
Severity: normal
Found in version 13.1.4
Done: Ikumi Keita <ikumi <at> ikumi.que.jp>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi Máté,
Wierdl Máté <wierdlmate <at> gmail.com> writes:
> In a cases* environment (from mathtools package), I try to enter math
> mode in the "text column", but auctex doesn't let me enter a $.
>
> So I have
>
> \begin{equation}
> \label{eq:240}
> Tx=
> \begin{dcases*}
> 1& if
> \end{dcases*}
> \end{equation}
>
> and after "if" a I try to enter a formula, but auctex says in the
> minibuffer
>
> "Math mode started with ‘equation’ cannot be closed with dollar"
>
> I should be able to enter a $ in text mode.
Thanks for the report. Can you please add the next 2 lines in your .tex
file and eval them, i.e., hit 'C-x C-e' after ')' and see if it then
works as expected?
(add-to-list 'texmathp-tex-commands '("dcases*" env-off) t)
(texmathp-compile)
I think this a corner case where half of a environment is math and the
other half text. AUCTeX thinks that the entire environment is math and
hence throws an error. I don't have a strong opinion about this, we can
add some entries like this to `texmathp-tex-commands-default':
("cases*" env-off)
("dcases*" env-off)
("rcases*" env-off)
("drcases*" env-off)
What do others think?
Best, Arash
This bug report was last modified 2 years and 203 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.