XeLeTeX字体警告"EU1/SimSun(0)/m/it' undefined的原因

来源:互联网 发布:vb教程 编辑:程序博客网 时间:2024/09/21 08:49

我们在利用XeLaTex编译写的含有中文的.tex文件时,例如,以下面开头的:

\documentclass[12pt]{article}\usepackage{fontspec}\usepackage{xeCJK} \setCJKmainfont[BoldFont=SimHei]{SimSun}\setCJKmonofont{SimSun}% 设置缺省中文字体...

文件时,当然上面文件已UTF-8编码,会提示出现下面的警告信息:

LaTeX Font Warning: Font shape ‘EU1/SimSun(0)/m/it’ undefined
(Font) using ‘EU1/SimSun(0)/m/n’ instead on input line 65
…..
LaTeX Font Warning: Some font shapes were not available, defaults substituted.
)

上面说的很清楚,没有定义斜体,改用正体代替。消除该警告信息的方法为:

\usepackage[SlantFont]{xeCJK}
0 0