%导言区
\documentclass{article} %book, report, letter
%通过文档类来改变文档结构类型
\title{My First Document}
\author{Zhen Hua}
\date{\today}
%正文区(文稿区)
\begin{document}
\maketitle %使用我们自定义的标题信息
Hello world!
%加空行分成两段
%单$
Let $f(x)$ be defined by the formula
$f(x)=3x^2+x-1$
%双$
Let $f(x)$ be defined by the formula
$$f(x)=3x^2+x-1$$ which is a polynomial of degree 2.
\end{document}
效果图: