LaTeX模板——英文写作

引言

本文主要提供一个英文LaTeX写作模板。因为本人是数学专业的,因此此模板可能更适合数学相关专业的写作。

《LaTeX入门》(刘海洋编著)(包括中文和英文,这里把中英文单独提出来是因为在英文模板中没必要加载中文的宏包及一些设置)。

自己也在学习中,这个模板经过一年多的锤炼,添加必要的宏包、修改优化、删除一些没用的东西,可以说是一个比较简练的模板。

模板正文

\documentclass[hyperref]{article}
%MS%%%%%%%%%%%%%%%%%%%% Article Format %%%%%%%%%%%%%%%%%
%+++++++++++++++++++++ Usepackage +++++++++++++++%%
\usepackage{graphicx} %% Package for Figure
\usepackage{float} %% Package for Float
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage[thmmarks,amsmath]{ntheorem} %% If amsmath is applied, then amsma is necessary
\usepackage{bm} %% Bold Mathematical Symbols
\usepackage[colorlinks,linkcolor=cyan,citecolor=cyan{hyperref}
\usepackage{extarrows}
\usepackage[hang,flushmargin]{footmisc} %% Let the footnote not indentation
\usepackage[square,comma,sort&compress,numbers]{natbib} %% Sort of References
\usepackage{mathrsfs} %% Swash letter
\usepackage[font=footnotesize,skip=0pt,textfont=rm,labelfont=rm]{caption,subcaption} 
%% Format of Caption for Tab. and Fig.
\usepackage{booktabs} %% tables with three lines
\usepackage{tocloft}
%+++++++++++++++ Proof etc. +++++++++++++++++++++++++%%
{%% Environment of Proof
    \theoremstyle{nonumberplain}
    \theoremheaderfont{\bfseries}
    \theorembodyfont{\normalfont}
    \theoremsymbol{\mbox{$\Box$}}
    \newtheorem{proof}{Proof}
}

\usepackage{theorem}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}{Lemma}[section]
\newtheorem{definition}{Definition}[section]
\newtheorem{assumption}{Assumption}[section]
\newtheorem{example}{Example}[section]
\newtheorem{corollary}{Corollary}[section]
{%% Environment of Remark
    \theoremheaderfont{\bfseries}
    \theorembodyfont{\normalfont}
    \newtheorem{remark}{Remark}[section]
}
%\numberwithin{equation}{section} %% Number of Equation
%++++++++++++++++++++++++++++++++ Page format ++++++++++++++++++++++++++%%
\graphicspath{{figure/}}                                 %% Path of Figures
\usepackage[a4paper]{geometry}                           %% Paper size
\geometry{left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm} %% Margin
\linespread{1.2}                                         %% Line Spread
%MS%%%%%%%%%%%%%%%%%%%%%%%%%%%% End Format %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%MS%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%MS                                         %%
%MS        The Main Body begins here        %%
%MS                                         %%
%MS%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%MS++++++++++++++++++++++++++++++ Title +++++++++++++++++++
\begin{document}
\title{\bf Title of your article} 
\date{}
\author{\sffamily author1$^1$, author2$^{1,*}$, author3$^2$\\
    {\sffamily\small $^1$ The first Institution }\\
    {\sffamily\small $^2$ The second Institution }}
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\footnotetext[1]{Corresponding author. }
\maketitle

%MS+++++++++++++++++++++ Abstract +++++++++++++++++++++++++
{\noindent\small{\bf Abstract:}
     In this paper... }

\vspace{1ex}
{\noindent\small{\bf Keywords:}
    Keywords1; Keywords2;...}
%MS++++++++++++++++++++++++++++++ Main body ++++++++++++++++++++
\section{Introduction}
\section{...}
...
\section{conclusion}
\section*{Acknowledgments}
%MS++++++++++++++++++++++++++++++ Reference ++++++++++++++++++
%% 参考文献请看下一节详细介绍。
\end{document}
  • 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
  • 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

关于参考文献

参考文献有两种写法,一种是写在bib文件中,然后调用,第二种是直接写在文章末尾。

方法1 写在bib文件中

假设你的bib文件名为: AAA.bib。要用这种方法,首先要在上一节模板的\end{document} 之前写如下两句话:

\bibliographystyle{unsrt} 
\bibliography{AAA.bib}
  • 1
  • 2
  • 1
  • 2

解释一下:第一句话中的unsrt指的是文末的参考文献列表按照文中的引用顺序来排列,这个排序是系统自动完成的,与bib文件中参考文献的顺序无关,还有其他的三种方式是plain,alpha,abbrv 。

bib文件中参考文献的写法在《LaTeX入门》(刘海洋编著)中第174页有详细介绍。偷偷的告诉你,这本书电子版在网络上貌似很容易找到。

方法2 直接写在文章末尾

这种方法只要在文章末尾来写就好了,写在模板中\end{document} 之前,格式为:

\small
\begin{thebibliography}{22}\addtolength{\itemsep}{-4.5ex}
\bibitem{X.Mao}  X. Mao, Stochastic differential equations and applications, Horwood Publishing, Chichester, UK, 2nd edition, 2007.\\%%一条参考文献示例
\end{thebibliography}
  • 1
  • 2
  • 3
  • 4
  • 1
  • 2
  • 3
  • 4

解释一下: 
- 这个模板正文的字号是LaTeX默认的字号,这里第一句话\small 是将参考文献的字号调小一些(个人感觉这样比较好)。 
- 第二句话中的22 是用来对其参考文献的编号对齐的,这个是可以随便写的,规则是如果你的参考文献总条数是一个n位数,你要将这个22 换成n个字母或数字(只看个数,不看你具体写的是什么内容),例如你有29条参考文献,那么你在这里写11,22,de,tt,rf 效果都是一样的。 
- 关于第二句的-4.5ex:为了让每一条参考文献之间产生一点额外的间距。可以自己调节这个数值。 
- 这种写法的一个优点是可以自己控制参考文献的输出格式。一个缺点是参考文献不会按照引用顺序排序,要手动调整顺序。有的期刊要求要按 引用顺序来排参考文献。

总结

这个模板是在texstudio编辑器中制作的,用XeLaTeX按钮编译,两种参考文献的添加方法都可以使用。

在WinEdt编辑器中第一种参考文献加入方式编译不成功(没找到原因),第二种方法可以使用。

文章中用到的图片需要放在当前文件夹下名为figure的文件夹中。这个路径是可以设置的,在模板的Page Format下面第一行。

这个模板由于其中添加了一些注释,在网页上看起来可能有些乱,如果复制到自己的编辑器里面可能还要手动整理一下格式,使得看起来整齐一些当然不整理也没问题,不影响编译。

奉上一副排版效果图


你可能感兴趣的:(LaTeX学习)