英文字体
对于{ctexart}等中文文档类型中,通常对英文的字体要求为Times New Roman ,具体的设置方式如下:
# 设置英文字体
\setmainfont{
Times New Roman}
\newcommand{
\tm}{
\fontspec{
Times New Roman}}
使用方式
- \tm{ hello world } 则会显示成:helloworld , 中间不会有空格
- {\tm{ hello world }} 则会显示成: hello world
中英文标题
对于一般论文的插图要求是:中英文标题,具体的设置方式如下:
# 中英文标题
\usepackage{
bicaption}
\DeclareCaptionOption{
english}[]{
%
\renewcommand\figurename{
Figure}%
\renewcommand\tablename{
Table}}
\captionsetup[bi-second]{
english}
使用方式
\begin{
figure}[H]
\centering
\includegraphics[width=1.0\textwidth]{
TM.jpg} %TM.png是图片文件的相对路径
\bicaption{
TM1637参数表} {
parameters table of TM1637}%caption是图片的标题
\label{
fig:TM1637} %此处的label相当于一个图片的专属标志,目的是方便上下文的引用
\end{
figure}