Latex编译出现字体获取不到的情况

问题描述

使用Texstudio时,出现如下错误:

Font shape `TU/ptm/m/n' undefined(Font) using `TU/lmr/m/n' instead
Font shape `TU/ptm/bx/n' undefined(Font) using `TU/ptm/m/n' instead
Font shape `TU/ptm/m/it' undefined(Font) using `TU/ptm/m/n' instead
Font shape `TU/ptm/bx/it' undefined(Font) using `TU/ptm/bx/n' instead
Label `model' multiply defined.
Underfull \hbox (badness 2103) in paragraph
Font shape `TU/ptm/m/sc' undefined(Font) using `TU/ptm/m/n' instead
Citation `bibid' on page 1 undefined
Citation `bibid' on page 1 undefined
Overfull \hbox (9.87708pt too wide) in paragraph
Citation `bibid' on page 5 undefined
Overfull \hbox (31.744pt too wide) in paragraph
Overfull \hbox (21.80803pt too wide) in paragraph
Overfull \hbox (21.80803pt too wide) in paragraph
Overfull \hbox (21.80803pt too wide) in paragraph
Underfull \hbox (badness 3623) in paragraph
Underfull \hbox (badness 3492) in paragraph
Some font shapes were not available, defaults substituted.
There were undefined references.
There were multiply-defined labels.

简单的说就是,某种字体找不到,但是在投稿的指导文件中并没有强调需要特别安装某种字体,所以我又用miktex进行编译,发现通过了,仔细查看了编译配置选项,发现miktex使用PdfLatex.exe进行编译,而texstudio中,默认使用XeLatex(这里可能是因为我听说XeLatex对中文支持较好,以前改过配置,-_-||自己坑自己)

解决办法

Texstudio 中 选项 -> 设置Texstudio -> 构建
Latex编译出现字体获取不到的情况_第1张图片

XeLatex移除,添加PdfLatex即可。

你可能感兴趣的:(Latex)