> 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/on-premises/zh-cn/pei-zhi/overleaf-toolkit/adding-latex-user-help.md).

# 添加 LaTeX 用户帮助

您可以启用对 Overleaf 的 [学习](https://www.overleaf.com/learn) 页面，只需添加 `OVERLEAF_PROXY_LEARN=true` 到您的 `config/variables.env` Toolkit 中的文件，并运行 `bin/up` 命令重新创建所有服务。

这使用户可以通过点击 **文档** 导航菜单中的按钮即可访问当前文档和学习资源，且无需离开您的实例。

{% hint style="info" %}
对于 Docker Compose 部署，您需要添加环境变量 `OVERLEAF_PROXY_LEARN: true` 中，将其 **环境** 部分中的 `sharelatex` 服务到您的 `docker-compose.yml` 文件。
{% endhint %}

{% hint style="info" %}
您的 Server Pro 部署将需要访问互联网，以便执行外部 `GET` 请求到 [https://learn.sharelatex.com](https://docs.overleaf.com/on-premises/welcome).
{% endhint %}

{% hint style="danger" %}
当您首次启用此选项并重启 Overleaf 容器时，系统需要下载相关 Wiki，这可能最多需要 5 分钟或更长时间。只有在下载完成后，您才能成功看到 Overleaf 登录页面。
{% endhint %}


---

# 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/on-premises/zh-cn/pei-zhi/overleaf-toolkit/adding-latex-user-help.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.
