基本格式
=======
星星之火,可以燎原
HEAD
\documentclass[UTF8]{ctexart}
% 本行添加修饰用的其它包
\begin{document}
hello,world
\section{中英文内容}
Here is the English part.
\subsection{中文部分}
这里是中文。
\end{document}
\section{中英文内容}
Here is the English part.
Here is the English part. % 一个回车是不是换段落
Here is the English part. % 两个回车是换段落
Here is the English part. \\ Here is the English part. % 双斜杠是换新行并置顶格
\newpage % 新建一页
在论文里往往需要小标题
\tableofcontents % 自动生成目录,可能需要编译两次才能看见
\listoffigures % 自动生成图片目录
\listoftables % 自动生成表格目录
\section{一级标题}
\subsection{二级标题}
\subsubsection{三级标题}
\paragraph{四级标题} % 不推荐使用四级标题,它不会新生成段落,除非修改自定义
\section*{附录} % 不带序号的一级标题,但是无序号可能无法自动添加进目录
\addcontentsline{toc}{section}{附录} % 通过这种手动添加方式添加附录等
% 有序列表
\begin{enumerate}
\item aaa
\item bbb
\end{enumerate}
% 无序列表
\begin{itemize}
\item aaa
\item bbb
\end{itemize}
\section{中英文内容}
Here is the English \verb|Python| part. % 此处插入了代码或者等宽字体片段
% 插入一大段代码
% 如果想要优化代码展示,可以搜索资料,装饰它
\begin{verbatim}
printf('hello world');
\end{verbatim}
\documentclass[UTF8]{ctexart}
\usepackage{graphicx}
...
Here is the English \ref{img:lena}part. % 需要编译两次
\begin{figure}[]
\centering
\includegraphics[width=0.35\textwidth]{lena.png} % 文件路径名
\caption{lena图像} % 图像名
\label{img:lena} % 图像标签,img只是提醒自己,不是强制要求
\end{figure}
% 论文中尽量用矢量图,不要用位图
% xelatex支持pdf, eps两种矢量图
% word支持svg矢量图
% 表格演示,实际上表格可以不用手打,使用下列网页自动生成后复制粘贴
% https://www.tablesgenerator.com/
\begin{table}[]
\begin{tabular}{llll}
& 姓名 & 成绩 & 合格 \\
1 & a & 90 & 1 \\
2 & b & 85 & 1 \\
3 & c & 55 & 0
\end{tabular}
\end{table}
\section{中英文内容}
Here is the English $E=mc^2$ part. % 此处插入行内公式
Here is the English $$E=mc^2$$ part. % 如果使用两个$符号,则会新建行单独显示公式,但是不会给序号
% 插入一大段公式
% 如果想要更多公式用法,可以搜索资料
\begin{equation}
E=mc^2
\label{equ:1}
\end{equation}
% 这个包能够自动为你生成一大段无意义文字,来帮助你检测当前格式排版
\usepackage{lipsum}
\lipsum
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{Book_Class}[2020/05/12]
\LoadClass[12pt]{report}
\RequirePackage{mathtools}
latex单反引号表示左双引号