> 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/028-clearing-the-cache.md).

# 清除快取

當您編譯專案時，LaTeX 會產生許多輔助檔案，這些檔案會依使用者分別儲存在「快取」中，而不是與專案本身一起儲存。這些產生的檔案通常包括 **`.aux`**, **`.log`** 以及 **`.toc`** 檔案，它們用於交叉引用、產生參考書目，以及製作目錄。LaTeX 產生的（輔助）檔案不會列在您的專案中，也就是不會顯示出來，但會以「幕後」方式保留在快取中，以便在您下次重新編譯文件時依需要再次產生。

如果您發現其中一位協作者可以順利編譯您的專案而沒有錯誤，但您在自己的電腦上編譯時卻出現錯誤，從頭重新編譯（也稱為清除快取）可能會有幫助。此外，如果您遇到與已產生檔案相關的錯誤訊息，或只是因為其他原因想刪除這些已產生的檔案，您也可能會想從頭重新編譯。

## 從頭重新編譯

該 **從頭重新編譯** 選單動作會刪除已產生的檔案，並立即重新編譯您的專案。這個按鈕位於「重新編譯」選單中，點選「從頭重新編譯」即可找到。

![「重新編譯」選單的螢幕截圖](/files/6c28b1eaa47910f431b203452817c7eb0d2d30d3)

## 清除快取檔案

該 **清除快取檔案** 按鈕會刪除已產生的檔案，但不會立即重新編譯您的專案。這個按鈕的操作方式是先點選 **「日誌與輸出」** 檔案按鈕，然後點選底部紅色的「清除快取檔案」按鈕。

![「清除快取檔案」按鈕的螢幕截圖](/files/ffa9d10dfa52ff63ebb4fa207ce5ebfe9ee1c810)


---

# 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/028-clearing-the-cache.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.
