提问于:
浏览数:
2040
## 编译环境
操作系统
* [x] Windows 7/8/10
* [ ] macOS
* [ ] Linux
Tex发行版
* [x] TexLive `2020`
* [ ] MikTeX `版本号`
* [ ] CTeX
## 我的问题
使用 `XeLaTeX` 编译如下代码
```
\documentclass{article}
\usepackage{amsthm}
\newtheorem{Question}{Qu}
\begin{document}
\begin{Question}
test
\end{Question}
\end{document}
```
可以得到如下输出

使用 `XeLaTeX` 编译如下代吗
```
\documentclass{article}
\usepackage{unicode-math}
\usepackage{amsthm}
\newtheorem{Question}{Qu}
\begin{document}
\begin{Question}
test
\end{Question}
\end{document}
```
可以得到如下输出

前面的 Qu 消失了, 而且内容字体变为正体
而如果将定义环境定义为`Qu`, 即
```
\documentclass{article}
\usepackage{unicode-math}
\usepackage{amsthm}
\newtheorem{Qu}{Qu}
\begin{document}
\begin{Qu}
test
\end{Qu}
\end{document}
```
可以得到正常的输出

**补充**: 在进一步的测试中, 不使用 `amsthm` 宏包, 直接定义 `\newenvironment{Question}{envname}{}` 也会出现同样的问题.
请问是什么原因造成的, 以及除了更改环境名称以外有没有解决方法?
1 回答
1
https://tex.stackexchange.com/questions/185998/amsthm-not-working-correctly-with-unicode-math
参考它,`question` 已经被 `unicode-math` 占用了。
-
好的谢谢 – syvshc_1209 2020-05-21 18:29 回复
-
好的谢谢 – syvshc_1209 2020-05-21 18:29 回复
-
好的谢谢 – syvshc_1209 2020-05-21 18:28 回复
-
好的谢谢 – syvshc_1209 2020-05-21 18:28 回复
你的回答
请登录后回答
你的回答将会帮助更多人,请务必认真回答问题。