码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2016-09-05 09:12:21      阅读:111      评论:0      收藏:0      [点我收藏+]

标签:

代码如下:

 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}

 

结果如下:

技术分享

(本文结束)

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

标签:

原文地址:http://www.cnblogs.com/shawncheer/p/5841028.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!