forked from mohuangrui/ucasthesis
-
Notifications
You must be signed in to change notification settings - Fork 2
字体bug
e71828 edited this page Nov 22, 2021
·
3 revisions
\documentclass[twoside,fontset=windows]{ucasthesis/Style/ucasthesis}%
···
\ifartx@windows%
\setCJKmainfont{SimSun}[AutoFakeBold=2.5,ItalicFont=KaiTi,BoldItalicFont=Noto Sans SC Bold,]%
\setCJKsansfont{SimHei}[AutoFakeBold=2.5]%
\setCJKmonofont{FangSong}%
\else\ifartx@mac%
- 例一
\documentclass[UTF8]{ctexart}
\let\kaishu\relax % 清除旧定义
\newCJKfontfamily\kaishu{KaiTi}[AutoFakeBold] % 重定义 \kaishu
\begin{document}
{\kaishu 楷书}
{\bfseries\kaishu 使用伪粗体的楷书}
\end{document}
来自 知乎
- 例二
\documentclass{article}
\usepackage[hscale=0.9]{geometry}
\usepackage{xeCJK}
\usepackage{pgffor}
\setCJKsansfont{KaiTi}
\begin{document}
\fontsize{72}{72}\selectfont
\bfseries\sffamily
\foreach \i in {true, 3, 2.5, 2, 1, false} {
\addCJKfontfeatures{AutoFakeBold=\i}
\i: 氦稳零\par
}
\end{document}
AutoFakeBold=2.5
合适吧?
来自 @muzimuzhi
\AtBeginDocument{%
\let\mathbb\relax
\DeclareMathAlphabet{\mathbb}{U}{msb}{m}{n}%
}
由上,仍可以 symbb
来使用 Unicode特性。
或者
\setmathfont[range=\mathbb]{TeXGyrePagellaMath-Regular}
\setmathrm{XITSMath-Regular}[
Extension = .otf,
ItalicFont = Asana-Math,
BoldFont = XITSMath-Bold,
Ligatures=TeX,
StylisticSet = 1,
]
/usepackage{upgreek}
/mathrm{d}/;
\, %3/18 of \quad (= 3 mu)
\: %4/18 of \quad (= 4 mu)
\; %5/18 of \quad (= 5 mu)
\! %-3/18 of \quad (= -3 mu)
直立 间距 控制