在一些数学环境内数学模式判断错误

2021-01-21 11:49发布

## 编译环境 操作系统 * [x] Windows 7/8/10 * [ ] macOS * [ ] Linux `若需勾选,请把[ ]改成[x]` Tex发行版 * [x] TexLive `2...

## 编译环境 操作系统 * [x] Windows 7/8/10 * [ ] macOS * [ ] Linux `若需勾选,请把[ ]改成[x]` Tex发行版 * [x] TexLive `2020` * [ ] MikTeX `版本号` * [ ] CTeX `若需勾选,请把[ ]改成[x]` ## 我的问题 `gather`, `align` 环境内数学模式判断错误,请问应如何修复? ```tex \documentclass{article} \usepackage{amsmath} \begin{document} \begin{gather*} \ifmmode123\else456\fi \end{gather*} \end{document} ``` 预期输出是 123,但实际输出是 456
2条回答
yuxtech.github.
2021-01-22 10:25
[https://tex.stackexchange.com/questions/565411/whats-a-reliable-way-to-detect-math-mode-including-align](http://https://tex.stackexchange.com/questions/565411/whats-a-reliable-way-to-detect-math-mode-including-align "https://tex.stackexchange.com/questions/565411/whats-a-reliable-way-to-detect-math-mode-including-align")

一周热门 更多>