通过b站up主小风寒呐视频学习,感谢up主。
1.首先申明文档类型:
英文论文:\documentclass{article}
中文论文:\documentclass[UTF8]{ctexart}
%[]内为中文字体,可不写
%若要编译中文文档,需将编辑器偏好内的Build里Default Compiler中的PdfLaTeX改为xelatex
2.宏包的使用
写公式,做表格,放图片需要用宏包
\usepackage{mathtools,amsmath,graphicx,array}
3.建立文档环境,放置文档内容
\begin{环境名}
内容
\end{环境名}
4.文章写作
加粗:\textbf{}
字号:\normalsize\large\Large\LARGE\huge\Huge{}
居中:
\begin{center}
内容
\end{center}
文章标题与作者日期
\title{标题}
\author{zuozhe}
\date{日期格式可任意写} %若没有这一行会自动生成固定格式的日期,若不想要日期则括号内不填}
\maketitle
章节划分:
一级章节\section{}
二级\subsection{}
三级\subsubsection{}
添加目录:\tableofcontents
摘要:
\begin{abstract}
\end{abstract}
列表环境:
\begin{enumerate}
\item 第一个 ;
\item 第二个 ;
\end{enemerate}
换页:\newpage
分段:编辑器内空一行
4.公式
行间公式:
\begin{equation}
\end{equation} %不可换行
or
\begin{align}
&公式\notage\\ %\notage指这一行无自动编号
&公式
\end{align} %可自动换行,&放在对齐位置前
%都会给公式自动编号,要是想删去所有编号应在开头加*
I.e. \begin{equation*}
equation*的简写:%直接打公式是错误的
\[
\]
行内公式:$公式$
特殊符号:
{}:\{\}
&:\&
\:\verb|\|
图片修改:gamma
lable的使用(引用编号)