> 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/085-i-have-created-a-latex-document-elsewhere-can-i-import-it-into-overleaf.md).

# 我已在其他地方建立了一份 LaTeX 文件——可以匯入到 Overleaf 嗎？

可以，你可以。你可以建立一份新文件，並從現有的 tex 檔案複製並貼上文字。如果你的文件包含多個檔案，你可以將它們壓縮成 zip，然後使用你在你的 [專案儀表板](https://www.overleaf.com/dash) （請見下圖）。

![透過上傳 .zip 檔案，從儀表板建立新專案](/files/dfa91d054a330046371a7b894460c75c6ddda2dd)

或者，你可以先建立一個空白專案（或從 Gallery 中的範本建立一個）。當專案編輯器載入後，點擊檔案清單上方的「上傳」按鈕。接著，你可以從電腦中選取要上傳的檔案，方法是先點擊「從你的電腦選取」按鈕以開啟檔案瀏覽器，或直接將檔案從 Explorer/Finder 拖放到上傳器上。這段動畫 GIF 顯示了如何完成：

![將多個檔案上傳到專案](/files/d742b40008bd3001c2a9e58e2f2d9984bce7b78d)

你可能也會想變更專案的主要文件，只要點擊檔案清單面板上方的 Overleaf 選單圖示即可。

### 我可以使用 git 來推送新專案嗎？

如果你使用 git，你也可以 [使用 git push 上傳你的檔案](https://www.overleaf.com/help/230-how-do-i-push-a-new-project-to-overleaf-via-git) 至您的 Overleaf 專案。

### 有用來載入新專案的 API 嗎？

你也可以使用我們 [開發者頁面上的其中一個選項](https://www.overleaf.com/devs) 直接從你的網站匯入到 Overleaf。


---

# 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/085-i-have-created-a-latex-document-elsewhere-can-i-import-it-into-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.
