tuna / thuthesis

LaTeX Thesis Template for Tsinghua University
https://www.ctan.org/pkg/thuthesis
LaTeX Project Public License v1.3c
4.52k stars 1.07k forks source link

英文冒号编译不出来 #870

Closed Martian9119 closed 1 year ago

Martian9119 commented 1 year ago

编译环境

编译的系统:Windows 11 TeX 发行版:TeX Live 2019 模板版本:v7.3.2 模板类型:bachelor

描述问题

我在输入数学公式的时候,英文的冒号编译后就消失了。比如我输入“函数f: X→I”,编译出来变成了“函数f X→I”。

截图: capture_20230428111614691

复现上述问题的代码:

\documentclass[degree=bachelor]{thuthesis}
\begin{document}
函数$f: X_0\rightarrow\mathcal{I}$
\end{document}
note286 commented 1 year ago

我测试了TeX Live 2018/2019/2023均无法复现你的问题,thuthesis.cls7.3.2,Windows 10。

image

zepinglee commented 1 year ago

同样无法复现。

另外这里的冒号要用 \colon

Martian9119 commented 1 year ago

同样无法复现。

另外这里的冒号要用 \colon

我尝试了\colon冒号也编译不出来

Martian9119 commented 1 year ago

同样无法复现。

另外这里的冒号要用 \colon

啊我把commath宏包删去就编译出来了,这是为什么?以前没碰到过这种问题(不过现在用不了\dif了)

note286 commented 1 year ago
\documentclass[degree=bachelor]{thuthesis}
\usepackage{commath}
\begin{document}
$f:x$
$f\colon x$
\end{document}

image

zepinglee commented 1 year ago

可能是别的什么冲突。

https://tex.stackexchange.com/questions/261265/angle-brackets-with-commath-and-asana-math-too-large-or-small

https://tex.stackexchange.com/questions/135944/commath-and-ifinner

The commath package has many errors and I can't recommend using it.