导言区
\documentclass{article}
article:主要用于文章的排版
book:主要用于书籍的排版
report: 用于学术报告的排版
letter:用于信件的排版
\usepackage{amsmath}
宏包的引用 宏包:类似于c语言中的头文件
amsmath:美国数学协会的宏包,此处为了输入数学公式方便
正文区
\begin{document}
中间为正文部分
\end{document}
注意!
正文中两个段落之间必须用一个空行进行隔开
the quick brown fox jumps over the lazy dog.the quick brown fox jumps over the lazy dog.the quick brown fox jumps over the lazy dog.the quick brown fox jumps over$ a^2+b^2=c^2 $ the lazy dog.the quick brown fox jumps over the lazy dog.the quick brown fox jumps over the lazy dog.the quick brown fox jumps over the lazy dog.% 注意:两个段落之间必须用一个空行进行隔开
the quick brown fox jumps over the lazy dog.the quick brown fox jumps over the lazy dog.the quick brown fox jumps over the lazy dog.the quick brown fox jumps over the lazy dog.
效果展示:
两个$符号是行间公式展示,会在文中居中
一个$符号是行内公式展示
$$ a^2+b^2=c^2 $$
the quick brown fox jumps over$ a^2+b^2=c^2 $ the lazy dog.
注意:
$,%,{},\是有特殊意义的符号,若想让他们单独显示,在他们前面加\即可
显示\
$\backslash$