> 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/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://overleaf-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.
