采用IDE工具TeX Studio进行编译。相关软件的下载和安装见最下方的链接。
%导言区
\documentclass{article}%book,report,letter不同的文档类型
%导言区主要进行全局设置
\title{My First Document}%输入文档的标题
\author{Jiaxin Li}%设置作者名字
\date{\today}%设置时间
%正文区(文稿区)
\begin{document}%一个LaTeX尤且只能有一个document环境
\maketitle %用于输出已经设置的标题,作者等内容
Hello World!
\end{document}
结果
如果文档类型改成book,结果分成两页,一页是封面,一页是正文。
`%导言区
\documentclass{article}%,article,book,report,letter不同的文档类型
%导言区主要进行全局设置
\title{My First Document}%输入文档的标题
\author{Jiaxin Li}%设置作者名字
\date{\today}%设置时间
%正文区(文稿区)
\begin{document}%一个LaTeX尤且只能有一个document环境
\maketitle %用于输出已经设置的标题,作者等内容
Hello World!
%在源文件内增加空行来实现分行,放到下一段
Let $f(x)$ be defined by the formula $f(x)=3x^2+x-1$.
%在LaTeXZ中输入数学公式
%$$符号内称为数学模式,之外的称为文本模式
\end{document}`
结果
3.
%导言区
\documentclass{article}%,article,book,report,letter不同的文档类型
%导言区主要进行全局设置
\title{My First Document}%输入文档的标题
\author{Jiaxin Li}%设置作者名字
\date{\today}%设置时间
%正文区(文稿区)
\begin{document}%一个LaTeX尤且只能有一个document环境
\maketitle %用于输出已经设置的标题,作者等内容
Hello World!
%在源文件内增加空行来实现分行,放到下一段,但是多个空行只会被视为一个
Let $f(x)$ be defined by the formula
$$f(x)=3x^2+x-1$$ which is a polynomial of
degree 2.
%在LaTeXZ中输入数学公式
%$$符号内称为数学模式,之外的称为文本模式
%此外$$$$内也是数学模式,会另起一行在中间显示公式
%$表示行内公式$$表示行间公式
\end{document}
结果
以上内容是学习bilibili里面的教程视频做的笔记记录,之后的这一系列文章均同,以后不再叙述。
bilibili的教程链接:点我