> For the complete documentation index, see [llms.txt](https://ayakaleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ayakaleaf-pro.ayaka.space/latex/zh-cn/geng-duo-zhu-ti/33-latex-video-tutorial-for-beginners-video-3.md).

# LaTeX 新手视频教程（视频 3）

[视频 1](/latex/zh-cn/geng-duo-zhu-ti/31-latex-video-tutorial-for-beginners-video-1.md) | [视频 2](/latex/zh-cn/geng-duo-zhu-ti/32-latex-video-tutorial-for-beginners-video-2.md) | 视频 3 | [视频 4](/latex/zh-cn/geng-duo-zhu-ti/34-latex-video-tutorial-for-beginners-video-4.md) | [视频 5](/latex/zh-cn/geng-duo-zhu-ti/35-latex-video-tutorial-for-beginners-video-5.md) | [视频 6](/latex/zh-cn/geng-duo-zhu-ti/36-latex-video-tutorial-for-beginners-video-6.md) | 视频 7

这套由七部分组成的 LaTeX 教程视频最初发布于 2013 年；因此，由于 ShareLaTeX 的发展以及随后 ShareLaTeX 与 Overleaf 的合并，如今的编辑器界面已经发生了相当大的变化。不过，这些视频内容仍然相关，并且会教你 LaTeX 的基础知识——这些技能和经验适用于所有平台。你不需要任何先前的背景知识，在这些 LaTeX 指南结束时，你将能够创建并编写基本的 LaTeX 文档，并具备开始学习如何创建更复杂文档的知识。每个视频都配有一份文字稿（列在视频下方）——这些就地文字稿取代了每个教程开头显示的 URL。

### LaTeX 中的数学

**注意：** 你可以通过以下方式打开视频中使用的项目 [点击此链接](https://www.sharelatex.com/project/51ed0480335f3d63700f3aa9).

{% embed url="<https://www.youtube.com/embed/2iEQoSIPD6o>" %}

### 视频文字稿

在 [上一个视频](/latex/zh-cn/geng-duo-zhu-ti/32-latex-video-tutorial-for-beginners-video-2.md) 我们已经看过了如何将文档拆分为各个章节和段落。在本视频中，我们将学习如何在文档中添加基本的数学符号和公式。在开始用 LaTeX 编写数学内容之前，我们建议你先加载 `amsmath` 宏包，这样在编写更复杂的数学文档时你会有更多选项。要做到这一点，只需使用 `\usepackage{...}` 命令并输入 `amsmath` 在括号之间，如下所示： `\usepackage{amsmath}`.

要直接在文本中写数学内容，只需将数学内容放在美元符号之间。ShareLaTeX 会将美元符号中的内容以绿色标出，这样你就可以轻松识别内联数学。

要写上标，请在数字或符号后加一个插入符号，然后把你想要作为上标的数字或符号放在花括号中。

要写下标，过程也是一样的，只不过我们用下划线代替插入符号。

在 LaTeX 中添加希腊字母非常容易。希腊字母表中的每个字母都有一个对应的命令，它只是一个反斜杠后面跟着该希腊字母的英文名称。如果你想把它们大写，只需让命令以大写字母开头。

几乎你能想到的任何数学函数都有相应的 LaTeX 命令来排版。网上有很多这类列表，所以我现在只向你介绍其中几个。首先，三角函数是这样的。平方根函数是这样的。分数可以很容易地使用 `\frac` 命令输入。还有许多用于编写代数表达式的函数，比如这个子集命令。

通常你不想把数学内容和正文写在一起，尤其是在你写更复杂的公式时。因此，要在新的一行中写方程或公式，你可以使用 begin equation 结构。这里有一个使用该结构实现基本多项式的示例，以及一个演示求和符号的示例。你会注意到，LaTeX 已经自动给这些方程编号，并在页面右侧用括号打印出相应的编号。如果你不想让方程编号，可以在 begin 和 end 命令中的 equation 一词后立即加一个星号。这里有一个使用定积分的示例。

到此，我们关于 LaTeX 中数学的讨论就结束了。在 [下一段视频](/latex/zh-cn/geng-duo-zhu-ti/34-latex-video-tutorial-for-beginners-video-4.md) 我们将看看如何在文档中插入图片。

[视频 1](/latex/zh-cn/geng-duo-zhu-ti/31-latex-video-tutorial-for-beginners-video-1.md) | [视频 2](/latex/zh-cn/geng-duo-zhu-ti/32-latex-video-tutorial-for-beginners-video-2.md) | 视频 3 | [视频 4](/latex/zh-cn/geng-duo-zhu-ti/34-latex-video-tutorial-for-beginners-video-4.md) | [视频 5](/latex/zh-cn/geng-duo-zhu-ti/35-latex-video-tutorial-for-beginners-video-5.md) | [视频 6](/latex/zh-cn/geng-duo-zhu-ti/36-latex-video-tutorial-for-beginners-video-6.md) | 视频 7


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ayakaleaf-pro.ayaka.space/latex/zh-cn/geng-duo-zhu-ti/33-latex-video-tutorial-for-beginners-video-3.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
