一 注释的编写
% the comment
二 声明
\docmmentclass[UTF8]{ctexart}
% 申明文档的类型是中文,UTF8编码
\title{the title}
\author{of course myself}
\data{the date or \today}
% if you use the \today it will show the date of today
\bibliographystyle{plain}
% the type of the literature
三 正文
我们要去声明一个正文的环境,在这个环境内输出我们的正文,在这个docment中能够输出上面我们的title\maketitle
\begin{document}
% the main content
\end{document}
Latex命令:
latex命令的宏格式为
\command
% with no parameter
% for example \maketitle it can show the title above
\command<arg1><arg2><argn>
% with n parameters
\command[opt]<arg1>...<argn>
% with optional parameters
Latex环境:
环境的一般格式为
\begin{<env name>}
\end{<env name>}
有一些的环境需要在环境中去进行声明
\newtheorm{thm}{定理}
%定义了一个hm的环境
公式的书写:
在普通的情况下可以使用$$就可以得到很简单的公式显示,不过这种公式只是内联公式or行内公式
\begin{equation}
a(b+c) = ab + ac
\end{equation}
图片的导入:
由于插图的功能不是由Latex的内核直接提供的,而是由graphicx宏包提供的,要使用graphic宏包的功能,需要在源文件的导言区使用\usepackage{graphicx}
去引入宏包
随后在我们的正文中就可以使用\includegraphics{}去导入我们的图片,the type of the file can be pdf, png, jpg, jpeg…