> 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/141-uploading-a-project.md).

# 上傳專案

## 逐步指南

本文提供一份逐步指南，說明如何透過上傳一個 `.zip` 包含儲存在您本機電腦上的 LaTeX 檔案的檔案。

1. 建立一個 `.zip` 包含您本機檔案（圖片、參考文獻、字型， `.tex` 原始碼等）的檔案。

* 如果您的本機 LaTeX 專案使用資料夾，這些資料夾可以保留在 `.zip` 檔案中，並會在 `.zip` 該檔案在 Overleaf 上解壓縮時重新建構。

3. 在專案管理頁面中，選擇 **新專案** 然後選擇 **上傳專案** 從下拉式選單中。

![在 Overleaf 上建立新專案](/files/87a3e08f436ee5fcafc7922437e167b2999ace01)

6. 會顯示一個視窗，您可以將您的 `.zip` 檔案拖放到其中，或選擇 **選取 .zip 檔案** 以找出一個 `.zip` 儲存在您裝置上的檔案。

![將 zip 檔上傳至 Overleaf](/files/60c4d24cbd5791356b7ce15a6680bf440b6d9805)

9. Overleaf 會解壓縮上傳的 `.zip` 檔案，以擷取檔案並在您的專案中建立任何資料夾。
10. 接著您會被重新導向至編輯器，新的專案已在那裡建立。

* 您現在已擁有一個新的 Overleaf 專案，可供編輯與重新編譯。注意：如果您的 LaTeX 程式碼需要 LuaLaTeX 或 XeLaTeX，您可能需要 [設定專案的 LaTeX 編譯器](/latex/zh-tw/zhi-shi-ku/026-changing-compiler.md).

![透過上傳 .zip 檔案建立的 Overleaf 專案](/files/181901b5d296e55932c76d71e2930ee2b175e912)

## 關於檔案上傳的其他說明（包括限制／上限）

如果您打算上傳大型專案，以下是您需要注意的一些 Overleaf 資源限制／約束：

* 您無法上傳超過 50MB 的個別檔案。
* 每次上傳最多可包含 180 個檔案——如果您嘗試上傳超過這個數量，則只會上傳 180 個檔案。
* 每個 Overleaf 專案最多不能包含超過 2000 個個別檔案。

如果您的專案的 `.zip` 檔案超過 50MB，您可以嘗試以下做法：

1. 先將部分檔案上傳到一個 `.zip` 檔案中（僅用來建立專案）。
2. 手動上傳其餘檔案。

對於一個 `.zip` 檔案要能正確上傳：

* 它應只包含 LaTeX 編譯器可處理的檔案類型：純文字檔和 `.eps`, `.pdf`, `.svg` 和 `.png` 格式的圖片。
* 它不能包含超過 7MB 可在 Overleaf 上編輯的內容（這是 Overleaf 專案可編輯資料的上限）。如需更多資訊，請參閱頁面 [免費與付費方案允許的最大編譯時間、檔案數量和專案大小是多少？](/latex/zh-tw/zhi-shi-ku/119-overleaf-plan-limits.md)

雖然 Overleaf 編輯器可以編輯任何純文字檔，但只有那些上傳後具有最常見 LaTeX 檔案副檔名的檔案才能在網站上編輯，例如 `.tex`, `.bib`, `.cls`, `.sty` 等等。假設您需要編輯一個具有不同副檔名的專案檔案。在那種情況下，最好將其內容複製並貼到專案中的一個新的空白檔案，然後以所需的副檔名儲存；或者，將其上傳為一個 `.tex` 副檔名，之後再在線上更改它。

大於 2MB 的文字檔無法在線上編輯，且不計入 7MB 限制，這表示例如您可以上傳大型 `.csv` 檔案供 Rtex 使用，而不會耗用您的 7MB 可編輯資料額度。


---

# 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/141-uploading-a-project.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.
