> 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/wen-da/57-i-get-an-error-when-i-use-the-stata-package.md).

# 我在使用 stata 宏包时出错了

只有在您的设备上安装了商业版 Stata 软件包时，Stata LaTeX 宏包才可用——我们的 LaTeX 编译服务器上未安装 Stata。如果您能在电脑上找到 Stata LaTeX 宏包文件，并且任何许可条款允许，您可以将它们上传到您的 Overleaf 文档项目中。您需要找到中列出的四个文件 **文件依赖项** 中的部分 [*Stata Journal* 作者指南页面](http://www.stata-journal.com/author/).

如果您在使用其他宏包时有问题，请 [告知我们](https://www.overleaf.com/contact) 我们会帮您查看。


---

# 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/wen-da/57-i-get-an-error-when-i-use-the-stata-package.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.
