> 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/zhi-shi-ku/086-if-my-latex-project-is-split-into-multiple-tex-files-can-i-edit-them-all-on-overleaf.md).

# 如果我的 LaTeX 项目被拆分为多个 tex 文件，我可以在 Overleaf 中全部编辑它们吗？

对于较大的项目，通常不建议将所有代码都插入到一个主文件中，而是将内容拆分为多个文件（例如论文的各章节）。整个项目由一个主 tex 文件和许多子文件组成。

这些子文件可以通过作为附件上传（通过编辑器中的 files --> upload 菜单）而包含到 Overleaf 的此类项目中，并且可以通过通常的方式引用，即 `\input` 或 `\include`.

然后你只需点击这些子文件，就可以直接在 Overleaf 上编辑它们

要观看一个演示此过程的简短视频，请查看我们关于以下内容的博客文章： [使用 Overleaf 撰写你的论文](https://www.overleaf.com/blog/30).

![Overleaf 文件编辑截图](/files/91fc45c7900de6784f4bb994a2682398377bc8ec)


---

# 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/zhi-shi-ku/086-if-my-latex-project-is-split-into-multiple-tex-files-can-i-edit-them-all-on-overleaf.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.
