> 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-tw/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/5521a07f3014c14d39fb5ff3b23da33ce860696d)


---

# 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-tw/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.
