stone-zeng / fduthesis

LaTeX thesis template for Fudan University
LaTeX Project Public License v1.3c
820 stars 207 forks source link

模板欧拉字体问题 #211

Closed yuangen closed 3 years ago

yuangen commented 3 years ago

使用overleaf编译模板时\mathcal和\mathscr字体相同,而且都是\mathscr字体,怎么解决?

sikouhjw commented 3 years ago

在 LaTeX 中使用 OpenType 字体(三)/#字母表

yuangen commented 3 years ago

我这个问题还是没有解决, image \mathcal命令的效果应该是这样 image 现在两个命令都是mathrsfs包的字体效果。我对原文档没有任何操作,请问是否模板在哪里做了改动?

sikouhjw commented 3 years ago

我这个问题还是没有解决, image \mathcal命令的效果应该是这样 image 现在两个命令都是mathrsfs包的字体效果。我对原文档没有任何操作,请问是否模板在哪里做了改动?

你看了链接吗?unicode-math 没有设置 \mathcal,只有手写体(script)。

yuangen commented 3 years ago

替换全局拉丁字体后解决了,能局部设定字体吗?有些字体拉丁不好看

sikouhjw commented 3 years ago

替换全局拉丁字体后解决了,能局部设定字体吗?有些字体拉丁不好看

是这样的,「非模板提供的、自己魔改的」,原则上不关模板的事。

stone-zeng commented 3 years ago

截图里面是 Latin Modern 的样式,如果需要的话,可以设置 font=lm,同时全部的西文字体也会换掉。

TianLin0509 commented 2 years ago

发现在导言区分别加入以下代码可以正常使用 \mathbb 和 \mathcal

% mathcal 的正常使用
\DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}
% mathbb 的正常使用
\setmathfont{LatinModernMath-Regular}
\setmathfont[range=\mathbb]{TeXGyrePagellaMath-Regular}
Shanggao-lab commented 9 months ago

在导言区\fdusetup{...} 后面加了以下代码可以解决,需要安装XITS Math字体

\setmathfont[range={\mathcal,\mathbfcal},StylisticSet=1]{XITS Math}

参考这个链接:fonts - XeTeX: What happened to \mathcal and \mathscr? - TeX - LaTeX Stack Exchange