Latex插入中文,编译后,Abstract会被自动翻译为“摘要”,References变自动翻译为“参考文献”。
我找了一个办法,就是通过额外的代码强制更改摘要和参考文献的内容和样式。
将这段代码放入 \begin{document} 和 \begin{abstract} 之间即可。
代码如下:
1 2 3 4 |
%强制修改摘要和参考文献的标题文字和样式(用于修正中文编译的自动翻译) \renewcommand{\abstractname}{\textbf{\large {Abstract}}} %更改摘要的样式和内容 \renewcommand{\refname}{\textbf{\large {References}}} %更改参考文献的样式和内容 |
效果如下:
顺便贴上我使用的Latex文章模板2.0,以下是所有代码内容:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
%%% Latex template for Research Article %%% %%% Version: 2.0 %%% %%% UpDateTime: 2023.04.10 %%% %%% Author: TAHO %%% %%% Contact: taho@vip.163.com %%% %%% Web Site: https://taholab.com %%% %%% Address: Xi'an, Shaanxi, China %%% \documentclass[12pt,a4paper]{article} %%% ADD BY TAHO%%% \usepackage{exscale} \usepackage{relsize} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsfonts} \usepackage{float} \usepackage{graphicx} %插入图片要用到 \graphicspath{{eps/}} %eps是放置eps文件的文件夹,如果图片就在根目录放置,请注释掉这一句 \usepackage{subfigure} %放置子图时用到 \usepackage[T1]{fontenc} \usepackage[UTF8]{ctex} %加载中文环境 \usepackage[utf8]{inputenc} \usepackage{authblk} \usepackage{hyperref} %让引用带有超链接 %%%%%%%%%%%%%%%%% BEGIN OF PREAMBLE 作者信息部分 开始 %%%%%%%%%%%%%%%% %文章标题 \title{Your Article Title} %作者 \author[1,2]{张三 AAAA} \author[1,2]{李四 BBBB} \author[1]{王五 CCCC} \author[2]{贾六 DDDD\footnote{Corresponding author. E-mail: aaaa@bbbb.edu.cn}} %作者单位 \affil[1]{Institute of MMMM, NNNN University,XXXX Road, SSSS, Shaanxi 710069, China} \affil[2]{College of MMMM, NNNN University, 88 South University Ave., JJJJ, Jiangsu 225009, China} %给最后一个作者前加入 and \renewcommand\Authands{ and } %插入时间 \date{} %%%%%%%%%%%%%%%%% END OF PREAMBLE 作者信息部分 结束 %%%%%%%%%%%%%%%% %Start 论文正文开始 \begin{document} %设置色彩命令,比如将文字修改为红色时,使用时将文字用“\red{}”括起来即可 \newcommand{\red}[1]{{\color{red} #1}} \newcommand{\blue}[1]{{\color{blue} #1}} \newcommand{\yel}[1]{{\color{yellow} #1}} \newcommand{\ross}[1]{{\color{rossoCP3} #1}} %强制修改摘要和参考文献的标题文字和样式(用于修正中文编译的自动翻译) \renewcommand{\abstractname}{\textbf{\large {Abstract}}} %更改摘要的样式和内容 \renewcommand{\refname}{\textbf{\large {References}}} %更改参考文献的样式和内容 % Make the title of the work. 生成标题 \maketitle %The Abstract 生成摘要 \begin{abstract} Put your abstract here.Put your abstract here.Put your abstract here.Put your abstract here.Put your abstract here.Put your abstract here.. \end{abstract} %Keywords 关键词 \textbf{Keywords:} Keyword1; Keyword2; Keyword3. %PACS numbers: \textbf{PACS numbers:} 04.70.Bw, 04.20.Dw %Start the real content 正式开始论文本体 \section{Introduction} First secntion \section{Method} An example of equation with lable \begin{equation}\label{eq:metric} ds^2=-N(\rho)^2dt^2+\frac{1}{L(\rho)^2}d\rho^2+\rho^2 d\phi^2, \end{equation} Cite the equation: In Eq.\eqref{eq:metric} Cite the reference You are good\cite{Penrose,related02}. We could get it in Ref.\cite{related01} . \section{Instert eps Pictures} Single eps: \begin{figure}[!h] \centering \includegraphics[width=6cm]{003ExRhoAfter-emore.eps} \vspace*{8pt} \caption{Plot of $F_{af-e}(\rho)$. There are two points of intersection on the horizontal axis. The left point stands for the inner horizon and the right one stands for the outer horizon. The extreme black hole becomes into a common black hole.\label{fig:003ExRhoAfter-emore}} \end{figure} two sub eps: \begin{figure}[!h] \centering \subfigure[Plot of $E-q$, where $-1 \leqslant q \leqslant 2.5$.]{ \label{fig:001ExMinMax:subfig:a} %% label for first subfigure \includegraphics[width=6cm]{001aExEmaxEmin.eps}} \hspace{1cm} \subfigure[Plot of $E-q$, where $0 \leqslant q \leqslant 0.005$.]{ \label{fig:001ExMinMax:subfig:b} %% label for second subfigure \includegraphics[width=6cm]{001bExEmaxEmin.eps}} \caption{Plot of $E-q$. The shaded area is the intersection of $E_{min-e}<E$ and $E<E_{max-e}$.} \label{fig:001ExMinMax} %% label for entire figure \end{figure} %总结 \section{Summary} Summary your work. %致谢与基金号 \section*{Acknowledgments} We thank Dr. YYYY for useful comments and enlightening discussions. This work was supported by NSFC Grant Nos. 11111111, 22222222 and 33333333. %参考文献 \begin{thebibliography}{99} \bibitem{Penrose} R.Penrose, {\it Revistas del Nuovo Cimento} {\bf 1} (1969) 252. \bibitem{related01} V. E. Hubeny, {\it Phys. Rev. D} {\bf 59} (1999) 064013. \bibitem{related02} S. Hod, {\it Phys. Rev. D} {\bf 66} (2002) 024016. \end{thebibliography} %全文结束 \end{document} |