导言区 主要进行全局设置 title author data
documentclass{article}
%article,book, report, letter 文件的类
\title{My First Document}
\author{Elaine}
\date{\today}
正文区
\begin {document}
% begin和end中间是环境名称,一个latex文件只能有一个document环境
\maketitle
% 输出标题
`Hello World!`
%增加空行实现换行
%在原文档中添加注释比如 here is my big formula
Let $f(x)$ be defined by the formula %数学模式与文本模式
$$f(x) = 3x^2+x-1$$ which is a polynomial of degree 2. % 行间公式
\end{document}
网友评论