LaTeX基础二:写文章时基本语句分析

代码如下:

 1 %导言区,这个百分号表示注释
 2 \documentclass{article} %有book,report,letter等格式、
 3 
 4 \title{It Is My First Document}
 5 \author{Shawn Chow}
 6 \date{\today}
 7 
 8 %正文区(文稿区)
 9 \begin{document}
10     \maketitle %这里写这个可以添加标题、
11     Hello World !%下面空行表示换行、
12     
13     %here is my big formula
14     %两个$是单起一行写公式,一个$是行内写公式、
15     Let $f(x)$ be defined by the formula
16     $$f(x)=3x^2+x-1$$ which is a polynomial of degree 2.
17 \end{document}

 

结果如下:

(本文结束)

posted @ 2016-09-05 08:35  shawncheer  阅读(1365)  评论(0编辑  收藏  举报