问题描述
使用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 -> 构建

将XeLatex移除,添加PdfLatex即可。
本文解决了在使用Texstudio编辑LaTeX文档时遇到的编译错误,如字体形状未定义和段落过满等问题。通过调整编译器从XeLaTeX到PdfLaTeX,成功避免了字体问题,并确保了文档的正确编译。
1332

被折叠的 条评论
为什么被折叠?



