北航论文模板:解决XeLaTeX中Font shape ‘TU/SimSun(1)/b/n’ undefined(font) using ‘TU/SimSun(1)/m/n’ instead
问题
问题描述: 在使用北航论文模板时,产生了warning:Font shape 'TU/SimSun(1)/b/n' undefined(font) using 'TU/SimSun(1)/m/n' instead
。这个警告的意思为XeLaTeX无法识别加粗的宋体,只好使用正常的宋体来代替。
原因: 使用\textbf{}
将中文字加粗。
解决方法
在北航论文模板中的sample-bachelor.pdf
中,翻至章节4.2字体,可见下图:
再打开第四章的chapter4-basics.tex
文件,可见加粗中英文字体的设置:
毕设论文一般不应过多使用字体。模版也已经设置好默认字体:{\bf 宋体}
和{\bf Times New Roman}字体。如有需要特别强调的地方,可参考以下示例。
\begin{itemize}
\item {\heiti 床前明月光,疑是地上霜。举头望明月,低头思故乡。}
\item {\bf 床前明月光,疑是地上霜。举头望明月,低头思故乡。}
\item \textbf{To be, or not to be, that's a question.}
\item \texttt{To be, or not to be, that's a question.}
\end{itemize}
只需将需要加粗的中文使用{\heiti }
和{\bf }
即可;将需要加粗的英文使用系统默认的加粗方式\textbf{}
就可以了。
参考链接:
北航毕设LaTeX论文模板