Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overleaf编译时候有ctex相关的warning #345

Closed
Emmawd21 opened this issue Sep 25, 2023 · 1 comment
Closed

overleaf编译时候有ctex相关的warning #345

Emmawd21 opened this issue Sep 25, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Emmawd21
Copy link

操作系统

Overleaf

TeX 套件

TeXLive 2021 或更新的版本

TeX Compiler

XeTeX

zjuthesis 版本号

v9.1.0

MajorFormat

isee

Degree

graduate

Type

thesis

Period

final

BlindReview

false

GradLevel

master

问题描述

仅修改了MajorFormat = isee
添加了字体文件

font

编译日志

zjuthesis.log

代码

\newcommand{\FakeBoldSize}{4}

% NOTE:
% To use LuaTeX, we manually set the AutoFakeBold size for each font,
% because in LuaTeX, CTeX invokes luatexja which does not recognize a global
% AutoFakeBold setting. So we need to set AutoFakeBold for each font.

% ctex package stores one of "windows", "mac", and "fandol" in \g__ctex_fontset_tl
\ifthenelse{\equal{\csname g__ctex_fontset_tl\endcsname}{mac}}
{
\IfFileExists{ /System/Library/Fonts/PingFang.ttc }
{
% MacOS El Capitan and later version
% CTeX-org/ctex-kit#351

% Fonts
%   Fix songti font invocation in `ctex` package on MacOS old version, to enable bold font
%   Detailes in: https://github.com/TheNetAdmin/zjuthesis/issues/48
%   Similar implementation: https://github.com/xueruini/thuthesis/blob/a86b0824da527268645571cc5fe3096d65a665b3/thuthesis.dtx#L1447-L1461
\setCJKfamilyfont{zhfs}   {STFangsong}      [AutoFakeBold={\FakeBoldSize}, Path=./fonts/]
\setCJKfamilyfont{zhhei}  {Heiti SC Light}  [BoldFont={Heiti SC Medium}, Path=./fonts/]
\setCJKfamilyfont{zhkai}  {Kaiti SC}        [BoldFont={Kaiti SC Bold}, Path=./fonts/]
\setCJKfamilyfont{zhsong} {Songti SC Light} [BoldFont={Songti SC Bold}, Path=./fonts/]

\setCJKmainfont[AutoFakeBold={\FakeBoldSize}, Path=./fonts/]{STFangsong}

}
{
% Older MacOS
% Fonts
\setCJKfamilyfont{zhfs} {STFangsong} [AutoFakeBold={\FakeBoldSize}, Path=./fonts/]
\setCJKfamilyfont{zhhei} {STHeiti} [AutoFakeBold={\FakeBoldSize}, Path=./fonts/]
\setCJKfamilyfont{zhkai} {STKaiti} [AutoFakeBold={\FakeBoldSize}, Path=./fonts/]
\setCJKfamilyfont{zhsong} {STSong} [AutoFakeBold={\FakeBoldSize}, Path=./fonts/]

\setCJKmainfont[AutoFakeBold={\FakeBoldSize}, Path=./fonts/]{STFangsong}

}
}
{
% Windows or other platform
\setCJKfamilyfont{zhfs} {FangSong} [AutoFakeBold={\FakeBoldSize}, Path=./fonts/]
\setCJKfamilyfont{zhhei} {SimHei} [AutoFakeBold={\FakeBoldSize}, Path=./fonts/]
\setCJKfamilyfont{zhkai} {KaiTi} [AutoFakeBold={\FakeBoldSize}, Path=./fonts/]
\setCJKfamilyfont{zhsong} {SimSun} [AutoFakeBold={\FakeBoldSize}, Path=./fonts/]

\setCJKmainfont[AutoFakeBold={\FakeBoldSize}, Path=./fonts/]{FangSong}

}

\setmainfont[Path=./fonts/, BoldFont={*Bold}, ItalicFont={*Italic}, BoldItalicFont={*BoldItalic}]{TimesNewRoman}
\renewcommand{\bibfont}{\zihao{5}\songti}

截图

error

其他信息

No response

@Emmawd21 Emmawd21 added the bug Something isn't working label Sep 25, 2023
@TheNetAdmin
Copy link
Owner

这些warning基本可以忽略,应当不影响

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants