Comments (6)
要不用个\renewcommand进行替换
\renewcommand{\textit}[1]{\kaishu{#1}}
from sysu-thesis.
要不用个\renewcommand进行替换
是否会对英文斜体输出造成影响?
from sysu-thesis.
会的,我看看有没有其他解决办法
from sysu-thesis.
有一个解决办法,但是不知道为啥会出现超内存的情况:
\renewcommand*{\textit}[1]{{\kaishu \textit{#1}}}
报错
TeX capacity exceeded, sorry [save size=80000].
如果要统一中英文的斜体的话,只能暂时新建一个命令
\newcommand*{\textitt}[1]{{\kaishu \textit{#1}}}
from sysu-thesis.
另外,从底层来看,我发现xelatex并没有正确调用斜体对应的字体,这是fandol字体集的设定:
\setCJKmainfont { FandolSong-Regular.otf }
[
cmap = UniGB-UTF16-H,
BoldFont = FandolSong-Bold.otf,
ItalicFont = FandolKai-Regular.otf
]
而我们调用\textit{xxx}
的警告却是
Font shape `TU/FandolSong-Regular(1)/m/it' undefined
(Font) using `TU/FandolSong-Regular(1)/m/n' instead.
说明没有正确调用ItalicFont = FandolKai-Regular.otf
。
除此之外,我阅读ctex和xeCJK的宏包说明,发现没有办法直接更改斜体字体,最主要的难点在于不能获取当前CJK字体族对应的字体名称,所以从底层更改字体来解决问题比较困难。
from sysu-thesis.
在 #61 后的更新中用自定义字体文件可以解决这个问题
from sysu-thesis.
Related Issues (20)
- mactex+texstudio 中文字符渲染全为空白 HOT 3
- Proof里面没法使用\begin{equation} HOT 2
- 编译后PDF英文封面仍是中文 HOT 1
- If 语句在算法环境中报错 HOT 2
- \autoref 在definition环境下显示错误 HOT 4
- Overleaf 字数统计报错
- 学术诚信说明是否可以修改?
- 目录上方有大量空白 HOT 3
- Overleaf 中文生僻字问题
- 目录显示与章节编号 HOT 2
- 用其做开题报告时无法跨页 HOT 1
- 请问这个模板如何添加宏包和自定义命令? HOT 4
- 请用这个模板引用参考文献可以不使用上标吗? HOT 5
- 请问这个有英文模板吗
- MikTex 兼容问题 HOT 3
- 如何让definition,theorem等共用编号 HOT 1
- 英文封面问题
- section 和 subsection 标题字体样式问题
- 学术诚信声明如何签名、填写日期 HOT 1
- 字体缺失问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sysu-thesis.