> For the complete documentation index, see [llms.txt](https://overleaf-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://overleaf-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

这套由 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` 命令输入。还有许多用于编写代数表达式的函数，例如这个 subset 命令。

通常你并不想在文本中行内书写数学内容，尤其是在编写更复杂的公式时。因此，要在新的一行写出等式或公式，可以使用 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://overleaf-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.
