From 0a291e0330a961ff5959d35b05139117592559c1 Mon Sep 17 00:00:00 2001 From: carry <2641257231@qq.com> Date: Fri, 2 May 2025 00:38:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(cover):=20=E4=BF=AE=E6=94=B9=E5=B0=81?= =?UTF-8?q?=E9=9D=A2=E5=AD=97=E4=BD=93=E4=B8=BA=E6=96=B9=E6=AD=A3=E6=A5=B7?= =?UTF-8?q?=E4=BD=93=E5=B9=B6=E5=8A=A0=E7=B2=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将封面标题的字体从“zhkai”更改为“fzkaiti”,并添加加粗效果,以提升视觉效果和一致性。同时,在main.tex中定义了fzkaiti字体的加粗和斜体设置,确保字体显示正常。 --- paper/latex/chapters/cover.tex | 2 +- paper/latex/main.tex | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/paper/latex/chapters/cover.tex b/paper/latex/chapters/cover.tex index a16e5a2..894e59d 100644 --- a/paper/latex/chapters/cover.tex +++ b/paper/latex/chapters/cover.tex @@ -7,7 +7,7 @@ \vspace{0.2cm} \centering - {\zihao{1}\CJKfamily{zhkai}{本~科~毕~业~论~文(设计)}} + {\zihao{1}\CJKfamily{fzkaiti}\bfseries 本~科~毕~业~论~文(设~计)} \vspace{2.5cm} diff --git a/paper/latex/main.tex b/paper/latex/main.tex index d260ea2..6f7dd12 100644 --- a/paper/latex/main.tex +++ b/paper/latex/main.tex @@ -68,7 +68,14 @@ \definecolor{dkgreen}{rgb}{0,0.6,0} \definecolor{gray}{rgb}{0.5,0.5,0.5} \definecolor{mauve}{rgb}{0.58,0,0.82} + \usepackage{fontspec} + +\setCJKfamilyfont{fzkaiti}[ +AutoFakeBold = 1.2, % 加粗强度 +ItalicFont = 方正楷体_GBK.TTF % 防止斜体切换异常(非必须) +]{方正楷体_GBK.TTF} + \setmonofont{Consolas} \lstset{ % numbers=left,