> 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/164-working-offline-in-overleaf.md).

# 在 Overleaf 中離線工作

Overleaf 提供多種整合功能，讓您能夠建立並同步專案的本機副本，這樣您就可以使用本機文字編輯器離線工作，並且在重新上線時將這些副本與 Overleaf 保持同步。

您可以使用任何純文字編輯器在本機編輯您的專案，也可以下載免費的 LaTeX 安裝版，將專案在本機編譯。您可以在這裡查看一些安裝 LaTeX 的選項： <https://www.latex-project.org/get/> 。為了確保您能夠「開箱即用」地執行 Overleaf 的所有套件，您可以下載 TeXLive 發行版，並且可以使用 Latexmk 一次完成所有編譯（請參閱 [這篇文章](/latex/zh-tw/zhi-shi-ku/064-how-does-overleaf-compile-my-project.md) 以了解 Overleaf 如何編譯您的專案的更多資訊）。

請注意，目前無法在離線時使用 Overleaf 主機上的網頁編輯器，因為所有編譯都會在我們的伺服器上執行。

## Dropbox 同步

Overleaf 提供 Overleaf 與 Dropbox 之間的自動雙向同步。具有 [付費訂閱](https://www.overleaf.com/user/subscription/plans) 的使用者可以將自己的 Overleaf 帳戶連結至 Dropbox。連結完成後，您在 Overleaf 中對專案所做的任何變更都會自動同步到您電腦上的 Dropbox 資料夾，而您在 Dropbox 本機所做的任何變更也會顯示在您的線上專案中。

有關 Overleaf 中 Dropbox 同步的更多資訊，請參閱： [Dropbox 同步](/latex/zh-tw/zhi-shi-ku/034-dropbox-synchronization.md)

請注意，開啟 Dropbox 同步的使用者，並不會讓協作者也能將專案同步到他們本機的 Dropbox 資料夾（除非他們也擁有付費訂閱）。因此，這可以視為一項「個人」功能。對於希望讓協作者能夠在本機同步的付費使用者，我們建議使用下方所述的 Git 或 GitHub 同步選項。

## Git 與 GitHub

Overleaf 也提供 Git 和 GitHub 同步選項。除了提供另一種快速備份方式之外，它們也讓不同作者偏好以不同方式處理 LaTeX 文件的團隊協作更為容易。

例如，如果您喜歡在瀏覽器中使用 Overleaf，但您的協作者偏好使用本機安裝的 LaTeX 編輯器工作，您可以使用 Git 或 GitHub 同步來確保您的工作保持連結。其運作方式會因您選擇的選項而略有不同：

**GitHub：** 擁有進階訂閱的使用者可以將其擁有的任何專案連結到 GitHub 儲存庫。專案連結完成後，專案中的所有使用者都可以按下按鈕來同步。因此，這可以視為「每個專案」功能。

**Git：** 如果專案是由擁有進階訂閱的使用者所擁有，則專案中的所有成員都可以對其執行 git clone/push/pull。如果使用者擁有進階訂閱，則他們可以對其可存取的所有專案執行 git clone/push/pull。這就像 GitHub 與 Dropbox 權限模型的超集——它既是個人層級，也是專案層級。

有關如何設定此功能的更多資訊，請參閱： [使用 Git 與 GitHub](/latex/zh-tw/zhi-shi-ku/041-git-integration-and-github-synchronization.md)

請注意，若要在 Overleaf 中使用 GitHub 同步，使用者必須擁有 GitHub 帳戶。免費的 GitHub 帳戶可讓您建立公開或私人儲存庫。


---

# 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/164-working-offline-in-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.
